{* *}{strip} {* *} {if !empty($smarty.request.dynamic) && $emulator->existsModule('mod-next-products.htm')} {lastTemplate} {* *} {include 'common/list-products.htm' items = $products|default:FALSE columns = 3} {* *} {include 'mod-next-products.htm' easy = TRUE} {else} {* *} {requestUri except='*' nopages=TRUE assign=uri} {if $uri == '/categories'} {$category = serialize([ 'name' => 'Наши разделы', 'subcategories' => $categories ])} {$category = 'O:8:"stdClass"'|cat:(substr($category, 1))} {$category = unserialize($category)} {$path = [ 'Разделы' ]} {$title = 'Наши разделы' scope=global} {$description = '' scope=global} {$keywords = '' scope=global} {/if} {* *} {include 'common/breadcrumbs.htm'} {* *} {if $uri == '/categories' || !empty($config->ecommerceCatalogRootMap) && empty($brand) && !empty($category->subcategories) && count($category->path) == 1} {include 'common/subcategories-map.htm'} {else} {* *} {$opentag = ''} {$closetag = ''} {$columns = 4}
{if empty($config->ecommerceNoFilter)} {$class = $config->ecommerceCatalogView|default:'list'} {$class = $smarty.cookies.productView|default:$class} {$class = ($class == 'list') ? $class : (($class == 'table') ? 'tabled' : 'grid')} {$opentag = '
'} {$closetag = '
'} {$columns = 3} {/if} {* *} {capture assign=sorter} {if count($products) > 1}
Сортировать {echoVar from=items_count} шт. {* *} {if !empty($sort_modes)} {$my_modes = [ 1 => 'цене', 6 => 'названию' ]} {inputValue from=sort_method def=0 assign=method} {inputValue from=sort_descending def=0 assign=direction} {inputValue from=sort_laconical def=0 assign=laconical} по:
{foreach $sort_modes as $mode => $name} {if isset($my_modes[$mode])} {$class = ($mode == $method) ? 'class="active"' : ''} {$my_modes[$mode]} {/if} {/foreach} {* *} {if $method != 0} {/if} {* *}
{/if}
{/if} {/capture} {* *}

{capture assign=name} {name from=category def=''} {name from=brand def=''} {/capture} {$name|trim|default:'Каталог'}

{* *} {$opentag} {if empty($config->ecommerceNoCatalogPreamble)} {if empty($CurrentPage)} {body from=category assign=text} {body from=brand def=$text assign=text} {if !empty($text)}
{$text}
{/if} {/if} {/if} {* *} {if !empty($sorter) || !empty($PagesNavigation)}
{echoVar from=sorter} {pagination}
{/if} {* *}
{include 'common/list-products.htm' items = $products|default:FALSE} {* *} {if $emulator->existsModule('mod-next-products.htm')} {include 'mod-next-products.htm' easy = FALSE} {/if}
{* *} {if !empty($sorter) || !empty($PagesNavigation)}
{echoVar from=sorter} {pagination}
{/if} {* *} {if empty($config->ecommerceNoCatalogSeo)} {if empty($CurrentPage)} {echoVar from='category->seo_description' assign=text} {echoVar from='brand->seo_description' def=$text assign=text} {if !empty($text)}
{$text}
{/if} {/if} {/if} {$closetag}
{* *} {$main_description = $brand->description|default:$category->description|default:'' scope=global} {* *} {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} {/if} {/if} {/strip}