summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-08-25 07:46:24 +0100
committerAndrew Dolgov <[email protected]>2005-08-25 07:46:24 +0100
commit78800912937468fc68219b0ae1190edc049282b7 (patch)
treeb48bf3e60375a8afc8df5980462a6ef0931be695 /backend.php
parent79a33f8922bf86c34bcc6a04bbfc917f4eba9653 (diff)
icons in feedlist
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/backend.php b/backend.php
index 6bc6ab9df..fc973edb8 100644
--- a/backend.php
+++ b/backend.php
@@ -52,7 +52,19 @@
print "<tr class=\"$class\" id=\"FEEDR-$feed_id\">";
+ $icon_file = ICONS_DIR . "/$feed_id.ico";
+
+ if (file_exists($icon_file) && filesize($icon_file) > 0) {
+ $feed_icon = "<img width=\"16\" height=\"16\"
+ src=\"" . ICONS_URL . "/$feed_id.ico\">";
+ } else {
+ $feed_icon = "&nbsp;";
+ }
+
$feed = "<a href=\"javascript:viewfeed($feed_id, 0);\">$feed</a>";
+ if (ENABLE_FEED_ICONS) {
+ print "<td>$feed_icon</td>";
+ }
print "<td id=\"FEEDN-$feed_id\">$feed</td>";
print "<td>";
print "<span id=\"FEEDU-$feed_id\">$unread</span>&nbsp;/&nbsp;";