From a64029e55f5ce63515f4c694d1b30ebce0edc9db Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 28 Nov 2010 12:26:09 +0300 Subject: [PATCH] shorten long titles in postHeader/cdmHeader --- functions.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/functions.php b/functions.php index 4a0213d86..0075fd12f 100644 --- a/functions.php +++ b/functions.php @@ -4590,9 +4590,12 @@ print "
$parsed_updated
"; if ($line["link"]) { - print "
" . - $line["title"] . "$entry_author
"; + truncate_string($line["title"], 100) . + "$entry_author"; } else { print "
" . $line["title"] . "$entry_author
"; } @@ -5118,8 +5121,10 @@ onclick=\"return cdmClicked(event, $id);\" class=\"titleWrap$hlc_suffix\"> ".$line["title"]. + htmlspecialchars($line["link"])."\">". + truncate_string($line["title"], 100) . " $entry_author"; print $labels_str;