From 3518718b25d2d7ff540040293b06b5e872f86216 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 17 Dec 2009 19:42:30 +0300 Subject: mobile: add experimental iUI based version --- mobile/functions.php | 882 ++++++++++----------------------------------------- 1 file changed, 171 insertions(+), 711 deletions(-) (limited to 'mobile/functions.php') diff --git a/mobile/functions.php b/mobile/functions.php index 28463dec6..bc4582134 100644 --- a/mobile/functions.php +++ b/mobile/functions.php @@ -2,811 +2,271 @@ define('MOBILE_FEEDLIST_ENABLE_ICONS', false); define('TTRSS_SESSION_NAME', 'ttrss_m_sid'); - function render_feeds_list($link) { + function mobile_feed_has_icon($id) { + $filename = "../".ICONS_DIR."/$id.ico"; - $tags = $_GET["tags"]; + return file_exists($filename) && filesize($filename) > 0; + } - print "
"; + function render_category($link, $cat_id) { + $owner_uid = $_SESSION["uid"]; - if ($tags) { - print __("Tags")." - (".__("View feeds").", "; + if ($cat_id != 0) { + $cat_query = "cat_id = '$cat_id'"; } else { - print __("Feeds")." - (".__("View tags").", "; + $cat_query = "cat_id IS NULL"; } - print "".__("Search").", "; - - print "".__("Logout").")"; - print "
"; - - print ""; - // workaround for NULL category - if ($category == "Uncategorized") { - if ($_COOKIE["ttrss_vf_uclps"] == 1) { - $collapsed = "t"; - } - } + /* print "