diff options
author | Andrew Dolgov <[email protected]> | 2007-08-26 11:57:08 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-08-26 11:57:08 +0100 |
commit | a10d293c44e9d6d2e17f9756ec9e412ac69bf811 (patch) | |
tree | 84aed3e33072771cefbc25f46d8aa491e7d2f433 /mobile/functions.php | |
parent | c47938f805f124cf7f6a2b6fa5348864a005f462 (diff) |
mobile: add fresh feed
Diffstat (limited to 'mobile/functions.php')
-rw-r--r-- | mobile/functions.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mobile/functions.php b/mobile/functions.php index a9a4887d4..df2abcf87 100644 --- a/mobile/functions.php +++ b/mobile/functions.php @@ -36,6 +36,15 @@ print "<li class=\"feedCatHolder\"><ul class=\"feedCatList\">"; } + $num_fresh = getFeedUnread($link, -3); + + $class = "virt"; + + if ($num_fresh > 0) $class .= "Unread"; + + printMobileFeedEntry(-3, $class, "Fresh articles", $num_fresh, + "../images/fresh.png", $link); + $num_starred = getFeedUnread($link, -1); $class = "virt"; |