{* *}{strip} {* *} {capture assign=pageName} {if !empty($category) || !empty($brand)} {name from=category def=''} {name from=brand def=''} {else} Каталог {/if} {/capture} {* *} {if !empty($products)}

{$pageName} {**} {echoVar from=items_count}

{* *} {if empty($CurrentPage)} {if !empty($brand->description)}
{$brand->description}
{elseif !empty($category->description)}
{$category->description}
{/if} {/if} {* *} {foreach $products as $item} {include 'common/product-card.htm' fullview = FALSE backurl = '' number = $item@iteration} {/foreach} {* *} {echoVar from=PagesNavigation} {* *} {if empty($CurrentPage)} {if !empty($brand->seo_description)}
{$brand->seo_description}
{elseif !empty($category->seo_description)}
{$category->seo_description}
{/if} {/if}
{* *} {else} {include 'common/no-items.htm' tab = 'Раздел' title = $pageName message = 'Нет товаров!' extra = ''} {/if} {* *}
{* *} {if !empty($brand)} {$title = $brand->meta_title|default:$brand->name|default:'' scope=global} {elseif !empty($category)} {$title = $category->meta_title|default:$category->name|default:'' scope=global} {/if} {/strip}