<{counter start=1 assign="result" print=false }>

<{foreach from=$data item=data key=key}> <{if ($result mod $setting.colums) eq 1}>
<{if $setting.showPic=='show' && $data.image_url}> <{/if}><{$data.link_name}> <{elseif ($result mod $setting.colums) eq 0}> | <{if $setting.showPic=='show' && $data.image_url}><{/if}><{$data.link_name}>
<{else}> | <{if $setting.showPic=='show' && $data.image_url}><{/if}><{$data.link_name}> <{/if}> <{counter assign="result" print=false }> <{/foreach}>