diff --git a/mobile/functions.php b/mobile/functions.php
index e07225da7..71baa08d1 100644
--- a/mobile/functions.php
+++ b/mobile/functions.php
@@ -67,6 +67,8 @@
print "";
} else if ($cat_id == -1) {
+ $title = __('Special');
+
print "
";
@@ -85,6 +87,37 @@
$title";
}
+ print "
";
+ } else if ($cat_id == -2) {
+
+ $title = __('Labels');
+
+ print "";
+
+ $result = db_query($link, "SELECT id, caption FROM ttrss_labels2
+ WHERE owner_uid = '$owner_uid'");
+
+ $label_data = array();
+
+ while ($line = db_fetch_assoc($result)) {
+
+ $id = -$line["id"] - 11;
+
+ $unread = getFeedUnread($link, $id);
+ $title = $line["caption"];
+
+ if ($unread > 0) {
+ $title = $title . " ($unread)";
+ $class = '';
+ } else {
+ $class = 'oldItem';
+ }
+
+ print "-
+ $title
";
+
+ }
print "
";
}
}