{if $browse_location_settings.type!="single" && $bl_locations.values|@count > 1} {foreach name="master_loc" from=$bl_locations.values item=v} {/foreach} {/if} {if $browse_location_settings.type=="single"}
{capture name=some_content assign=no_elements}{$bl_locations.elements|@count}{/capture} {if $no_elements} {capture name=some_content assign=no_on_col}{($no_elements/4)|ceil}{/capture}
    {foreach name=list from=$bl_locations.elements item=t} {capture name=sfield assign=field2}{$t.el}{/capture}
  • {$t.el}
  • {if ($smarty.foreach.list.index+1)%$no_on_col==0 && $smarty.foreach.list.index && $smarty.foreach.list.index!=$bl_locations.no_elements-1}
    {/if} {/foreach}
{/if} {* end if no_elements *}
{else} {foreach name="loc1" from=$bl_locations.values item=v}
{capture name=some_content assign=no_elements}{$v.elements|@count}{/capture} {if $no_elements} {capture name=some_content assign=no_on_col}{($no_elements/4)|ceil}{/capture}
    {capture name=sfield assign=field1}{$v.name}{/capture} {foreach name=list from=$v.elements item=t} {capture name=sfield assign=field2}{$t.el}{/capture}
  • {$t.el}
  • {if ($smarty.foreach.list.index+1)%$no_on_col==0 && $smarty.foreach.list.index && $smarty.foreach.list.index!=$v.no_elements-1}
    {/if} {/foreach}
{/if}
{* end browse-tab-content *} {/foreach} {literal} {/literal} {/if} {* end if double *}
{* end browse-tabs *}