summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfox <[email protected]>2019-10-08 07:06:07 +0000
committerGogs <[email protected]>2019-10-08 07:06:07 +0000
commitd029e18976649c8fe928f685b9db423310f8f0f9 (patch)
treed73355d9f68c5f14533b008074a46742e647e91c
parentac3d561f4d797a47fb055bc158e5237053692a4f (diff)
parent8fd11fd53abe81b97a95e150bf52ec74ac51fce2 (diff)
Merge branch 'hook-feed-tree' of jc/tt-rss into master
-rwxr-xr-xclasses/pluginhost.php1
-rw-r--r--index.php5
2 files changed, 6 insertions, 0 deletions
diff --git a/classes/pluginhost.php b/classes/pluginhost.php
index eab808ae9..ac782e699 100755
--- a/classes/pluginhost.php
+++ b/classes/pluginhost.php
@@ -60,6 +60,7 @@ class PluginHost {
const HOOK_FILTER_TRIGGERED = 40;
const HOOK_GET_FULL_TEXT = 41;
const HOOK_ARTICLE_IMAGE = 42;
+ const HOOK_FEED_TREE = 43;
const KIND_ALL = 1;
const KIND_SYSTEM = 2;
diff --git a/index.php b/index.php
index ee66c0ef8..cf57def79 100644
--- a/index.php
+++ b/index.php
@@ -140,6 +140,11 @@
<div id="feedlistLoading">
<img src='images/indicator_tiny.gif'/>
<?php echo __("Loading, please wait..."); ?></div>
+ <?php
+ foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_FEED_TREE) as $p) {
+ echo $p->hook_feed_tree();
+ }
+ ?>
<div id="feedTree"></div>
</div>