diff options
author | Andrew Dolgov <[email protected]> | 2010-11-28 12:26:09 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-11-28 12:26:09 +0300 |
commit | a64029e55f5ce63515f4c694d1b30ebce0edc9db (patch) | |
tree | 594e0e74116d66cab13dc68f622ee5524f521da5 /functions.php | |
parent | cd2cc43dfe20731af02791a12be9fc4a32948656 (diff) |
shorten long titles in postHeader/cdmHeader
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 11 |
1 files 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 "<div class=\"postDate$rtl_class\">$parsed_updated</div>"; if ($line["link"]) { - print "<div clear='both'><a target='_blank' href=\"" . + print "<div clear='both'><a target='_blank' + title=\"".htmlspecialchars($line['title'])."\" + href=\"" . $line["link"] . "\">" . - $line["title"] . "<span class='author'>$entry_author</span></a></div>"; + truncate_string($line["title"], 100) . + "<span class='author'>$entry_author</span></a></div>"; } else { print "<div clear='both'>" . $line["title"] . "$entry_author</div>"; } @@ -5118,8 +5121,10 @@ onclick=\"return cdmClicked(event, $id);\" class=\"titleWrap$hlc_suffix\"> <a class=\"title\" + title=\"".htmlspecialchars($line['title'])."\" target=\"_blank\" href=\"". - htmlspecialchars($line["link"])."\">".$line["title"]. + htmlspecialchars($line["link"])."\">". + truncate_string($line["title"], 100) . " $entry_author</a>"; print $labels_str; |