1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 15:25:59 +00:00

bring back excerpts in unexpanded mode

This commit is contained in:
Andrew Dolgov
2018-12-02 19:04:53 +03:00
parent f89924f7a1
commit ad1b6f0a86
3 changed files with 32 additions and 13 deletions

View File

@@ -536,9 +536,13 @@ class Feeds extends Handler_Protected {
$tmp_content .= $labels_str;
$tmp_content .= "<span class='collapse'>
<img src=\"images/collapse.png\" onclick=\"return Article.cdmCollapseActive(event)\"
title=\"".__("Collapse article")."\"/></span>";
if (!get_pref("CDM_EXPANDED")) {
$tmp_content .= "<span class='collapse'>
<img src=\"images/collapse.png\" onclick=\"return Article.cdmUnsetActive(event)\"
title=\"" . __("Collapse article") . "\"/></span>";
$tmp_content .= "<span class='excerpt'>" . $line["content_preview"] . "</span>";
}
$tmp_content .= "</span>";