This commit is contained in:
Matthias Gutjahr 2013-07-26 12:48:13 +02:00
parent 61a85c28f8
commit cda50f40fa
2 changed files with 2 additions and 1 deletions

View File

@ -272,6 +272,7 @@ function serendipity_fetchComments($id, $limit = null, $order = '', $showAll = f
e.timestamp AS entrytimestamp, e.timestamp AS entrytimestamp,
e.id AS entryid, e.id AS entryid,
e.authorid, e.authorid,
e.author as entryauthor,
co.id AS commentid, co.id AS commentid,
co.parent_id AS parent_id, co.parent_id AS parent_id,
co.status co.status

View File

@ -1,6 +1,6 @@
<h2 class="visuallyhidden">{$CONST.COMMENTS}</h2> <h2 class="visuallyhidden">{$CONST.COMMENTS}</h2>
{foreach from=$comments_by_authors item="entry_comments"} {foreach from=$comments_by_authors item="entry_comments"}
<article class="clearfix serendipity_entry"> <article class="clearfix serendipity_entry{if $entry_comments.entryauthor == $entry_comments.author} serendipity_comment_author_self{/if}">
<h3><a href="{$entry_comments.link}">{$entry_comments.title|@default:$entry_comments.link}</a></h3> <h3><a href="{$entry_comments.link}">{$entry_comments.title|@default:$entry_comments.link}</a></h3>
<div class="comments_for_entry">{$entry_comments.tpl_comments}</div> <div class="comments_for_entry">{$entry_comments.tpl_comments}</div>
</article> </article>