summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-09-08 07:31:16 +0100
committerAndrew Dolgov <[email protected]>2005-09-08 07:31:16 +0100
commit254e0e4b82b01491ef6d2384ed97ba9eb05e0ceb (patch)
tree001b9cf380febcbf39f0180a3d039e13b7ebff56 /functions.php
parent3fa371a0716a544e3c7c61a9cc5e8db5d531c213 (diff)
Starred vfolder
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/functions.php b/functions.php
index 5736c016e..c032364d7 100644
--- a/functions.php
+++ b/functions.php
@@ -320,4 +320,34 @@
return false;
}
+ function printFeedEntry($feed_id, $class, $feed_title, $unread, $icon_file) {
+
+ if (file_exists($icon_file) && filesize($icon_file) > 0) {
+ $feed_icon = "<img src=\"$icon_file\">";
+ } else {
+ $feed_icon = "<img src=\"images/blank_icon.gif\">";
+ }
+
+ $feed = "<a href=\"javascript:viewfeed($feed_id, 0);\">$feed_title</a>";
+
+ print "<li id=\"FEEDR-$feed_id\" class=\"$class\">";
+ if (ENABLE_FEED_ICONS) {
+ print "$feed_icon";
+ }
+
+ print "<span id=\"FEEDN-$feed_id\">$feed</span>";
+
+ if ($unread != 0) {
+ $fctr_class = "";
+ } else {
+ $fctr_class = "class=\"invisible\"";
+ }
+
+ print "<span $fctr_class id=\"FEEDCTR-$feed_id\">
+ (<span id=\"FEEDU-$feed_id\">$unread</span>)</span>";
+
+ print "</li>";
+
+ }
+
?>