From 254e0e4b82b01491ef6d2384ed97ba9eb05e0ceb Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 8 Sep 2005 07:31:16 +0100 Subject: Starred vfolder --- functions.php | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'functions.php') 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 = ""; + } else { + $feed_icon = ""; + } + + $feed = "$feed_title"; + + print "
  • "; + if (ENABLE_FEED_ICONS) { + print "$feed_icon"; + } + + print "$feed"; + + if ($unread != 0) { + $fctr_class = ""; + } else { + $fctr_class = "class=\"invisible\""; + } + + print " + ($unread)"; + + print "
  • "; + + } + ?> -- cgit v1.2.3