{* /** * mitrocops * * NOTICE OF LICENSE * * This source file is subject to the EULA * that is bundled with this package in the file LICENSE.txt. * /* * * @author mitrocops * @category content_management * @package reviewsadv * @copyright Copyright mitrocops * @license mitrocops */ *} {if $reviewsadvrvis_on == 1} {if $reviewsadvratings_on == 1 || $reviewsadvtitle_on == 1 || $reviewsadvtext_on == 1} {if $reviewsadvis_blocklr == 1 && ($reviewsadvis_home_top == 1 || $reviewsadvis_cat_top == 1 || $reviewsadvis_man_top == 1 || $reviewsadvis_prod_top == 1 || $reviewsadvis_oth_top == 1)}

{l s='Last Product Reviews' mod='reviewsadv'}
{if $reviewsadvrsson == 1} {l s='RSS Feed' mod='reviewsadv'} {/if}

{if count($reviewsadvreviews_block)>0} {foreach from=$reviewsadvreviews_block item=review name=myLoop}
{if $review.product_img} {/if}
{l s='By' mod='reviewsadv'} {if $reviewsadvis_avatarr == 1 && strlen($review.avatar)>0 && $review.is_show_ava == 1} {$review.customer_name|escape:'htmlall':'UTF-8'} {/if} {if strlen($review.customer_name)>0} {if $reviewsadvis_uprof && $review.id_customer > 0 && $review.is_show_ava == 1}{/if}{$review.customer_name|escape:'htmlall':'UTF-8'}{if $reviewsadvis_uprof && $review.id_customer > 0 && $review.is_show_ava == 1}{/if} {/if} {if strlen($review.customer_name)>0}{l s='on' mod='reviewsadv'}{/if} {$review.time_add|date_format|escape:'htmlall':'UTF-8'}
{if $review.is_active == 1} {if $reviewsadvratings_on == 1 && $review.rating != 0}
({$review.rating|escape:'htmlall':'UTF-8'}/5)
{section name=ratid loop=5} {if $smarty.section.ratid.index < $review.rating} {$smarty.section.ratid.index|escape:'htmlall':'UTF-8'} {else} {$smarty.section.ratid.index|escape:'htmlall':'UTF-8'} {/if} {/section}
{/if} {/if}
{if $review.is_buy != 0} {l s='Verified Purchase' mod='reviewsadv'}
{/if}
{if $review.is_active == 1} {if $reviewsadvtext_on == 1 && strlen($review.text_review)>0} {$review.text_review|escape:'quotes':'UTF-8':strip_tags|substr:0:$reviewsadvblocklr_tr|escape:'htmlall':'UTF-8'}{if strlen($review.text_review)>$reviewsadvblocklr_tr}...{/if} {/if} {else} {l s='The customer has rated the product but has not posted a review, or the review is pending moderation' mod='reviewsadv'} {/if}
{/foreach}
{else}
{l s='There are not Product Reviews yet.' mod='reviewsadv'}
{/if}
{/if} {/if} {/if}