aboutsummaryrefslogtreecommitdiff
path: root/tools.html
diff options
context:
space:
mode:
Diffstat (limited to 'tools.html')
-rw-r--r--tools.html67
1 files changed, 39 insertions, 28 deletions
diff --git a/tools.html b/tools.html
index baa033a..20d0c89 100644
--- a/tools.html
+++ b/tools.html
@@ -1,5 +1,5 @@
<!DOCTYPE html>
-<html>
+<html{if="$language !== 'auto'"} lang="{$language}"{/if}>
<head>
{include="includes"}
</head>
@@ -45,6 +45,14 @@
</a>
</div>
+ {if="$thumbnails_enabled"}
+ <div class="tools-item">
+ <a href="?do=thumbs_update" title="{'Synchronize all link thumbnails'|t}">
+ <span class="pure-button pure-u-lg-2-3 pure-u-3-4">{'Synchronize thumbnails'|t}</span>
+ </a>
+ </div>
+ {/if}
+
{loop="$tools_plugin"}
<div class="tools-item">
{$value}
@@ -72,10 +80,15 @@
function(){
var%20url%20=%20location.href;
var%20title%20=%20document.title%20||%20url;
+ var%20desc=document.getSelection().toString();
+ if(desc.length>4000){
+ desc=desc.substr(0,4000)+'...';
+ alert('{function="str_replace(' ', '%20', t('The selected text is too long, it will be truncated.'))"}');
+ }
window.open(
'{$pageabsaddr}?post='%20+%20encodeURIComponent(url)+
'&amp;title='%20+%20encodeURIComponent(title)+
- '&amp;description='%20+%20encodeURIComponent(document.getSelection())+
+ '&amp;description='%20+%20encodeURIComponent(desc)+
'&amp;source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1'
);
}
@@ -86,50 +99,49 @@
<div class="tools-item">
<a title="{'Drag this link to your bookmarks toolbar or right-click it and Bookmark This Link'|t},
{'Then click ✚Add Note button anytime to start composing a private Note (text post) to your Shaarli'|t}"
- href="?private=1&amp;post="
- class="bookmarklet-link">
+ class="bookmarklet-link"
+ href="javascript:(
+ function(){
+ var%20desc=document.getSelection().toString();
+ if(desc.length>4000){
+ desc=desc.substr(0,4000)+'...';
+ alert('{function="str_replace(' ', '%20', t('The selected text is too long, it will be truncated.'))"}');
+ }
+ window.open(
+ '{$pageabsaddr}?private=1&amp;post='+
+ '&amp;description='%20+%20encodeURIComponent(desc)+
+ '&amp;source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1'
+ );
+ }
+ )();">
<span class="pure-button pure-u-lg-2-3 pure-u-3-4">✚ {'Add Note'|t}</span>
</a>
</div>
</div>
</div>
-{if="$sslenabled"}
- <div class="pure-g">
- <div class="pure-u-lg-1-3 pure-u-1-24"></div>
- <div class="pure-u-lg-1-3 pure-u-22-24 page-form page-form-light">
- <h2 class="window-title">Firefox Social API</h2>
- <p>{'You need to browse your Shaarli over <strong>HTTPS</strong> to use this functionality.'|t}</p>
-
- <div class="tools-item">
- <a title="{'Click on this button to add Shaarli to the 'Share this page' button in Firefox"
- id="ff-social-button">
- <span class="pure-button pure-u-lg-2-3 pure-u-3-4">✚ {'Add to'|t} Firefox Social</span>
- </a>
- </div>
- </div>
- </div>
-{/if}
-
<div class="pure-g">
<div class="pure-u-lg-1-3 pure-u-1-24"></div>
<div class="pure-u-lg-1-3 pure-u-22-24 page-form page-form-light">
<h2 class="window-title">{'3rd party'|t}</h2>
<div class="tools-item">
- <a href="https://addons.mozilla.org/fr/firefox/addon/shaarli/" title="Firefox {'Plugin'|t}">
+ <a href="https://addons.mozilla.org/fr/firefox/addon/shaarli/">
<span class="pure-button pure-u-lg-2-3 pure-u-3-4">Firefox {'plugin'|t}</span>
</a>
</div>
<div class="tools-item">
- <a href="https://chrome.google.com/webstore/detail/shiny-shaarli/hajdfkmbdmadjmmpkkbbcnllepomekin"
- title="Chrome {'Plugin'|t}">
+ <a href="https://chrome.google.com/webstore/detail/shiny-shaarli/hajdfkmbdmadjmmpkkbbcnllepomekin">
<span class="pure-button pure-u-lg-2-3 pure-u-3-4">Chrome {'plugin'|t}</span>
</a>
</div>
<div class="tools-item">
- <a href="https://play.google.com/store/apps/details?id=com.dimtion.shaarlier&hl=fr"
- title="Android">
- <span class="pure-button pure-u-lg-2-3 pure-u-3-4">Android</span>
+ <a href="https://play.google.com/store/apps/details?id=com.dimtion.shaarlier&hl=fr">
+ <span class="pure-button pure-u-lg-2-3 pure-u-3-4">Android Shaarlier</span>
+ </a>
+ </div>
+ <div class="tools-item">
+ <a href="https://stakali.toneiv.eu/">
+ <span class="pure-button pure-u-lg-2-3 pure-u-3-4">Android Stakali</span>
</a>
</div>
<div class="tools-item">
@@ -146,4 +158,3 @@
value="{'Drag this link to your bookmarks toolbar, or right-click it and choose Bookmark This Link'|t}">
</body>
</html>
-