{_w('%d comment','%d comments',$post.comment_count)}

[`Add comment`]
{if $post.comment_count == 0} {/if} {$depth=-1} {foreach $post.comments as $comment} {if $comment.depth < $depth} {$loop=$depth-$comment.depth} {section name="end-comment" loop=$loop} {/section} {$depth=$comment.depth} {/if} {if $comment.depth == $depth}
  • {/if} {if $comment.depth > $depth} {/section}
  • [`Add comment`]

    {$current_user_id=$wa->userId()}
    {if empty($current_user_id)} {if $require_authorization}
    {sprintf('[`To add a comment please sign up or login`]',$wa->signupUrl(),$wa->loginUrl())}
    {elseif $auth_adapters} {/if}

    {if $require_authorization}
    {sprintf('[`To add a comment please sign up or login`]',$wa->signupUrl(),$wa->loginUrl())}
    {/if} {foreach $auth_adapters as $adapter}
    getId()}style="display:none"{/if}>

    {$current_auth.name|default:''|escape} [`log out`]

    {/foreach} {else}

    {$wa->user('name')} [`log out`]

    {/if}

    {if $request_captcha && empty($current_user_id)} {$wa->captcha()} {/if}