From: Andrew Dolgov Date: Mon, 1 Apr 2013 14:06:09 +0000 (+0400) Subject: add HOOK_TOOLBAR_BUTTON, HOOK_ACTION_ITEM, HOOK_HEADLINE_TOOLBAR_BUTTON X-Git-Tag: 1.7.6~63 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ceb78471089b69f433bb41646e2c5016a4a19a1d;p=tt-rss.git add HOOK_TOOLBAR_BUTTON, HOOK_ACTION_ITEM, HOOK_HEADLINE_TOOLBAR_BUTTON --- diff --git a/classes/feeds.php b/classes/feeds.php index ff6b864e..0c643325 100644 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -143,6 +143,10 @@ class Feeds extends Handler_Protected { //$reply .= "get_hooks($pluginhost::HOOK_HEADLINE_TOOLBAR_BUTTON) as $p) { + echo $p->hook_headline_toolbar_button($feed_id, $is_cat); + } + return $reply; } diff --git a/classes/pluginhost.php b/classes/pluginhost.php index a6ba72fc..5b8a77fd 100644 --- a/classes/pluginhost.php +++ b/classes/pluginhost.php @@ -24,6 +24,9 @@ class PluginHost { const HOOK_FEED_FETCHED = 12; const HOOK_SANITIZE = 13; const HOOK_RENDER_ARTICLE_API = 14; + const HOOK_TOOLBAR_BUTTON = 15; + const HOOK_ACTION_ITEM = 16; + const HOOK_HEADLINE_TOOLBAR_BUTTON = 17; const KIND_ALL = 1; const KIND_SYSTEM = 2; diff --git a/index.php b/index.php index 0b8a957b..7fb7a787 100644 --- a/index.php +++ b/index.php @@ -199,12 +199,15 @@ - - + get_hooks($pluginhost::HOOK_TOOLBAR_BUTTON) as $p) { + echo $p->hook_toolbar_button(); + } + ?> +
-->
+ + get_hooks($pluginhost::HOOK_ACTION_ITEM) as $p) { + echo $p->hook_action_item(); + } + ?> +