{literal} {/literal}
{foreach from = $tabs item = tab name='tabs' key = name} {if $tab.index < $step} {if $step < 4} {$tab.index}. {$tab.title}{if !$smarty.foreach.tabs.last} | {/if} {else} {$tab.index}. {$tab.title}{if !$smarty.foreach.tabs.last} | {/if} {/if} {else} {if $step < 4} {$tab.index}. {$tab.title} {if !$smarty.foreach.tabs.last} | {/if} {else} {if $tab.index == $step} {$tab.index}. {$tab.title} {if !$smarty.foreach.tabs.last} | {/if} {else} {$tab.index}. {$tab.title}{if !$smarty.foreach.tabs.last} | {/if} {/if} {/if} {/if} {/foreach}