diff options
author | Andrew Dolgov <[email protected]> | 2009-12-18 11:47:47 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2009-12-18 11:47:47 +0300 |
commit | b1bd222cd5e89c1c77d671e20f14f8ff0e66b863 (patch) | |
tree | f3db372ef8c285376816e152b7ab12fb83f5c79c /mobile/index.php | |
parent | 706fe94907be5bd6940600fd4e0d23b400c9a011 (diff) |
mobile: implement flat list browsing mode
Diffstat (limited to 'mobile/index.php')
-rw-r--r-- | mobile/index.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/mobile/index.php b/mobile/index.php index 5a2ed97e6..3b933f96d 100644 --- a/mobile/index.php +++ b/mobile/index.php @@ -67,8 +67,16 @@ <a id="myBackButton" class="button" href="#"></a> <a class="button" target="_self" href="logout.php">Logout</a> </div> - - <?php render_categories_list($link); ?> + + <?php + $use_cats = get_pref($link, 'ENABLE_FEED_CATS'); + + if ($use_cats) { + render_categories_list($link); + } else { + render_flat_feed_list($link); + } + ?> </body> </html> |