From: Andrew Dolgov Date: Mon, 12 Dec 2005 12:58:21 +0000 (+0100) Subject: rework article view header X-Git-Tag: schema_freeze_for_1.1.1~57 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=6a1ad084069c86359ab6e10d2b9ee5e87422c7d0;p=tt-rss.git rework article view header --- diff --git a/backend.php b/backend.php index c56e46c0..ec662d81 100644 --- a/backend.php +++ b/backend.php @@ -719,10 +719,10 @@ } else { $comments_url = $line["link"]; } - $entry_comments = "($num_comments comments)"; + $entry_comments = "$num_comments comments"; } else { if ($line["comments"] && $line["link"] != $line["comments"]) { - $entry_comments = "(Comments)"; + $entry_comments = "Comments"; } } @@ -730,7 +730,7 @@ print "
"; - print ""; + print ""; $parsed_updated = date(get_pref($link, 'LONG_DATE_FORMAT'), strtotime($line["updated"])); @@ -764,15 +764,13 @@ $tags_str = preg_replace("/, $/", "", $tags_str); $f_tags_str = preg_replace("/, $/", "", $f_tags_str); - print " - "; +// $truncated_link = truncate_string($line["link"], 60); -/* if ($tags_str) { - print " - "; - } */ + if ($tags_str || $entry_comments) { + print " + "; + } print "
" . $line["title"] . "
" . $line["title"] . "
- ".$line["link"]." - $entry_comments$tags_str
Tags:$tags_str
+ $entry_comments$tags_str
";