2 class Close_Button extends Plugin {
7 $this->link = $host->get_link();
10 $host->add_hook($host::HOOK_ARTICLE_BUTTON, $this);
15 "Adds a button to close article panel",
19 function hook_article_button($line) {
20 if (!get_pref($this->link, "COMBINED_DISPLAY_MODE")) {
21 $rv = "<img src=\"plugins/close_button/button.png\"
22 class='tagsPic' style=\"cursor : pointer\"
23 onclick=\"closeArticlePanel()\"
24 title='".__('Close article')."'>";