{* *}{strip} {* *} {if isset($products)} {include 'other-pages/featured.htm'} {else} {* *} {lastProducts count=300 assign=list} {$collection = []} {if !empty($list)} {foreach $list as $item} {echoVar from='item->brand' assign=name} {$name = ($name != '') ? $name : 'Разное'} {if !isset($collection[$name])} {$collection[$name] = []} {/if} {$collection[$name][] = $item} {/foreach} {$dummy = ksort($collection, $smarty.const.SORT_STRING)} {/if} {* *} {if !empty($collection)} {foreach $collection as $brand => $items} {inputValue from=brand assign=brand} {* *}

{$brand} {**} {count($items)}

{* *} {foreach $items as $item} {include 'common/product-card.htm' fullview = FALSE backurl = '' number = $item@iteration} {/foreach}
{/foreach} {* *} {else} {include 'common/no-items.htm' tab = 'Каталог' title = 'Каталог по производителям' message = 'Нет товаров!' extra = ''} {/if} {* *} {$count = count($collection)} {* *} {if $count < 3}
{if $count < 2}
{/if} {/if} {* *} {$menuSelectedId = 2 scope=global} {/if} {/strip}