With this simple function (`catlist`) you can not build complete category tree structure as it prints plain list of categories. So there are 3 ways to solve that:
- use plain list out put with path data, and code some js script to trnsform this in complete subcategories menu.
- if your structure are not very big and static, you can build completed menu tree with several calls of `catlist` function for different root catagories, placed it (manually) on propper level of you menu structure
- write own catlist function to process `$structure` list as multilivel tree
https://github.com/macik
правильный хостинг — https://goo.gl/fjCa1F