diff options
author | Andrew Dolgov <[email protected]> | 2011-11-14 11:51:12 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-11-14 11:51:12 +0400 |
commit | 13992673e4c7f6706a720c11b239c60519a0fd62 (patch) | |
tree | 9fe3693dee56a70d0b861c1f6335abdf5fd84fa7 | |
parent | b7f72dd62feeec84732caf513aca51a8d0509ba3 (diff) |
cdm: display comments link
-rw-r--r-- | functions.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/functions.php b/functions.php index 0fd2a802f..90f9e8a09 100644 --- a/functions.php +++ b/functions.php @@ -3700,6 +3700,8 @@ tag_cache, always_display_enclosures, note, + num_comments, + comments, unread,feed_id,marked,published,link,last_read,orig_feed_id, ".SUBSTRING_FOR_DATE."(last_read,1,19) as last_read_noms, $vfeed_query_part @@ -5554,6 +5556,24 @@ <a title=\"".__('Edit tags for this article')."\" href=\"#\" onclick=\"editArticleTags($id, $feed_id, true)\">(+)</a>"; + $num_comments = $line["num_comments"]; + $entry_comments = ""; + + if ($num_comments > 0) { + if ($line["comments"]) { + $comments_url = $line["comments"]; + } else { + $comments_url = $line["link"]; + } + $entry_comments = "<a target='_blank' href=\"$comments_url\">$num_comments comments</a>"; + } else { + if ($line["comments"] && $line["link"] != $line["comments"]) { + $entry_comments = "<a target='_blank' href=\"".$line["comments"]."\">comments</a>"; + } + } + + if ($entry_comments) $reply['content'] .= " ($entry_comments)"; + $reply['content'] .= "<div style=\"float : right\">"; $reply['content'] .= "<img src=\"images/art-zoom.png\" |