X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tpl%2Fdefault%2Ftools.html;h=6b4d7bec6ad0b3b79d1c805fb715ff01942617d0;hb=e87f57c75890fe619e454fed3d7077a2eb63ac0d;hp=baa033aff7cb0b22cbaed714b2b04f99fd17052f;hpb=c4c655d9bfe68a914898d76bb9c479eea1b04f72;p=github%2Fshaarli%2FShaarli.git diff --git a/tpl/default/tools.html b/tpl/default/tools.html index baa033af..6b4d7bec 100644 --- a/tpl/default/tools.html +++ b/tpl/default/tools.html @@ -45,6 +45,14 @@ + {if="$thumbnails_enabled"} +
+ + {'Synchronize thumbnails'|t} + +
+ {/if} + {loop="$tools_plugin"}
{$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)+ '&title='%20+%20encodeURIComponent(title)+ - '&description='%20+%20encodeURIComponent(document.getSelection())+ + '&description='%20+%20encodeURIComponent(desc)+ '&source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1' ); } @@ -86,31 +99,27 @@
+ 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&post='+ + '&description='%20+%20encodeURIComponent(desc)+ + '&source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1' + ); + } + )();"> ✚ {'Add Note'|t}
-{if="$sslenabled"} -
-
-
-

Firefox Social API

-

{'You need to browse your Shaarli over HTTPS to use this functionality.'|t}

- - -
-
-{/if} -
@@ -128,8 +137,14 @@
- Android + title="Android Shaarlier"> + Android Shaarlier + +
+
+ + Android Stakali
@@ -146,4 +161,3 @@ value="{'Drag this link to your bookmarks toolbar, or right-click it and choose Bookmark This Link'|t}"> -