From 6a1ad084069c86359ab6e10d2b9ee5e87422c7d0 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 12 Dec 2005 13:58:21 +0100 Subject: [PATCH] rework article view header --- backend.php | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) 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
"; -- 2.39.2