From: Arthur Date: Wed, 30 Nov 2016 08:13:38 +0000 (+0100) Subject: Merge pull request #700 from teromene/firefox-social-title X-Git-Tag: v0.8.1~9 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=2a543983716e37cf1ea600e7485b0b69cf719053;hp=870541f1121e5750f015b407e692cf171d54e899;p=github%2Fshaarli%2FShaarli.git Merge pull request #700 from teromene/firefox-social-title Show page title when sharing via Firefox Social. --- diff --git a/index.php b/index.php index 84282b8d..5366cb0e 100644 --- a/index.php +++ b/index.php @@ -1078,6 +1078,7 @@ function renderPage($conf, $pluginManager) { $data = array( 'pageabsaddr' => index_url($_SERVER), + 'sslenabled' => !empty($_SERVER['HTTPS']) ); $pluginManager->executeHooks('render_tools', $data); diff --git a/tpl/tools.html b/tpl/tools.html index 8e285f44..e06d239d 100644 --- a/tpl/tools.html +++ b/tpl/tools.html @@ -50,12 +50,15 @@     Then click "✚Add Note" button anytime to start composing a private Note (text post) to your Shaarli.

+ + {if="$sslenabled"} ✚Add to Firefox social ⇐ Click on this button to add Shaarli to the "Share this page" button in Firefox.

+ {/if} {loop="$tools_plugin"} {$value} @@ -64,6 +67,7 @@