]> git.wh0rd.org - tt-rss.git/commitdiff
display feed icons in ungrouped vfeeds
authorAndrew Dolgov <fox@madoka.spb.ru>
Fri, 8 Aug 2008 04:06:19 +0000 (05:06 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Fri, 8 Aug 2008 04:06:19 +0000 (05:06 +0100)
functions.php
tt-rss.css

index 1e1aff0e35a6ae483efe3da350b98d1e5143a53e..b6212cd1513defcf5bf9c9813f172b3f60332258 100644 (file)
                                        $entry_author = " - $entry_author";
                                }
 
+                               $has_feed_icon = is_file(ICONS_DIR . "/$feed_id.ico");
+
+                               if ($has_feed_icon) {
+                                       $feed_icon_img = "<img class=\"tinyFeedIcon\" src=\"".ICONS_URL."/$feed_id.ico\" alt=\"\">";
+                               } else {
+                                       //$feed_icon_img = "<img class=\"tinyFeedIcon\" src=\"images/blank_icon.gif\" alt=\"\">";
+                               }
+
                                if (!get_pref($link, 'COMBINED_DISPLAY_MODE')) {
 
                                        if (get_pref($link, 'VFEED_GROUP_BY_FEED')) {
 
                                                        $vf_catchup_link = "(<a onclick='javascript:catchupFeedInGroup($feed_id, \"$cur_feed_title\");' href='#'>mark as read</a>)";
 
-                                                       $has_feed_icon = is_file(ICONS_DIR . "/$feed_id.ico");
-
-                                                       if ($has_feed_icon) {
-                                                               $feed_icon_img = "<img class=\"tinyFeedIcon\" src=\"".ICONS_URL."/$feed_id.ico\" alt=\"\">";
-                                                       } else {
-                                                               //$feed_icon_img = "<img class=\"tinyFeedIcon\" src=\"images/blank_icon.gif\" alt=\"\">";
-                                                       }
-
-//                                                     $class = "odd";
-//                                                     $lnum = 0;
-
                                                        print "<tr class='feedTitle'><td colspan='7'>".
                                                                "<div style=\"float : right\">$feed_icon_img</div>".
                                                                "<a href=\"javascript:viewfeed($feed_id, '', false)\">".
                                                        </span>";
                                                }
                                        }
-
-
                                        print "</td>";
-                                       
+
 #                                      }
                                        
                                        print "<td class=\"hlUpdated\" onclick='javascript:view($id,$feed_id)'><nobr>$updated_fmt&nbsp;</nobr></td>";
 
                                        print "<td class='hlMarkedPic'>$score_pic</td>";
-       
+
+                                       if ($line["feed_title"] && !get_pref($link, 'VFEED_GROUP_BY_FEED')) {
+                                               print "<td class=\"hlFeedIcon\">$feed_icon_img</td>";
+                                       }
+
                                        print "</tr>";
 
                                } else {
index 1dced04f9b678876113d649301f1b4b9a622b190..ae8240e88d373b7b3775187d0a2b8cff7610a424 100644 (file)
@@ -872,6 +872,12 @@ table.headlinesList {
        width : 100%;
 }
 
+table.headlinesList td.hlFeedIcon {
+       width : 25px;
+       text-align : center;
+}
+
+
 table.headlinesList td.hlMarkedPic {
        width : 25px;
        text-align : center;