{get_brands var=all_brands}
{if $all_brands}
    <div class="brands row jjjj">   
    	{foreach $all_brands as $b}	
    	{if !$b->visible}{continue}{/if}
        <div class="brand col-sm-2 col-xs-4" style="width: 12.5%">
            <div class="brand-image">{if $b->image}<a class="w" href="/brands/{$b->url}/" data-brand="{$b->id}"><img class="img-thumbnail" src="/{$config->brands_images_dir}{$b->image}" alt="{$b->name}"></a>{/if}</div>                    
    		<div class="brand-name"><a class="w" href="/brands/{$b->url}/" data-brand="{$b->id}">{$b->name}</a></div>        
        </div>           		
    	{/foreach}
    </div>
{/if}