{* *}{strip} {* *} {if !empty($items)} {$number = (empty($config->demo)) ? 0 : rand(0, 1000)} {* *} {$columns = $columns|default:4} {$maxcount = $maxcount|default:1000000} {$openRow = '
'} {$closeRow = '
'} {* *} {foreach $items as $item} {$pos = $item@iteration % $columns} {($pos == 1) ? $openRow : ''} {* *} {$number = $number + 1} {include 'common/card-product.htm'} {($pos == 0) ? $closeRow : ''} {$maxcount = $maxcount - 1} {if $maxcount < 1} {break} {/if} {/foreach} {* *} {($pos != 0) ? $closeRow : ''} {* *} {else}
Нет товаров!
{/if} {/strip}