diff options
author | Andrew Dolgov <[email protected]> | 2018-12-09 16:35:00 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-12-09 16:35:00 +0300 |
commit | e54db22998081fb002735cc7395040ab1e5a0502 (patch) | |
tree | 69ff2d176774307bcf8c659254d7cc960dc5ad69 | |
parent | 607ede512fed6c838c18ef04b48aab76ce1aa79a (diff) |
close_button: use vector icon
-rw-r--r-- | plugins/close_button/button.png | bin | 655 -> 0 bytes | |||
-rw-r--r-- | plugins/close_button/init.php | 11 |
2 files changed, 7 insertions, 4 deletions
diff --git a/plugins/close_button/button.png b/plugins/close_button/button.png Binary files differdeleted file mode 100644 index 1514d51a3..000000000 --- a/plugins/close_button/button.png +++ /dev/null diff --git a/plugins/close_button/init.php b/plugins/close_button/init.php index 8678d577c..62404a6ee 100644 --- a/plugins/close_button/init.php +++ b/plugins/close_button/init.php @@ -14,15 +14,18 @@ class Close_Button extends Plugin { "fox"); } + function get_css() { + return "i.icon-close-article { color : red; }"; + } + /** * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ function hook_article_button($line) { if (!get_pref("COMBINED_DISPLAY_MODE")) { - $rv = "<img src=\"plugins/close_button/button.png\" - class='tagsPic' style=\"cursor : pointer\" - onclick=\"Article.close()\" - title='".__('Close article')."'>"; + $rv = "<i class='material-icons icon-close-article' + style='cursor : pointer' onclick='Article.close()' + title='".__('Close article')."'>close</i>"; } return $rv; |