Answer the question
In order to leave comments, you need to log in
How to display a smarti cycle in 4 columns?
Hello, tell me how to display this code in 4 columns?
{foreach name="master_loc" from=$bl_locations.values item=v}
{if $smarty.foreach.master_loc.index % 4 == 0}
<input id="lt{$v.id}" type="radio" name="bl_tabs" class="tradio" {if $smarty.foreach.master_loc.index==0}checked{/if}>
<label for="lt{$v.id}" id="bl_label{$v.id}">{$v.name|replace:" ":" "}</label>
{/if}
{/foreach}
{if $smarty.foreach.master_loc.index % 4 == 0}<hr/>{/if}
{foreach name="master_loc" from=$bl_locations.values item=v key=k}
{if $smarty.foreach.master_loc.index % 4 == 0}
<li>
<input id="lt{$v.id}" type="radio" name="bl_tabs" class="tradio" {if $smarty.foreach.master_loc.index==0}checked{/if}>
<label for="lt{$v.id}" id="bl_label{$v.id}">{$v.name|replace:" ":" "}</label>
</li>
{/if}
{if $k%4 == 0}</ul><ul>{/if}
{/foreach}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question