{$wa->title(sprintf('[`%s reviews`]', $product.name))}

{sprintf('[`%s reviews`]', $product.name|escape)}

{function review_reviews} {$depth=-1} {foreach $reviews as $review} {if $review.depth < $depth} {$loop=($depth-$review.depth)} {section name="end-review" loop=$loop} {/section} {$depth=$review.depth} {/if} {if $review.depth == $depth}
  • {/if} {if $review.depth > $depth} {/section} {/function}

    {_w('%d review for ','%d reviews for ', $reviews_count)|cat:$product.name|escape}

    [`Write a review`]

    0}style="display:none;"{/if}> {$current_user_id = $wa->userId()}
    {if empty($current_user_id) && $require_authorization}

    {sprintf( '[`To add a review please sign up or login`]', $wa->signupUrl(), $wa->loginUrl()) }

    {else} {if !empty($current_user_id)}

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

    {else} {if $auth_adapters} {/if}

    {if !empty($auth_adapters[$current_auth_source])} {$adapter = $auth_adapters[$current_auth_source]}

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

    {/if} {/if}

    {for $i = 1 to 5}{/for}

    {if $request_captcha && empty($current_user_id)} {$wa->captcha()} {/if} Ctrl+Enter
    {/if}
      {foreach $reviews as $review}
    • {include file="review.html" reply_allowed=$reply_allowed inline} {if !empty($review.comments)} {review_reviews reviews=$review.comments} {else}
        {/if}
      • {/foreach}