{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)}
  {if $comment.anonym_name != ''} {$comment.anonym_name} (Guest) {else} {name($user)} {/if}

  {$comment.comment|comment}

  {if userid()}
  {$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}
  {/if}
{else}
- {$user_id=$comment.userid} {$user=$userquery->get_user_details($user_id)}
  {if $comment.anonym_name != ''} {$comment.anonym_name} (Guest)
  {else} {name($user)}
  {/if} {$comment.date_added|niceTime}

  {$comment.comment|comment}

  {if userid()}
  {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}
  {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)}
    {if $comment.anonym_name != ''} {$comment.anonym_name} (Guest) {else} {name($user)} {/if} {$reply.date_added|niceTime}

    {$reply.comment|comment}

    {if userid()}
    {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}
  {else} {$flag = $comment.comment_id}
  - {$user_id = $reply.userid} {$user=$userquery->get_user_details($user_id)}
    {if $comment.anonym_name != ''} {$comment.anonym_name} (Annonymous) {else} {name($user)} {/if} {$reply.date_added|niceTime}

    {$reply.comment|comment}

    {if userid()}
    {lang code='spam'} {if has_access('admin_del_access') || $comment.userid==userid() || $comment.type_owner_id==userid()} · {lang code='delete'}{/if}
    {/if}
  {/if} {/foreach} {/foreach} {/if}
  {if $flag}
  {lang code='more_replies'}...
  {/if}
{/if}