{foreach from = $item.links item = 'link' name = 'link'} {if $link.active} {$link.title|htmlspecialchars} {else} {$link.title|htmlspecialchars} {/if} {if !$smarty.foreach.link.last} | {/if} {/foreach}