{if $category->id != 488 && $category->id != 556}
	{if $category->subcategories}
    <div class="categories row">
        {foreach from=$category->subcategories item=c}
        	{* Показываем только видимые категории *}
        	{if $c->visible && $c->menu}
        		<div class="category col-sm-4 col-xs-6">
        			<div class="category-image">
					<a class="w" href="/catalog/{$c->url}/" data-category="{$c->id}">
						{if $c->image}
                        	<img class="img-thumbnail" src="/{$config->categories_images_dir}{$c->image}?v=2" alt="{$c->name}">
                        {else}
                        	<img src="/images/zag2.jpg" alt="">
                        {/if}
                    </a></div>                                               
                    <div class="category-name">
						<a class="w" href="/catalog/{$c->url}/" data-category="{$c->id}">{$c->name}</a>
						<div class="category_anons">{$c->anons}</div>
					</div>
        		</div>                
        	{/if}
        {/foreach}
    </div>
	{/if}  
{else}
	<div class="brands row">
    	{foreach from=$category->subcategories item=c}
            {if $c->visible && $c->menu} 
            <div class="brand col-sm-2 col-xs-4" {if $category->id == 556} style="min-height:178px;"{/if}>            		
                <div class="brand-image">{if $c->image}<a class="w" href="/catalog/{$c->url}/" data-category="{$c->id}"><img class="img-thumbnail" src="/{$config->categories_images_dir}{$c->image}" alt="{$c->name}"></a>{/if}</div>                    
        		<div class="brand-name"><a class="w" href="/catalog/{$c->url}/" data-category="{$c->id}">{$c->name}</a></div>              
            </div>
            {/if}
    	{/foreach}
    </div> 
    
{/if}
