X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=plugins%2Fisso%2Fisso.php;h=79e7380b66f543ade34bb080e027cba26990a7bf;hb=76fe68d924d424283d0a1784c5f5e7582dda3a00;hp=5bc1cce26e79d1be3cc64fa3bda9109a12c2ea3f;hpb=e648f62b4ffee16a89619815eb3e7ee7a4dff87f;p=github%2Fshaarli%2FShaarli.git diff --git a/plugins/isso/isso.php b/plugins/isso/isso.php index 5bc1cce2..79e7380b 100644 --- a/plugins/isso/isso.php +++ b/plugins/isso/isso.php @@ -5,6 +5,8 @@ */ use Shaarli\Config\ConfigManager; +use Shaarli\Plugin\PluginManager; +use Shaarli\Render\TemplatePage; /** * Display an error everywhere if the plugin is enabled without configuration. @@ -46,9 +48,36 @@ function hook_isso_render_linklist($data, $conf) $isso = sprintf($issoHtml, $issoUrl, $issoUrl, $link['id'], $link['id']); $data['plugin_end_zone'][] = $isso; + } else { + $button = ''; + // For the default theme we use a FontAwesome icon which is better than an image + if ($conf->get('resource.theme') === 'default') { + $button .= ''; + } else { + $button .= '