{if $category->subcategories}
    <div class="brands row">
    	{foreach from=$category->subcategories item=c}
            {if $c->visible && $c->menu} 
            <div class="brand col-sm-2 col-xs-4">            		
                <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}" title="{$c->name}" 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}
