Styling the comments left by the author of a post differently - Hiranyaloka/Documentation GitHub Wiki
This is the code used on MovableType.org. It achieves two things:
- it alternates the CSS class for odd and even comments
- it applies an additional class to comments left by the author of the post
<div class="comment pkg
comment-<mt:if name="__odd__">odd<mt:else>even</mt:if>
<MTIfCommenterIsEntryAuthor> comment-author</mtifcommenterisentryauthor>"
<MTIfArchiveTypeEnabled archive_type="Individual"> id="comment-<$MTCommentID$>"</mtifarchivetypeenabled>>
<div class="inner">
<div class="comment-meta">
<h4 class="commenter-name">
<$MTCommentAuthorLink default_name="Anonymous" show_email="0"$>
<MTIfNonEmpty tag="CommentAuthorIdentity"><$MTCommentAuthorIdentity$></mtifnonempty>
</h4>
<p class="byline"><a href="#comment-<$MTCommentID$>" title="Permalink to this comment"><$MTCommentDate format="%x %X"$></a> | <MTCommentReplyLink></p>
</div>
<div class="comment-body">
<$MTCommentBody$>
</div>
</div>
</div>