mobile: rename HIDE_READ option, show read articles when it is disabled (refs #348)
This commit is contained in:
parent
6b9cb45005
commit
2e2d0802f1
2 changed files with 10 additions and 5 deletions
|
@ -323,7 +323,11 @@
|
|||
$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';
|
||||
|
@ -334,7 +338,8 @@
|
|||
}
|
||||
|
||||
$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];
|
||||
|
|
|
@ -7,11 +7,11 @@
|
|||
|
||||
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);
|
||||
|
@ -43,7 +43,7 @@
|
|||
</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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue