{* * Copyright ETS Software Technology Co., Ltd * * NOTICE OF LICENSE * * This file is not open source! Each license that you purchased is only available for 1 website only. * If you want to use this file on more websites (or projects), you need to purchase additional licenses. * You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. * * @author ETS Software Technology Co., Ltd * @copyright ETS Software Technology Co., Ltd * @license Valid for 1 website (or project) for each purchase of license *}
{if isset($grade_stats) && $grade_stats}

{l s='Total reviews' mod='ets_reviews'}

{$nb_reviews|intval}

{l s='Average rating' mod='ets_reviews'}

{$average_grade|floatval|round:1}
{if $grade_stats|count > 0} {foreach from=$grade_stats key='type' item='stats'}
{if $type == 1}★☆☆☆☆ {elseif $type == 2}★★☆☆☆ {elseif $type == 3}★★★☆☆ {elseif $type == 4}★★★★☆ {elseif $type == 5}★★★★★ {/if} {$stats.name|escape:'html':'UTF-8'} {$stats.grade_total|intval}
{/foreach} {/if}
{/if}

{l s='All reviews' mod='ets_reviews'}

{if !empty($grade_stats)}
{l s='Rating' mod='ets_reviews'}
{/if} {if !empty($sort_by)}
{l s='Sort by' mod='ets_reviews'}
{/if}
{if isset($list) && $list} {foreach from=$list item='rv'}
{if isset($rv.avatar) && $rv.avatar} {elseif isset($rv.avatar_caption) && isset($rv.avatar_color)} {$rv.avatar_caption|escape:'html':'UTF-8'} {/if}
{$rv.customer_name|escape:'html':'UTF-8'}
{if isset($rv.verify_purchase) && $rv.verify_purchase} {$rv.verify_purchase nofilter} {/if}
{$rv.display_date_add|escape:'htmlall':'UTF-8'}

{$rv.title nofilter}

{$rv.content nofilter}

{if isset($rv.images) && $rv.images}
    {assign var="ik" value=1} {foreach from=$rv.images item='image'}
  • {$image.image|escape:'quotes':'UTF-8'}-thumbnail.jpg
  • {assign var="ik" value=$ik+1} {/foreach}
{/if} {if isset($rv.videos) && $rv.videos}
    {assign var="ik" value=1} {foreach from=$rv.videos item='video'} {assign var="ik" value=$ik+1}
  • {/foreach}
{/if}
{/foreach} {else}

{l s='No reviews.' mod='ets_reviews'}

{/if}
{if !empty($show_footer_btn)} {/if}