{$commentid=$comment.comment_id} {* Getting Comment Author *} {$author=comment_author($comment)} {* Marking it as spammed if either logged in user has marked it spam or its spam count is > then the limit *} {$is_comment_spam=is_comment_spam($comment)} {$is_spammed='no'} {if $is_comment_spam.user_spam || $is_comment_spam.global_spam} {$is_spammed='yes'} {/if}
{if $is_spammed!='yes'} {$time=niceTime($comment.date_added)} {$phrase=lang('posted by %s %s ')} {$author=$comment.username}
{$phrase|sprintf:$author:$time}
{$comment.comment|comment}
{lang code='Reply'} · {lang code='Report'} {if can_delete_comment($comment)} · {lang code='Delete'} {/if}
{/if} {if $is_spammed=='yes'}
{$spam_phrase=lang('marked_as_spam_comment_by_user')} {$spam_phrase|sprintf:$author} {if $is_comment_spam.user_spam}
{if can_delete_comment($comment)} {/if}
{/if}
{* comment in case user want to see it *} {if $is_comment_spam.user_spam} {/if} {/if}