Отзывы
(!)
{$reviews = shopAllReviews::reviews(51, 0)}
{$mobile = $wa->isMobile()}
{if !empty($reviews)}
Только честные отзывы настоящих покупателей
{$_tmp = shuffle($reviews)}
{foreach $reviews as $review}
{if !empty($review.images)}
{$images_count = $review.images|count}
{if $mobile}
{$hide_count = 3}
{$_count = 2}
{else}
{$hide_count = 4}
{$_count = 3}
{/if}
{/foreach}
{$review.datetime|wa_datetime:"humandate"}
{$review.author.name}
{$_rate = $review.rate}
{foreach $review.images as $_image}
{$_count} && $_image@iteration > $hide_count} hidden{/if}>
{if $images_count > $_count && $_image@iteration == $hide_count}
+{$images_count - $_count}
{else}
{/if}
{/foreach}
{/if}
{$review.text}
{/if}