<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 <data:top.commentLabel/>
<b:else/>
<data:post.numComments/> <data:top.commentLabelPlural/>
</b:if>
</a>
</b:if>hoặc trong mẫu Template của http://www.vnpressnet.com là:
<b:if cond='data:blog.pageType != "item"'>
<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 Response<b:else/><data:post.numComments/> Responses</b:if></a>
<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'>0 comment
<b:else/>
<data:post.numComments/> <data:top.commentLabelPlural/>
</b:if>
</b:if>
</a>
</b:if>Bạn có thể thay thế "0 comment" trong đoạn code trên bằng bất cứ gì mà bạn thích (thí dụ: "No comments", "No comments at all", "Please please please leave a comment", "Chưa có nhận xét nào",...)
Đường dây nóng
Ý kiến bạn đọc [ 0 ]
Ý kiến của bạn