Betroffener Ausschnitt:
Code: Select all
{foreach from=$nodelist item=node}
{capture assign=count_value}{counter name=c1}{/capture}
{if $node->depth > $node->prevdepth}
{repeat string="<ul class='subnav' id='unli-$count_value'>" times=$node->depth-$node->prevdepth}
{elseif $node->depth < $node->prevdepth}
{repeat string='</li></ul>' times=$node->prevdepth-$node->depth}
</li>
{elseif $node->index > 0}</li>
{/if}…
Code: Select all
{if $count > 0}
<ul id="flowtabs" class="navi">
{foreach from=$nodelist item=node}
{capture assign=count_value}{counter name=c1}{/capture}
{if $node->depth > $node->prevdepth}
{repeat string="<ul class='subnav' id='unli-$count_value'>" times=$node->depth-$node->prevdepth}
{elseif $node->depth < $node->prevdepth}
{repeat string='</li></ul>' times=$node->prevdepth-$node->depth}
</li>
{elseif $node->index > 0}</li>
{/if}
{if $node->parent == true or ($node->current == true and $node->haschildren == true)}
<li class="off menuparent">
<a {elseif $node->current == true}
<li class="off currentpage">
<a {elseif $node->haschildren == true}
<li class="off menuparent">
<a {elseif $node->type == 'sectionheader' and $node->haschildren == true}
<li class="sectionheader"><span class="sectionheader">{$node->menutext}</span> {elseif $node->type == 'separator'}
<li style="list-style-type: none;"> <hr class="menu_separator" />{else}
<li class="off">
<a {/if}
{if $node->type != 'sectionheader' and $node->type != 'separator'}
{if $node->target}target="{$node->target}" {/if}
href="#{$node->alias}" id="nav-{$node->alias}" title="{$node->menutext}" class="scrolled">{$node->menutext}</a>
{elseif $node->type == 'sectionheader'}
><span class="sectionheader">{$node->menutext}</span></a>
{/if}
{/foreach}
{repeat string='</li></ul>' times=$node->depth-1}
{*repeat string='</li><li class="separator once" style="list-style-type: none;"> </li></ul>' times=$node->depth-1*}
</li>
</ul>
<div class="clearb"></div>
{/if}