Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {function name=printList}
- {foreach $items key=$key item=$item}
- {if !$key}{break}{/if}
- <li>{$key}
- {if is_array($item)}
- <ul>
- {call name=printList items=$item}
- </ul>
- {else}{break}
- {/if}
- </li>
- {/foreach}
- {/function}
- <ul class="tree">
- {call name=printList items=$ARTTree}
- </ul>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement