summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2008-08-08 05:06:19 +0100
committerAndrew Dolgov <[email protected]>2008-08-08 05:06:19 +0100
commitbd51294a513939c7c4fa379eba7ff89e1efe7255 (patch)
tree7716270e9ee67a230dc19a60dcc1135c97de4816 /functions.php
parentf28b542cb9a48130ec8fb6e6582b5b78c332650f (diff)
display feed icons in ungrouped vfeeds
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php29
1 files changed, 14 insertions, 15 deletions
diff --git a/functions.php b/functions.php
index 1e1aff0e3..b6212cd15 100644
--- a/functions.php
+++ b/functions.php
@@ -4989,6 +4989,14 @@
$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')) {
@@ -5001,17 +5009,6 @@
$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)\">".
@@ -5067,16 +5064,18 @@
</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 {