swarfega

Untitled

Jun 9th, 2014
340
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. {if $count > 0}
  2. <script type="text/javascript" language="javascript" src="lib/helparea.js"></script>
  3. <ul class="menu_hori" style="padding-left:0;">
  4. {foreach from=$nodelist item=node}
  5.  
  6. {if $node->depth < $node->prevdepth}
  7. {repeat string="</li></ul>" times=$node->prevdepth-$node->depth}
  8. {assign var="listopen" value="0"}
  9. {elseif $node->index > 0 && $listopen == 0}
  10. </li>
  11. {/if}
  12. {if $node->index == 0}
  13. {assign var="icon" value="house"}
  14. {elseif $node->haschildren == true }
  15. {assign var="icon" value="folder"}
  16. {elseif $node->haschildren == false }
  17. {assign var="icon" value="page"}
  18. {/if}
  19. <li style="list-style-type:none;">
  20. {if $node->current == true}
  21. <img src="/images/icons/{$icon}_go.png" alt="" /> {$node->menutext}
  22. {if $node->haschildren == true }
  23. <ul style="padding-left:14px;">
  24. {assign var="listopen" value="1"}
  25. {/if}
  26. {else}
  27. {if $node->haschildren == true && $node->parent != true}
  28. <a href="javascript:expandcontent('node{$node->id}');"><img src="/images/icons/{$icon}.png" alt="Expand" /></a>
  29. {else}
  30. <img src="/images/icons/{$icon}.png" alt="" />
  31. {/if}
  32. <a href="{if $node->id == 15}/{else}{$node->url}{/if}"{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}</a>
  33. {if $node->haschildren == true && $node->parent != true}
  34. {assign var="listopen" value="1"}
  35. <ul id="node{$node->id}" class="expand" style="padding-left:14px;">
  36. {elseif $node->parent == true}
  37. {assign var="listopen" value="1"}
  38. <ul style="padding-left:14px;">
  39. {/if}
  40. {/if}
  41. {/foreach}
  42. {repeat string="</li></ul>" times=$node->depth-2}</li>
  43. </ul></ul>
  44. {/if}
Advertisement
Add Comment
Please, Sign In to add comment