]> git.wh0rd.org Git - tt-rss.git/commitdiff
shorten long titles in postHeader/cdmHeader
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 28 Nov 2010 09:26:09 +0000 (12:26 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 28 Nov 2010 09:26:09 +0000 (12:26 +0300)
functions.php

index 4a0213d867185134919832bfbccc5909319bee8a..0075fd12f05d157e80bea2ef070b101293e6f77c 100644 (file)
                        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>";
                        }
                                                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;