summaryrefslogtreecommitdiff
path: root/plugins/close_button/init.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-03-04 15:09:56 +0300
committerAndrew Dolgov <[email protected]>2021-03-04 15:09:56 +0300
commit2f6ea8b387ee4717516cbc96140f58542fbfa30c (patch)
tree051684c2e3a0b1e6aa5a1dd27c8975b1cba6634b /plugins/close_button/init.php
parentb74e31384463541732b622bd5529a18a6100b329 (diff)
split a bunch of plugins into separate repos
Diffstat (limited to 'plugins/close_button/init.php')
-rw-r--r--plugins/close_button/init.php33
1 files changed, 0 insertions, 33 deletions
diff --git a/plugins/close_button/init.php b/plugins/close_button/init.php
deleted file mode 100644
index c1169fc34..000000000
--- a/plugins/close_button/init.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-class Close_Button extends Plugin {
- private $host;
-
- function init($host) {
- $this->host = $host;
-
- $host->add_hook($host::HOOK_ARTICLE_BUTTON, $this);
- }
-
- function about() {
- return array(null,
- "Adds a button to close article panel",
- "fox");
- }
-
- function get_css() {
- return ".post .header .buttons i.material-icons.icon-close-article { color : red; }";
- }
-
- function hook_article_button($line) {
- if (!get_pref(Prefs::COMBINED_DISPLAY_MODE)) {
- return "<i class='material-icons icon-close-article'
- style='cursor : pointer' onclick='Article.close()'
- title='".__('Close article')."'>close</i>";
- }
- }
-
- function api_version() {
- return 2;
- }
-
-}