From b810a0f146e5110906324eadaeec9ba7fc20d690 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 7 Dec 2006 10:57:09 +0100 Subject: drop table markup from article header --- backend.php | 36 ++++++++++++++++-------------------- 1 file changed, 16 insertions(+), 20 deletions(-) (limited to 'backend.php') diff --git a/backend.php b/backend.php index 545541cbf..9b0ce8f5f 100644 --- a/backend.php +++ b/backend.php @@ -211,7 +211,7 @@ print "
"; - print "
"; + print "
"; $entry_author = $line["author"]; @@ -219,19 +219,17 @@ $entry_author = " - by $entry_author"; } - if ($line["link"]) { - print "
"; - } else { - print ""; - } - $parsed_updated = date(get_pref($link, 'LONG_DATE_FORMAT'), strtotime($line["updated"])); - print ""; - - print ""; + print "
$parsed_updated
"; + + if ($line["link"]) { + print "
" . + $line["title"] . "$entry_author
"; + } else { + print "
" . $line["title"] . "$entry_author
"; + } $tmp_result = db_query($link, "SELECT DISTINCT tag_name FROM ttrss_tags WHERE post_int_id = " . $line["int_id"] . " @@ -247,9 +245,9 @@ $tag = $tmp_line["tag_name"]; $tag_str = "$tag, "; - if ($num_tags == 3) { + if ($num_tags == 6) { $tags_str .= "..."; - } else if ($num_tags < 3) { + } else if ($num_tags < 6) { $tags_str .= $tag_str; } $f_tags_str .= $tag_str; @@ -258,15 +256,13 @@ $tags_str = preg_replace("/, $/", "", $tags_str); $f_tags_str = preg_replace("/, $/", "", $f_tags_str); -// $truncated_link = truncate_string($line["link"], 60); + if (!$entry_comments) $entry_comments = " "; # placeholder -# if ($tags_str || $entry_comments) { - print " - "; -# } + print "
$tags_str + (+)
+
$entry_comments
"; - print "
" . - $line["title"] . "$entry_author
" . $line["title"] . "$entry_author$parsed_updated
- $entry_comments$tags_str (+)
"; + print "
"; print "
" . $feed_icon . "
"; print "
"; -- cgit v1.2.3-54-g00ecf