From e1e025823c6e868e59cde9ecc8fa495ee45de7bc Mon Sep 17 00:00:00 2001 From: neodarz Date: Wed, 28 Aug 2019 12:21:29 +0200 Subject: Update theme to current shaarli version --- tools.html | 67 ++++++++++++++++++++++++++++++++++++-------------------------- 1 file changed, 39 insertions(+), 28 deletions(-) (limited to 'tools.html') diff --git a/tools.html b/tools.html index baa033a..20d0c89 100644 --- a/tools.html +++ b/tools.html @@ -1,5 +1,5 @@ - + {include="includes"} @@ -45,6 +45,14 @@ + {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)+ '&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}"> - -- cgit v1.2.1