X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tpl%2Fdefault%2Ftools.html;h=045defc9efbb02073a7d773eb8beba5e6008426d;hb=78657347c5b463d7c22bfc8c87b7db39fe058833;hp=baa033aff7cb0b22cbaed714b2b04f99fd17052f;hpb=b9b41d25e319f44f9fb8259a0237a8ee81ad394b;p=github%2Fshaarli%2FShaarli.git diff --git a/tpl/default/tools.html b/tpl/default/tools.html index baa033af..045defc9 100644 --- a/tpl/default/tools.html +++ b/tpl/default/tools.html @@ -1,5 +1,5 @@ - + {include="includes"} @@ -11,40 +11,48 @@

{'Settings'|t}

{if="!$openshaarli"} {/if} + {if="$thumbnails_enabled"} + + {/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)+ + '{$pageabsaddr}admin/shaare?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,50 +99,49 @@
-{if="$sslenabled"} -
-
-
-

Firefox Social API

-

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

- - -
-
-{/if} -

{'3rd party'|t}

+
@@ -146,4 +158,3 @@ value="{'Drag this link to your bookmarks toolbar, or right-click it and choose Bookmark This Link'|t}"> -