summaryrefslogtreecommitdiff
path: root/mobile/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-09-09 14:24:14 +0400
committerAndrew Dolgov <[email protected]>2011-09-09 14:25:05 +0400
commitb9fca8678b2fc3603fc4e2d1b6da85b022f70381 (patch)
tree02ee4a973bb53f93167dd450c54790caaa7ca970 /mobile/functions.php
parent97e5dbb2e79ecb59d33f65b5d56076b79b6136c7 (diff)
mobile: fix headline ordering
mobile: fix htmlpurifier cache being included from wrong directory mobile: implement ability to mark article as unread (closes #367)
Diffstat (limited to 'mobile/functions.php')
-rw-r--r--mobile/functions.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/mobile/functions.php b/mobile/functions.php
index eb523d710..e84be9342 100644
--- a/mobile/functions.php
+++ b/mobile/functions.php
@@ -339,7 +339,7 @@
$qfh_ret = queryFeedHeadlines($link, $feed_id, $limit,
$view_mode, $is_cat, $search, $search_mode, $match_on,
- "unread DESC, updated, score", $offset);
+ "score DESC, date_entered DESC", $offset);
$result = $qfh_ret[0];
$feed_title = $qfh_ret[1];
@@ -523,6 +523,12 @@
<div class=\"toggle\" onclick=\"togglePublished($id, this)\" toggled=\"$is_published\"><span class=\"thumb\"></span><span class=\"toggleOn\">ON</span><span class=\"toggleOff\">OFF</span></div>
</div>";
+ print "<div class=\"row\">
+ <label>Unread</label>
+ <div class=\"toggle\" onclick=\"toggleUnread($id, this)\" toggled=\"$is_unread\"><span class=\"thumb\"></span><span class=\"toggleOn\">ON</span><span class=\"toggleOff\">OFF</span></div>
+ </div>";
+
+
print "</fieldset>";
print "</div>";