summaryrefslogtreecommitdiff
path: root/mobile
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-12-05 07:24:48 +0100
committerAndrew Dolgov <[email protected]>2007-12-05 07:24:48 +0100
commit85233b8ea0b065c96a883635efa80152347523de (patch)
treeb33cbbcd941c9aa903293818ad624a46cb85006f /mobile
parente5e9b8904f1afbec1e95767e28482f11c6dcbd56 (diff)
mobile: display Published feed
Diffstat (limited to 'mobile')
-rw-r--r--mobile/functions.php13
1 files 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 "</ul>";
}