|
|
@ -14,15 +14,18 @@ class Close_Button extends Plugin {
|
|
|
|
"fox");
|
|
|
|
"fox");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function get_css() {
|
|
|
|
|
|
|
|
return "i.icon-close-article { color : red; }";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
|
|
|
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
function hook_article_button($line) {
|
|
|
|
function hook_article_button($line) {
|
|
|
|
if (!get_pref("COMBINED_DISPLAY_MODE")) {
|
|
|
|
if (!get_pref("COMBINED_DISPLAY_MODE")) {
|
|
|
|
$rv = "<img src=\"plugins/close_button/button.png\"
|
|
|
|
$rv = "<i class='material-icons icon-close-article'
|
|
|
|
class='tagsPic' style=\"cursor : pointer\"
|
|
|
|
style='cursor : pointer' onclick='Article.close()'
|
|
|
|
onclick=\"Article.close()\"
|
|
|
|
title='".__('Close article')."'>close</i>";
|
|
|
|
title='".__('Close article')."'>";
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return $rv;
|
|
|
|
return $rv;
|
|
|
|