From 0e54e1059f3c3aa353a448567a9314ad694abbe1 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Tue, 14 Aug 2018 13:39:31 +0200 Subject: Isso plugin: add an icon in linklist if enabled Fixes #1075 --- plugins/isso/comment.png | Bin 0 -> 277 bytes plugins/isso/isso.php | 31 +++++++++++++++++++++++++++++-- plugins/isso/isso_button.html | 5 +++++ 3 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 plugins/isso/comment.png create mode 100644 plugins/isso/isso_button.html (limited to 'plugins/isso') diff --git a/plugins/isso/comment.png b/plugins/isso/comment.png new file mode 100644 index 00000000..0158c03b Binary files /dev/null and b/plugins/isso/comment.png differ diff --git a/plugins/isso/isso.php b/plugins/isso/isso.php index 5bc1cce2..378c11af 100644 --- a/plugins/isso/isso.php +++ b/plugins/isso/isso.php @@ -46,9 +46,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 .= ' + + archive.org + + -- cgit v1.2.3