daily pastebin goal
2%
SHARE
TWEET

Untitled

a guest Aug 17th, 2018 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <ul class="menu">
  2. {if $count > 0}
  3. {foreach from=$nodelist item=node}
  4. {if $node->depth > $node->prevdepth}
  5. {repeat string='<ul class="menuitem">' times=$node->depth-$node->prevdepth}
  6. {elseif $node->depth < $node->prevdepth}
  7. {repeat string="</ul>" times=$node->prevdepth-$node->depth}
  8. {elseif $node->index > 0}
  9. {/if}
  10. {if $node->current == true}
  11. <li><a href="{$node->url}" class=""{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}</a>
  12. {elseif $node->haschildren == true}
  13. <li><a href="{$node->url}" class=""{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}</a>
  14. {elseif $node->depth == 2}
  15. <li><a href="{$node->url}" {if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}</a></li>
  16. {elseif $node->current == true and $node->depth == 2}
  17. <li><a href="{$node->url}" {if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}</a></li>
  18. {elseif $node->type == 'sectionheader' and $node->haschildren == false}
  19. <li><a href="{$node->url}" class=""{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}</a></li>
  20. {elseif $node->type == 'sectionheader' and $node->haschildren == true}
  21. <li><a href="{$node->url}" class=""{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}</a>
  22. {else}
  23. <li><a class="" href="{$node->url}"{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}</a></li>{/if}
  24. {/foreach}
  25. {repeat string="</ul></li>" times=$node->depth-1}
  26. {/if}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top