{strip} {$wa->title(sprintf('[`%s reviews`]', $product.name))} {$_product_data = [ "product" => $product, "reviews_count" => count($reviews), "is_review_page" => true ]} {$wa->globals("showBottomBanner", true)} {$wa->globals("productPageData", $_product_data)} {$wa->globals("globalHeader", _w('%d review for ','%d reviews for ', $reviews_count)|cat:$product.name|escape)}
[`Write a review`]
{$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} {* SOCIAL ACCOUNTS *} {include file="`$wa_parent_theme_path`/login.adapters.html" inline}
[`Your name`]
[`Email`]
[`Website`]
{if !empty($auth_adapters[$current_auth_source])} {$adapter = $auth_adapters[$current_auth_source]}
[`Your name`]
{$current_auth.name|escape} [`log out`]
{/if} {/if}
[`Title`]
[`Rate product`]
{for $i = 1 to 5} {/for}
[`Review`]
{$_images_enabled = $wa->setting("allow_image_upload", false, "shop")} {if !empty($_images_enabled)}
[`Images`]
{strip}
[`Upload photos`] [`or drag & drop here (max. 10 photos)`]
{/strip}
{strip} {capture assign="_file_template"}
{/capture} {/strip} {strip} {capture assign="_error_template"}
%text%
{/capture} {/strip}
{/if} {$_moderate_enabled = $wa->setting('moderation_reviews', 0, 'shop')} {if !empty($_moderate_enabled)}
[`Your review will be published after moderation.`]
{/if} {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}
{if empty($current_user_id) && !empty($review_service_agreement) && !empty($review_service_agreement_hint)}
{/if}
{/if}
{if !empty($reviews)} {/if}
{/strip}