diff options
author | Andrew Dolgov <[email protected]> | 2008-08-08 04:46:02 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2008-08-08 04:46:02 +0100 |
commit | dc80334727fbcfd6ad4fc268687982c4617779f5 (patch) | |
tree | 4d5f4f0d8da10fce216673d288d4d373ab6acdc9 /functions.php | |
parent | 37b9528b104edbce5216e5392730291d5cbc92ec (diff) |
display feed icons in grouped vfeed mode
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/functions.php b/functions.php index eb67f520e..1e1aff0e3 100644 --- a/functions.php +++ b/functions.php @@ -5001,7 +5001,19 @@ $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)\">". $line["feed_title"]."</a> $vf_catchup_link:</td></tr>"; } @@ -5079,7 +5091,16 @@ $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=\"\">"; + } + print "<div class='cdmFeedTitle'>". + "<div style=\"float : right\">$feed_icon_img</div>". "<a href=\"javascript:viewfeed($feed_id, '', false)\">". $line["feed_title"]."</a> $vf_catchup_link</div>"; } |