<{counter start=1 assign="result" print=false }> <{foreach from=$data item=data key=key}> <{if ($result mod $setting.colums) eq 1 }>
<{if $data.type==1}> <{$setting.plug}><{$data.info}> <{elseif $data.type==2}> <{$setting.plug}><{$data.info}> <{elseif $data.type==3}> <{$setting.plug}><{$data.info}> <{elseif $data.type==4}> <{$setting.plug}><{$data.info}> <{elseif $data.type==5}> <{$setting.plug}><{$data.info}> <{/if}> <{elseif ($result mod $setting.colums) eq 0 }> | <{if $data.type==1}> <{$setting.plug}><{$data.info}> <{elseif $data.type==2}> <{$setting.plug}><{$data.info}> <{elseif $data.type==3}> <{$setting.plug}><{$data.info}> <{elseif $data.type==4}> <{$setting.plug}><{$data.info}> <{elseif $data.type==5}> <{$setting.plug}><{$data.info}> <{/if}>
<{else}>
<{if $data.type==1}> <{$setting.plug}><{$data.info}> <{elseif $data.type==2}> <{$setting.plug}><{$data.info}> <{elseif $data.type==3}> <{$setting.plug}><{$data.info}> <{elseif $data.type==4}> <{$setting.plug}><{$data.info}> <{elseif $data.type==5}> <{$setting.plug}><{$data.info}> <{/if}> <{/if}> <{counter assign="result" print=false }> <{/foreach}>