From 6293d3717c32ca338c8e9d69b9eb70ed423b6ee5 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 7 Jan 2017 15:29:17 +0300 Subject: [PATCH] add toggle_sidebar plugin, remove obsolete toggle button add PluginHost::HOOK_MAIN_TOOLBAR_BUTTON --- classes/pluginhost.php | 1 + index.php | 11 +++--- js/tt-rss.js | 8 +---- .../toggle_sidebar/application_side_list.png | Bin 0 -> 510 bytes plugins/toggle_sidebar/init.php | 34 ++++++++++++++++++ 5 files changed, 42 insertions(+), 12 deletions(-) create mode 100644 plugins/toggle_sidebar/application_side_list.png create mode 100644 plugins/toggle_sidebar/init.php diff --git a/classes/pluginhost.php b/classes/pluginhost.php index 675e0af17..82565257a 100644 --- a/classes/pluginhost.php +++ b/classes/pluginhost.php @@ -50,6 +50,7 @@ class PluginHost { const HOOK_RENDER_ENCLOSURE = 29; const HOOK_ARTICLE_FILTER_ACTION = 30; const HOOK_ARTICLE_EXPORT_FEED = 31; + const HOOK_MAIN_TOOLBAR_BUTTON = 32; const KIND_ALL = 1; const KIND_SYSTEM = 2; diff --git a/index.php b/index.php index 6b27d9042..220fe27c1 100644 --- a/index.php +++ b/index.php @@ -171,17 +171,18 @@
+ get_hooks(PluginHost::HOOK_MAIN_TOOLBAR_BUTTON) as $p) { + echo $p->hook_main_toolbar_button(); + } + ?> +
- -