From 9563e3bcd662b87ea6779714b51afb61571dd32d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 30 Nov 2018 13:51:54 +0300 Subject: remove expandable CDM headlines --- classes/feeds.php | 17 +++-------------- classes/pref/prefs.php | 2 +- 2 files changed, 4 insertions(+), 15 deletions(-) (limited to 'classes') diff --git a/classes/feeds.php b/classes/feeds.php index 0c1db62b6..48e3337e0 100755 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -277,7 +277,6 @@ class Feeds extends Handler_Protected { $lnum = $offset; $num_unread = 0; if ($_REQUEST["debug"]) $timing_info = print_checkpoint("PS", $timing_info); - $expand_cdm = get_pref('CDM_EXPANDED'); if (is_object($result)) { @@ -497,11 +496,9 @@ class Feeds extends Handler_Protected { } } - $expanded_class = $expand_cdm ? "expanded" : "expandable"; - $content_encoded = htmlspecialchars(json_encode($line["content"])); - $tmp_content = "
"; $tmp_content .= "
"; @@ -543,13 +540,6 @@ class Feeds extends Handler_Protected { "; - if (!$expand_cdm) - $content_hidden = "style=\"display : none\""; - else - $excerpt_hidden = "style=\"display : none\""; - - $tmp_content .= "" . $content_preview . ""; - $tmp_content .= ""; if (!$vfeed_group_enabled) { @@ -578,9 +568,7 @@ class Feeds extends Handler_Protected { $tmp_content .= "
"; //cdmHeader - $tmp_content .= "
"; + $tmp_content .= "
"; $tmp_content .= "
"; if ($line['note']) { @@ -590,6 +578,7 @@ class Feeds extends Handler_Protected { if (!$line['lang']) $line['lang'] = 'en'; + // this is filled from RROW data-content $tmp_content .= "
"; if ($line["orig_feed_id"]) { diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index 9b467ccc1..82456f342 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -162,7 +162,7 @@ class Pref_Prefs extends Handler_Protected { $prefs_blacklist = array("ALLOW_DUPLICATE_POSTS", "STRIP_UNSAFE_TAGS", "REVERSE_HEADLINES", "SORT_HEADLINES_BY_FEED_DATE", "DEFAULT_ARTICLE_LIMIT", - "FEEDS_SORT_BY_UNREAD"); + "FEEDS_SORT_BY_UNREAD", "CDM_EXPANDED"); /* "FEEDS_SORT_BY_UNREAD", "HIDE_READ_FEEDS", "REVERSE_HEADLINES" */ -- cgit v1.2.3