From 23d72f39996342b070c34dc4990cd79929305cfd Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 4 Nov 2010 00:24:18 +0300 Subject: allow generated feeds to use view_mode --- functions.php | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'functions.php') diff --git a/functions.php b/functions.php index 0712a8a91..171173e58 100644 --- a/functions.php +++ b/functions.php @@ -3376,7 +3376,11 @@ if ($view_mode == "marked") { $view_query_part = " marked = true AND "; } - + + if ($view_mode == "published") { + $view_query_part = " published = true AND "; + } + if ($view_mode == "unread") { $view_query_part = " unread = true AND "; } @@ -3639,7 +3643,7 @@ } function generate_syndicated_feed($link, $owner_uid, $feed, $is_cat, - $limit, $search, $search_mode, $match_on) { + $limit, $search, $search_mode, $match_on, $view_mode = false) { $note_style = "float : right; background-color : #fff7d5; border-width : 1px; ". "padding : 5px; border-style : dashed; border-color : #e7d796;". @@ -3648,8 +3652,8 @@ if (!$limit) $limit = 30; $qfh_ret = queryFeedHeadlines($link, $feed, - $limit, false, $is_cat, $search, $search_mode, $match_on, "date_entered DESC", 0, - $owner_uid); + $limit, $view_mode, $is_cat, $search, $search_mode, + $match_on, "date_entered DESC", 0, $owner_uid); $result = $qfh_ret[0]; $feed_title = htmlspecialchars($qfh_ret[1]); @@ -4141,7 +4145,7 @@ function print_headline_subtoolbar($link, $feed_site_url, $feed_title, $feed_id, $is_cat, $search, $match_on, - $search_mode) { + $search_mode, $view_mode) { print "
"; @@ -4218,11 +4222,10 @@ } print " - - \"".__('Generated - "; + + "; print "
"; @@ -5116,7 +5119,7 @@ } print_headline_subtoolbar($link, $feed_site_url, $feed_title, - $feed, $cat_view, $search, $match_on, $search_mode); + $feed, $cat_view, $search, $match_on, $search_mode, $view_mode); print "
"; } -- cgit v1.2.3