]> git.wh0rd.org Git - tt-rss.git/commitdiff
add undocumented constant _SHOW_FEED_TITLE_IN_VFEEDS which enables showing full feed...
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 30 Jul 2011 15:07:56 +0000 (19:07 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 30 Jul 2011 15:07:56 +0000 (19:07 +0400)
functions.php

index 4ce67003387b16ebf5ba75047cd4920a7e00baff..699cfb93bf55dc6031cef000a839d668b48dd205 100644 (file)
 
                                        $reply['content'] .= $labels_str;
 
-                                       /* if (!get_pref($link, 'VFEED_GROUP_BY_FEED')) {
+                                       if (!get_pref($link, 'VFEED_GROUP_BY_FEED') &&
+                                               defined('_SHOW_FEED_TITLE_IN_VFEEDS')) {
                                                if (@$line["feed_title"]) {
-                                                       print "<span class=\"hlFeed\">
+                                                       $reply['content'] .= "<span class=\"hlFeed\">
                                                                (<a href=\"#\" onclick=\"viewfeed($feed_id)\">".
                                                                $line["feed_title"]."</a>)
                                                        </span>";
                                                }
-                                       } */
+                                       }
 
                                        $reply['content'] .= "</div>";
 
 
                                        $reply['content'] .= $labels_str;
 
+                                       if (!get_pref($link, 'VFEED_GROUP_BY_FEED') &&
+                                               defined('_SHOW_FEED_TITLE_IN_VFEEDS')) {
+                                               if (@$line["feed_title"]) {
+                                                       $reply['content'] .= "<span class=\"hlFeed\">
+                                                               (<a href=\"#\" onclick=\"viewfeed($feed_id)\">".
+                                                               $line["feed_title"]."</a>)
+                                                       </span>";
+                                               }
+                                       }
+
                                        if (!$expand_cdm)
                                                $content_hidden = "style=\"display : none\"";
                                        else