01/11/2010, 14:58:12
Code :
{strip}
{if $count > 0}
<ul class="menu-nav">
{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
{repeat string="<div class='ulwrapper'><ul>" times=$node->depth-$node->prevdepth}
{elseif $node->depth < $node->prevdepth}
{repeat string="</li></ul>" times=$node->prevdepth-$node->depth}
</div></li>
{elseif $node->index > 0}</li>
{/if}
{if $node->current == true && $node->depth == 1}
<li class="current"><a href="{$node->url}" {if $node->target ne ""} target="{$node->target}"{/if}><strong>{$node->menutext}</strong></a>
{elseif $node->parent == true && $node->depth == 1}
<li class="top parent item"> <a href="{$node->url}" {if $node->target ne ""} target="{$node->target}"{/if}><strong>{$node->menutext}</strong></a>
{elseif $node->depth == 1}
<li class="top item"> <a href="{$node->url}" {if $node->target ne ""} target="{$node->target}"{/if}><strong>{$node->menutext}</strong></a>
{else}
<li><a href="{$node->url}" {if $node->target ne ""} target="{$node->target}"{/if}><strong>{$node->menutext}</strong></a>
{/if}
{/foreach}
{repeat string="</li></ul>" times=$node->depth-1}</li>
</ul>
{/if}
{/strip}