diff --git a/mobile/classic/functions.php b/mobile/classic/functions.php new file mode 100644 index 000000000..88b25ab25 --- /dev/null +++ b/mobile/classic/functions.php @@ -0,0 +1,857 @@ +"; + + if ($tags) { + print __("Tags")." + (".__("View feeds").", "; + } else { + print __("Feeds")." + (".__("View tags").", "; + } + + print "".__("Search").", "; + + print "".__("Logout").")"; + print ""; + + print ""; + } + + $category = $tmp_category; + + $collapsed = $line["collapsed"]; + + // workaround for NULL category + if ($category == "Uncategorized") { + if ($_COOKIE["ttrss_vf_uclps"] == 1) { + $collapsed = "t"; + } + } + + if ($collapsed == "t" || $collapsed == "1") { + $holder_class = "invisible"; + $ellipsis = "..."; + } else { + $holder_class = "feedCatHolder"; + $ellipsis = ""; + } + + if ($cat_id) { + $cat_id_qpart = "cat_id = '$cat_id'"; + } else { + $cat_id_qpart = "cat_id IS NULL"; + } + + $cat_id = sprintf("%d", $cat_id); + $cat_unread = getCategoryUnread($link, $cat_id); + + if ($cat_unread > 0) { + $catctr_class = ""; + } else { + $catctr_class = "invisible"; + } + + print "
  • + $tmp_category + + ($cat_unread)$ellipsis +
  • "; + + print "
  • +