From 3cd4239a62a449365c5869196187403598d361d8 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 21 May 2008 04:47:14 +0100 Subject: CDM: show clickable excerpt if article is collapsed --- functions.php | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) (limited to 'functions.php') diff --git a/functions.php b/functions.php index 100a1306e..087ba8a4e 100644 --- a/functions.php +++ b/functions.php @@ -5041,19 +5041,21 @@ } $expand_cdm = get_pref($link, 'CDM_EXPANDED'); + $show_excerpt = false; if ($expand_cdm && $score >= -100) { $cdm_cstyle = ""; + $show_excerpt = false; } else { $cdm_cstyle = "style=\"display : none\""; + $show_excerpt = true; } $mouseover_attrs = "onmouseover='postMouseIn($id)' onmouseout='postMouseOut($id)'"; print "
"; print "
"; @@ -5067,11 +5069,11 @@ print $entry_author; - if (!$expand_cdm || $score < -100) { +/* if (!$expand_cdm || $score < -100) { print "  (".__('Show article').")"; - } + } */ if (!get_pref($link, 'VFEED_GROUP_BY_FEED')) { @@ -5087,7 +5089,17 @@ "target=\"_new\" href=", $line["content_preview"]); } - print "
"; + if ($show_excerpt) { + print "
"; + print truncate_string(strip_tags($line["content_preview"]), 100); + print "
"; + } + + print "
"; // print "
"; -- cgit v1.2.3