summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-12-05 22:36:12 +0300
committerAndrew Dolgov <[email protected]>2018-12-05 22:36:12 +0300
commit4996269d5503dbe21b4eab2d2b820a7c0e3bcf27 (patch)
tree6a626e5e449297befe7c0747617060cc2ce6f2af /plugins
parent94bc24ff31e22323d7d50243a1dd18d90a66cbc7 (diff)
remove mark_button (just use hotkeys or main icon, why is this even needed?)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mark_button/init.php42
1 files changed, 0 insertions, 42 deletions
diff --git a/plugins/mark_button/init.php b/plugins/mark_button/init.php
deleted file mode 100644
index 8f05d1ada..000000000
--- a/plugins/mark_button/init.php
+++ /dev/null
@@ -1,42 +0,0 @@
-<?php
-class Mark_Button extends Plugin {
- private $host;
-
- function init($host) {
- $this->host = $host;
-
- $host->add_hook($host::HOOK_ARTICLE_BUTTON, $this);
- }
-
- function about() {
- return array(1.0,
- "Bottom un/star button for the combined mode",
- "fox");
- }
-
- function hook_article_button($line) {
- $marked_pic = "";
- $id = $line["id"];
-
- if (get_pref("COMBINED_DISPLAY_MODE")) {
- if (sql_bool_to_bool($line["marked"])) {
- $marked_pic = "<img
- src=\"images/mark_set.png\"
- class=\"marked-pic marked-$id\" alt=\"Unstar article\"
- onclick='Headlines.toggleMark($id)'>";
- } else {
- $marked_pic = "<img
- src=\"images/mark_unset.png\"
- class=\"marked-pic marked-$id\" alt=\"Star article\"
- onclick='Headlines.toggleMark($id)'>";
- }
- }
-
- return $marked_pic;
- }
-
- function api_version() {
- return 2;
- }
-
-}