diff options
author | Andrew Dolgov <[email protected]> | 2012-12-28 00:49:54 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-12-28 00:49:54 +0400 |
commit | a6b4518788d623bb2253f982146498af3d72e9ae (patch) | |
tree | 2e58f835fbf5c95cfb6de9d6ec8036c83063259a /mobile | |
parent | bc230f3fde779e7f4b45c2c40ef803061e6e7227 (diff) |
add _MOBILE_REVERSE_HEADLINES (closes #524)
Diffstat (limited to 'mobile')
-rw-r--r-- | mobile/mobile-functions.php | 2 | ||||
-rw-r--r-- | mobile/prefs.php | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/mobile/mobile-functions.php b/mobile/mobile-functions.php index ffd7ba80d..65bba55df 100644 --- a/mobile/mobile-functions.php +++ b/mobile/mobile-functions.php @@ -349,7 +349,7 @@ $qfh_ret = queryFeedHeadlines($link, $feed_id, $limit, $view_mode, $is_cat, $search, $search_mode, $match_on, - "score DESC, date_entered DESC", $offset); + "score DESC, date_entered ".(mobile_get_pref($link, 'REVERSE_HEADLINES') ? 'ASC' : 'DESC'), $offset); $result = $qfh_ret[0]; $feed_title = $qfh_ret[1]; diff --git a/mobile/prefs.php b/mobile/prefs.php index 59c2d04ae..6b053dc3b 100644 --- a/mobile/prefs.php +++ b/mobile/prefs.php @@ -46,4 +46,9 @@ <div class="toggle" id="SORT_FEEDS_UNREAD" onclick="setPref(this)" toggled="<?php echo mobile_pref_toggled($link, "SORT_FEEDS_UNREAD") ?>"><span class="thumb"></span><span class="toggleOn"><?php echo __('ON') ?></span><span class="toggleOff"><?php echo __('OFF') ?></span></div> </div> +<div class="row"> + <label><?php echo __('Reverse headline order (oldest first)') ?></label> + <div class="toggle" id="REVERSE_HEADLINES" onclick="setPref(this)" toggled="<?php echo mobile_pref_toggled($link, "REVERSE_HEADLINES") ?>"><span class="thumb"></span><span class="toggleOn"><?php echo __('ON') ?></span><span class="toggleOff"><?php echo __('OFF') ?></span></div> +</div> + </fieldset> |