Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {if $count > 0}
- <script type="text/javascript" language="javascript" src="lib/helparea.js"></script>
- <ul class="menu_hori" style="padding-left:0;">
- {foreach from=$nodelist item=node}
- {if $node->depth < $node->prevdepth}
- {repeat string="</li></ul>" times=$node->prevdepth-$node->depth}
- {assign var="listopen" value="0"}
- {elseif $node->index > 0 && $listopen == 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}
- <li style="list-style-type:none;">
- {if $node->current == true}
- <img src="/images/icons/{$icon}_go.png" alt="" /> {$node->menutext}
- {if $node->haschildren == true }
- <ul style="padding-left:14px;">
- {assign var="listopen" value="1"}
- {/if}
- {else}
- {if $node->haschildren == true && $node->parent != true}
- <a href="javascript:expandcontent('node{$node->id}');"><img src="/images/icons/{$icon}.png" alt="Expand" /></a>
- {else}
- <img src="/images/icons/{$icon}.png" alt="" />
- {/if}
- <a href="{if $node->id == 15}/{else}{$node->url}{/if}"{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}</a>
- {if $node->haschildren == true && $node->parent != true}
- {assign var="listopen" value="1"}
- <ul id="node{$node->id}" class="expand" style="padding-left:14px;">
- {elseif $node->parent == true}
- {assign var="listopen" value="1"}
- <ul style="padding-left:14px;">
- {/if}
- {/if}
- {/foreach}
- {repeat string="</li></ul>" times=$node->depth-2}</li>
- </ul></ul>
- {/if}
Advertisement
Add Comment
Please, Sign In to add comment