From: Andrew Dolgov Date: Sat, 7 Jan 2017 12:29:17 +0000 (+0300) Subject: add toggle_sidebar plugin, remove obsolete toggle button X-Git-Tag: 17.1~20 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=6293d3717c32ca338c8e9d69b9eb70ed423b6ee5;p=tt-rss.git add toggle_sidebar plugin, remove obsolete toggle button add PluginHost::HOOK_MAIN_TOOLBAR_BUTTON --- diff --git a/classes/pluginhost.php b/classes/pluginhost.php index 675e0af1..82565257 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 6b27d904..220fe27c 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(); + } + ?> +
- -