bring to all themes social services and link them to new doc

This commit is contained in:
Thomas Citharel 2015-05-12 16:05:57 +02:00
parent 090957fe3e
commit 727c35d809
8 changed files with 46 additions and 8 deletions

View file

@ -106,8 +106,11 @@ msgstr "Read the documentation"
msgid "download the extension"
msgstr "Download the extension"
msgid "Firefox Add-On"
msgstr "Firefox Add-On"
msgid "Standard Firefox Add-On"
msgstr "Standard Firefox Add-On"
msgid "Mozilla Services (Social API) Extension"
msgstr "Mozilla Services (Social API) Extension"
msgid "Chrome Extension"
msgstr "Chrome Extension"

View file

@ -200,8 +200,11 @@ msgstr "lisez la documentation"
msgid "download the extension"
msgstr "téléchargez l'extension"
msgid "Firefox Add-On"
msgstr "Add-On Firefox"
msgid "Standard Firefox Add-On"
msgstr "Add-On Firefox classique"
msgid "Mozilla Services (Social API) Extension"
msgstr "Extension Mozilla Services (Social API)"
msgid "Chrome Extension"
msgstr "Extension Chrome"

View file

@ -39,6 +39,7 @@
<script src="{{ poche_url }}themes/_global/js/popupForm.js"></script>
<script src="{{ poche_url }}themes/_global/js/keyboard.js"></script>
<script src="{{ poche_url }}themes/{{theme}}/js/closeMessage.js"></script>
<!-- Enable Firefox Social Services
script put there because of the call to poche_url -->
@ -56,9 +57,9 @@
"description": "wallabag Extension for Firefox - The (soon to become) best way to save articles, videos and more",
"author": "Thomas Citharel",
"homepageURL": "https://wallabag.org",
"homepageURL": "http://doc.wallabag.org/en/User/save_your_first_article.html#firefox-social-api-service",
"origin": "https://wallabag.org",
"postActivationURL": "https://wallabag.org",
"postActivationURL": "http://doc.wallabag.org/en/User/save_your_first_article.html#firefox-social-api-service",
"version": "0.1"
};

View file

@ -17,7 +17,7 @@
<h3>{% trans "Browser Addons" %}</h3>
<ul>
<li><a href="https://addons.mozilla.org/firefox/addon/wallabag/" target="_blank">{% trans "Standard Firefox Add-On" %}</a></li>
<li><button onclick="activateSocialFeature(this)">Mozilla Services Social API Extension</button>
<li><button onclick="activateSocialFeature(this)">{% trans "Mozilla Services (Social API) Extension" %}</button></li>
<li><a href="https://chrome.google.com/webstore/detail/wallabag/bepdcjnnkglfjehplaogpoonpffbdcdj" target="_blank">{% trans "Chrome Extension" %}</a></li>
</ul>
<h3>{% trans "Mobile Apps" %}</h3>

View file

@ -36,3 +36,33 @@
<script src="{{ poche_url }}themes/_global/js/saveLink.js"></script>
<script src="{{ poche_url }}themes/_global/js/keyboard.js"></script>
<script src="{{ poche_url }}themes/_global/js/popupForm.js"></script>
<!-- Enable Firefox Social Services
script put there because of the call to poche_url -->
<script>
var baseurl = "{{ poche_url }}";
console.log(baseurl);
var data = {
"name": "wallabag",
"iconURL": baseurl + "/themes/_global/img/appicon/firefox-service-icon-16.png",
"icon32URL": baseurl + "/themes/_global/img/appicon/firefox-service-icon-32.png",
"icon64URL": baseurl + "/themes/_global/img/appicon/firefox-service-icon-64.png",
"shareURL": baseurl + "/index.php?action=add&plainurl=%{url}",
"description": "wallabag Extension for Firefox - The (soon to become) best way to save articles, videos and more",
"author": "Thomas Citharel",
"homepageURL": "http://doc.wallabag.org/en/User/save_your_first_article.html#firefox-social-api-service",
"origin": "https://wallabag.org",
"postActivationURL": "http://doc.wallabag.org/en/User/save_your_first_article.html#firefox-social-api-service",
"version": "0.1"
};
function activateSocialFeature(node) {
var event = new CustomEvent("ActivateSocialFeature");
node.setAttribute("data-service", JSON.stringify(data));
node.dispatchEvent(event);
}
</script>

View file

@ -16,7 +16,8 @@
</p>
<h3>Browser Plugins</h3>
<ul>
<li><a href="https://addons.mozilla.org/firefox/addon/wallabag/" target="_blank">{% trans "Firefox Add-On" %}</a></li>
<li><a href="https://addons.mozilla.org/firefox/addon/wallabag/" target="_blank">{% trans "Standard Firefox Add-On" %}</a></li>
<li><button onclick="activateSocialFeature(this)">{% trans "Mozilla Services (Social API) Extension" %}</button></li>
<li><a href="https://chrome.google.com/webstore/detail/wallabag/bepdcjnnkglfjehplaogpoonpffbdcdj" target="_blank">{% trans "Chrome Extension" %}</a></li>
</ul>
<h3>Mobile Apps</h3>