From: Andrew Dolgov Date: Sun, 28 Nov 2010 09:26:09 +0000 (+0300) Subject: shorten long titles in postHeader/cdmHeader X-Git-Tag: 1.5.0~31 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=a64029e55f5ce63515f4c694d1b30ebce0edc9db;p=tt-rss.git shorten long titles in postHeader/cdmHeader --- diff --git a/functions.php b/functions.php index 4a0213d8..0075fd12 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;