]> git.wh0rd.org - tt-rss.git/commitdiff
mobile: add fresh feed
authorAndrew Dolgov <fox@bah.spb.su>
Sun, 26 Aug 2007 10:57:08 +0000 (11:57 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sun, 26 Aug 2007 10:57:08 +0000 (11:57 +0100)
mobile/functions.php

index a9a4887d41f5523e168540f14dac9c9296bb1a01..df2abcf8773cb41b23b5579ee9f0691bb87e0ddb 100644 (file)
                                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";