{if !count($comments)}
[`There are no comments in your blog yet.`]
{else}
[`Latest comments`]
{foreach $comments as $comment}
{$_author_uri = "javascript:void(0);"} {if !empty($comment.site)} {$_author_uri = $comment.site|escape} {/if} {* UserPic *} {if !empty($comment.user.photo_url_50)}
{/if}
{* Name *} {if !empty($comment.user.name)} {$comment.user.name|escape} {else} {if empty($comment.contact_id) && !empty($comment.email)} {$comment.email|escape} {/if} {/if} {* Date *} {$comment.datetime|wa_datetime:"humandatetime"}, {$comment.ip}
{if $comment.status == blogCommentModel::STATUS_DELETED}

[`Comment deleted`]

{elseif isset($comment.post) && (!$comment.post || $comment.post.status neq blogPostModel::STATUS_PUBLISHED)}

[`Comment to an unpublished post (not visible anymore)`]

{else} {* COMMENT TEXT *}

{$comment.text|escape|nl2br}

{* post link *} {if isset($comment.post) && $comment.post}

[`on`] {if $comment.post.blog_status == blogBlogModel::STATUS_PRIVATE} {/if} {if $comment.post.status eq blogPostModel::STATUS_PUBLISHED} {$comment.post.title|escape} {else} [`unpublished post`] {/if}

{/if} {* in reply to *} {if $comment.parent && isset($comment.parent_text)}

[`in reply to`] {if $comment.parent_status == blogCommentModel::STATUS_DELETED} [`Comment deleted`] {else} {$comment.parent_text|escape} {/if} {/if} {/if}

{/foreach} {/if}