Slight problem in comment.tpl
Posted: Sat Feb 24, 2007 7:21 pm
I found a problem in comments.tpl from the template/default/ folder...
In the middle is this:
{if $entry.author == $comment.author}serendipity_comment_author_self{/if}{cycle values="comment_oddbox, comment_evenbox"}"
There needs to be a space before the {/if}, otherwise, you get a class of "serendipity_comment_author_selfcomment_oddbox", which obviously means that neither of the 2 intended classes of "serendipity_comment_author_self" nor "comment_oddbox" will work.
IMHO, the style of "padding-left" should be replaced with "margin-left" to produce a better graphic representation for threaded comments.
Code: Select all
<div id="serendipity_comment_{$comment.id}" class="serendipity_comment serendipity_comment_author_{$comment.author|@makeFilename} {if $entry.author == $comment.author}serendipity_comment_author_self{/if}{cycle values="comment_oddbox, comment_evenbox"}" style="padding-left: {$comment.depth*20}px">
{if $entry.author == $comment.author}serendipity_comment_author_self{/if}{cycle values="comment_oddbox, comment_evenbox"}"
There needs to be a space before the {/if}, otherwise, you get a class of "serendipity_comment_author_selfcomment_oddbox", which obviously means that neither of the 2 intended classes of "serendipity_comment_author_self" nor "comment_oddbox" will work.
IMHO, the style of "padding-left" should be replaced with "margin-left" to produce a better graphic representation for threaded comments.