From cfad9259a6feacfa8194b1312770ae6db1ecce50 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 4 Mar 2011 17:53:02 +0300 Subject: mobile: allow showing category content inline (closes #315) --- mobile/functions.php | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) (limited to 'mobile/functions.php') diff --git a/mobile/functions.php b/mobile/functions.php index 7f5dd5c6f..68530cf8f 100644 --- a/mobile/functions.php +++ b/mobile/functions.php @@ -100,9 +100,9 @@ } - function render_category($link, $cat_id) { + function render_category($link, $cat_id, $offset) { $owner_uid = $_SESSION["uid"]; - + if ($cat_id >= 0) { if ($cat_id != 0) { @@ -227,10 +227,11 @@ function render_categories_list($link) { $owner_uid = $_SESSION["uid"]; - + + $cat_browse = mobile_get_pref($link, "BROWSE_CATS"); + print '"; } - function render_headlines_list($link, $feed_id, $cat_id, $offset, $search) { + function render_headlines_list($link, $feed_id, $cat_id, $offset, $search, + $is_cat = false) { $feed_id = $feed_id; $limit = 15; $filter = ''; - $is_cat = false; $view_mode = 'adaptive'; if ($search) { -- cgit v1.2.3