{if marked_spammed($comment)} {assign var='comment_attr' value='style="display:none"'} {assign var='spam_attr' value='style="display:block"'} {else} {assign var='comment_attr' value=''} {assign var='spam_attr' value='style="display:none"'} {/if} {if $rep_mode}
- {$user_id = $comment.userid} {$user=$userquery->get_user_details($user_id)}
  {name($user)}

  {$comment.comment|comment}

  {$comment.date_added|niceTime}
  {if !$comment.userid==userid() || has_access('admin_access',true)} {lang code='spam'} {/if} {if has_access('admin_del_access') || $comment.userid==userid() || $comment.type_owner_id==userid()} · {lang code='delete'}{/if}
{else}
- {$user_id=$comment.userid} {$user=$userquery->get_user_details($user_id)}
  {if $comment.anonym_name != ''} {$comment.anonym_name} (Annonymous) {else} {name($user)} {/if}

  {$comment.comment|comment}

  {$comment.date_added|niceTime}
  {if $userquery->login_check('',true)} {lang code='reply'} {/if} {if !$comment.userid==userid() || has_access('admin_access',true)} · {lang code='spam'} {/if} {if has_access('admin_del_access') || $comment.userid==userid() || $comment.type_owner_id==userid()} · {lang code='delete'}{/if}
  {if $comment.children} {$child_comment = $comment.children} {foreach from=$child_comment item=replies} {foreach from=$replies|@array_reverse item=reply} {if $reply@iteration < 4}
  - {$user_id = $reply.userid} {$user=$userquery->get_user_details($user_id)}
    {name($user)}

    {$reply.comment|comment}

    {$reply.date_added|niceTime}
    {if !$comment.userid==userid() || has_access('admin_access',true)} {lang code='spam'} {/if} {if has_access('admin_del_access') || $comment.userid==userid() || $comment.type_owner_id==userid()} · {lang code='delete'}{/if}
  {else} {$flag = $comment.comment_id}
  - {$user_id = $reply.userid} {$user=$userquery->get_user_details($user_id)}
    {name($user)}

    {$reply.comment|comment}

    {$reply.date_added|niceTime}
    {lang code='spam'} {if has_access('admin_del_access') || $comment.userid==userid() || $comment.type_owner_id==userid()} · {lang code='delete'}{/if}
  {/if} {/foreach} {/foreach} {/if}
  {if $flag}
  More Replies...
  {/if}
{/if}