]> git.wh0rd.org Git - tt-rss.git/commitdiff
mobile: display Published feed
authorAndrew Dolgov <fox@madoka.spb.ru>
Wed, 5 Dec 2007 06:24:48 +0000 (07:24 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Wed, 5 Dec 2007 06:24:48 +0000 (07:24 +0100)
mobile/functions.php

index 07a7544de8e29fe2c609bc0f1deeceada457f418..3d67f4a230c1e43a036adab685f2f192ed9019ed 100644 (file)
@@ -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);
 
                        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>";
                        }