{capture name=commentor_name} {$comment.user.name|escape} {/capture} {if $contact_rights && $comment.contact_id != 0} {$smarty.capture.commentor_name} {elseif $comment.site} {$smarty.capture.commentor_name} {else} {$smarty.capture.commentor_name} {/if} {if !$comment.contact_id && $comment.email} {$comment.email|escape} {/if} {if isset($comment.plugins) && isset($comment.plugins.authorname_suffix) && $comment.plugins.authorname_suffix} {* @event prepare_comments_backend.%plugin_id%.authorname_suffix *} {foreach $comment.plugins.authorname_suffix as $plugin => $output} {$output} {/foreach} {/if}
{if isset($comment.plugins) && isset($comment.plugins.before) && $comment.plugins.before} {* @event prepare_comments_backend.%plugin_id%.before *} {foreach $comment.plugins.before as $plugin => $output} {$output} {/foreach} {/if} {$comment.datetime|wa_datetime:"humandatetime"}, {$comment.ip} {if $comment.editable} [`delete`] [`restore`] {/if} {if $comment.status == blogCommentModel::STATUS_DELETED && !$comment.editable}[`Comment deleted`]
{else} {if isset($comment.post) && (!$comment.post || (!$comment.editable && ($comment.post && $comment.post.status neq blogPostModel::STATUS_PUBLISHED)))}{$comment.text|escape|nl2br}
[`Comment to an unpublished post (not visible anymore)`]
{else} {* COMMENT TEXT *}{$comment.text|escape|nl2br}
{* post link *} {if isset($comment.post) && $comment.post && (!isset($single_view) || !$single_view)}[`on`] {if isset($comment.post) && $comment.post && $comment.editable || (isset($comment.post) && $comment.post && $comment.post.status eq blogPostModel::STATUS_PUBLISHED)} {$comment.post.title|escape} {else} [`unpublished post`] {/if} {if $comment.post.blog_status == blogBlogModel::STATUS_PRIVATE} {/if}
{/if} {* in reply to *} {if $comment.parent && isset($comment.parent_text)}[`in reply to`] {if $comment.parent_status == blogCommentModel::STATUS_DELETED && !$comment.editable}[`Comment deleted`]{else}{$comment.parent_text|escape|truncate:256}{/if}