X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tpl%2Fdefault%2Ftools.html;h=c9ce1eaf4970b61ecc40f0e0e96ce47b56f666e9;hb=1c88a7b33e90ba3e33d88b148c086bc298126332;hp=6951ad28b6a8d29c4d8edbccff3f7730926d81c4;hpb=bb8cf6d3620456d5026df667752b793192f44fe1;p=github%2Fshaarli%2FShaarli.git diff --git a/tpl/default/tools.html b/tpl/default/tools.html index 6951ad28..c9ce1eaf 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' ); } @@ -89,9 +102,14 @@ 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(document.getSelection())+ + '&description='%20+%20encodeURIComponent(desc)+ '&source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1' ); } @@ -102,42 +120,28 @@
-{if="$sslenabled"} -
-
-
-

Firefox Social API

-

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

- - -
-
-{/if} -

{'3rd party'|t}

+