{* *}{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} {* *}