Wednesday, September 13, 2006

More hacking into the comments line

On second thought: why not adapt the "0 comments" to something more interesting like "No comments at all" or "Please please please leave a comment" ?

It is easy as this. For explanation see my post on the 1 comment workaround.

<b:if cond='data:post.allowComments'>
<a class='comment-link' expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'>
<b:if cond='data:post.numComments == 1'>1 comment
<b:else/>
<b:if cond='data:post.numComments == 0'>No comments
<b:else/>
<data:post.numComments/> <data:top.commentLabelPlural/>
</b:if>
</b:if>
</a>
</b:if> 

2 comments:

  1. Hello, Friends, use this online converter for file converting to other formats;

    File Spinner

    ReplyDelete