Browse Source

Merge branch 'hook-feed-tree' of jc/tt-rss into master

fox 2 months ago
parent
commit
d029e18976
2 changed files with 6 additions and 0 deletions
  1. 1 0
      classes/pluginhost.php
  2. 5 0
      index.php

+ 1 - 0
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;

+ 5 - 0
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>