From 85233b8ea0b065c96a883635efa80152347523de Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 5 Dec 2007 07:24:48 +0100 Subject: [PATCH] mobile: display Published feed --- mobile/functions.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/mobile/functions.php b/mobile/functions.php index 07a7544de..3d67f4a23 100644 --- a/mobile/functions.php +++ b/mobile/functions.php @@ -40,7 +40,7 @@ if ($num_fresh > 0) $class .= "Unread"; - printMobileFeedEntry(-3, $class, "Fresh articles", $num_fresh, + printMobileFeedEntry(-3, $class, __("Fresh articles"), $num_fresh, "../images/fresh.png", $link); $num_starred = getFeedUnread($link, -1); @@ -49,9 +49,18 @@ if ($num_starred > 0) $class .= "Unread"; - printMobileFeedEntry(-1, $class, "Starred articles", $num_starred, + printMobileFeedEntry(-1, $class, __("Starred articles"), $num_starred, "../images/mark_set.png", $link); + $class = "virt"; + + $num_published = getFeedUnread($link, -2); + + if ($num_published > 0) $class .= "Unread"; + + printMobileFeedEntry(-2, $class, __("Published articles"), $num_published, + "../images/pub_set.png", $link); + if (get_pref($link, 'ENABLE_FEED_CATS')) { print ""; }