]> git.wh0rd.org - tt-rss.git/commitdiff
add HOOK_ARTICLE_LEFT_BUTTON
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 9 Apr 2013 12:46:56 +0000 (16:46 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 9 Apr 2013 12:46:56 +0000 (16:46 +0400)
classes/feeds.php
classes/pluginhost.php
include/functions.php

index 521aec708a47476cf37441859660032cdb61b637..6427559e137e159e48d694318d2fae74a880f182 100644 (file)
@@ -678,6 +678,10 @@ class Feeds extends Handler_Protected {
 
                                        $reply['content'] .= "<div class=\"cdmFooter\">";
 
+                                       foreach ($pluginhost->get_hooks($pluginhost::HOOK_ARTICLE_LEFT_BUTTON) as $p) {
+                                               $reply['content'] .= $p->hook_article_left_button($line);
+                                       }
+
                                        $tags_str = format_tags_string($line["tags"], $id);
 
                                        $reply['content'] .= "<img src='images/tag.png' alt='Tags' title='Tags'>
index a75027033ae57227e791f063c7297de917070c6d..9ae7b809e948935cfc98393c1bd76cd27b1a1937 100644 (file)
@@ -28,6 +28,7 @@ class PluginHost {
        const HOOK_ACTION_ITEM = 16;
        const HOOK_HEADLINE_TOOLBAR_BUTTON = 17;
        const HOOK_HOTKEY_INFO = 18;
+       const HOOK_ARTICLE_LEFT_BUTTON = 19;
 
        const KIND_ALL = 1;
        const KIND_SYSTEM = 2;
index f639b973bfb6f8f8871ab869f59d7d3fe73ea694..c4eed06a15c452ecfccefb99d08cbac478ec88b5 100644 (file)
                                        position=\"below\">$tags_str_full</div>";
 
                                global $pluginhost;
-
                                foreach ($pluginhost->get_hooks($pluginhost::HOOK_ARTICLE_BUTTON) as $p) {
                                        $rv['content'] .= $p->hook_article_button($line);
                                }
 
-
                        } else {
                                $tags_str = strip_tags($tags_str);
                                $rv['content'] .= "<span id=\"ATSTR-$id\">$tags_str</span>";
                        }
                        $rv['content'] .= "</div>";
-                       $rv['content'] .= "<div clear='both'>$entry_comments</div>";
+                       $rv['content'] .= "<div clear='both'>";
+
+                       global $pluginhost;
+                       foreach ($pluginhost->get_hooks($pluginhost::HOOK_ARTICLE_LEFT_BUTTON) as $p) {
+                               $rv['content'] .= $p->hook_article_left_button($line);
+                       }
+
+                       $rv['content'] .= "$entry_comments</div>";
 
                        if ($line["orig_feed_id"]) {