diff options
author | Andrew Dolgov <[email protected]> | 2013-03-25 22:45:40 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-03-25 22:45:40 +0400 |
commit | 2e4faaacffb69142a294bf761bc9079360135781 (patch) | |
tree | 770614a459e5c3abb14b47f80c3f9d92c4777d0f | |
parent | a6adb136fd366d4e0d417a79bb41a0b4d2578efb (diff) |
add unread_first view mode
-rw-r--r-- | include/functions.php | 4 | ||||
-rw-r--r-- | index.php | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/functions.php b/include/functions.php index fd92348be..115cc0352 100644 --- a/include/functions.php +++ b/include/functions.php @@ -2407,6 +2407,10 @@ $order_by = "score DESC, $order_by"; } + if ($view_mode == "unread_first") { + if (!$override_order) $override_order = "unread DESC, $order_by"; + } + if ($override_order) { $order_by = $override_order; } @@ -160,6 +160,7 @@ <option value="marked"><?php echo __('Starred') ?></option> <option value="published"><?php echo __('Published') ?></option> <option value="unread"><?php echo __('Unread') ?></option> + <option value="unread_first"><?php echo __('Unread First') ?></option> <!-- <option value="noscores"><?php echo __('Ignore Scoring') ?></option> --> </select> |