Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {if $count > 0}
- <ul class="menu_horiz">
- {foreach from=$nodelist item=node}
- {if $node->depth != $node->prevdepth}
- {if $node->depth > $node->prevdepth}
- <ul class="mainmenuul">
- {elseif $node->depth < $node->prevdepth}
- </li></ul>
- {/if}
- {elseif $node->index > 0}
- </li>
- {/if}
- {if $node->index == 0}
- {assign var="icon" value="house"}
- {elseif $node->haschildren == true }
- {assign var="icon" value="folder"}
- {elseif $node->haschildren == false }
- {assign var="icon" value="page"}
- {/if}
- {if $node->current == true}
- <li style="list-style-image: url('images/icons/{$icon}_go.png');">
- {else}
- <li style="list-style-image: url('images/icons/{$icon}.png');">
- {/if}
- {if $node->type == 'sectionheader'}
- <span class="sectionheader{$node->depth}">{$node->menutext}</span>
- {else}
- <a href="{if $node->id == 15}/{else}{$node->url}{/if}"{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}</a>
- {/if}
- {/foreach}
- {repeat string="</li></ul>" times=$node->depth-1} </li>
- </ul>
- {/if}
Advertisement
Add Comment
Please, Sign In to add comment