{include file="`$wa_active_theme_path`/breadcrumb.html" inline}

{$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}
    {if $reviews_count == 0}
    [`Be the first to write a review of this product!`]
    {else}
    {_w('%d review for ','%d reviews for ', $reviews_count)|cat:$product.name|escape}
    {/if}
    {$current_user_id = $wa->userId()} {if $reviews_count > 0} {if $theme_settings.product_reviews == 2}

    [`Add comment`]

    {else if $theme_settings.product_reviews == 1 && $current_user_id}

    [`Add comment`]

    {/if} {/if}
    0}style="display:none;"{/if}> {if $theme_settings.product_reviews == 2}
    {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} {if empty($current_user_id) && !empty($review_service_agreement) && !empty($review_service_agreement_hint)} {/if} [`Cancel`]
    {/if}
    {else if $theme_settings.product_reviews == 1 && $current_user_id}

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

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

    {if $request_captcha && empty($current_user_id)}{$wa->captcha()}{/if} [`Cancel`]
    {else}

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

    {/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}