From a04c8e8dc2efd08e6f4d828d93099bacf02d421d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 18 Oct 2007 03:55:44 +0100 Subject: add collapsed CDM mode --- functions.php | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'functions.php') diff --git a/functions.php b/functions.php index f87491d61..32240b1ac 100644 --- a/functions.php +++ b/functions.php @@ -4622,7 +4622,25 @@ "target=\"_new\" href=", $line["content_preview"]); } - print "
" . $line["content_preview"] . "

"; + $expand_cdm = get_pref($link, 'CDM_EXPANDED'); + + if ($expand_cdm) { + $cdm_cstyle = ""; + } else { + $cdm_cstyle = "style=\"display : none\""; + } + + print "
"; + + print "
"; + print $line["content_preview"]; + print "
"; + + print " + Show article"; + + print "

"; print "
"; -- cgit v1.2.3