Top Menu

The top menu variable is $menuArr. Its format is:

[

    {

        "name": "MUST, name of menu",

        "url": "MUST, name of url",

        "icon": "optional, use the class name of Bootstrap icon, such as, bi bi-book",

        "sub":[

            {

                "name": "SucShop",

                "url": "http://sucshop.word-x.com/",

                "icon": "bi bi-book",

            }

        ]

    }

]

 

The default sucshop theme supports two levels of menus. To add more levels, edit the loop code in themes/sucshop/parts/header.tpl.