$feed_id = $feed_id;
$limit = 15;
$filter = '';
- $view_mode = 'adaptive';
+
+ if (!mobile_get_pref($link, "HIDE_READ"))
+ $view_mode = "all_articles";
+ else
+ $view_mode = 'adaptive';
if ($search) {
$search_mode = 'this_feed';
}
$qfh_ret = queryFeedHeadlines($link, $feed_id, $limit,
- $view_mode, $is_cat, $search, $search_mode, $match_on, false, $offset);
+ $view_mode, $is_cat, $search, $search_mode, $match_on,
+ "unread DESC, updated, score", $offset);
$result = $qfh_ret[0];
$feed_title = $qfh_ret[1];
require_once "../config.php";
require_once "functions.php";
- require_once "../functions.php";
+ require_once "../functions.php";
require_once "../sessions.php";
- require_once "../version.php";
+ require_once "../version.php";
require_once "../db-prefs.php";
$link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
</div>
<div class="row">
- <label><?php echo __('Hide read feeds') ?></label>
+ <label><?php echo __('Hide read articles and feeds') ?></label>
<div class="toggle" id="HIDE_READ" onclick="setPref(this)" toggled="<?php echo mobile_pref_toggled($link, "HIDE_READ") ?>"><span class="thumb"></span><span class="toggleOn"><?php echo __('ON') ?></span><span class="toggleOff"><?php echo __('OFF') ?></span></div>
</div>