private function getChildrenMenus($parentId) { $menus = \source\models\Menu::findAll(['category_id' => $this->menuId, 'parent_id' => $parentId, 'enabled' => 1], 'sort_num desc'); return $menus; }
echo $this->getConfigValue('sys_site_description'); ?> <script type="text/javascript"> /*728*90 创建于 2014-08-20*/ var cpro_id = "u1670011"; </script> </div> </div> <div id="nav-header" class="navbar"> <ul class="nav"> <li id="menu-item-2333" class="menu-item menu-item-type-custom menu-item-object-custom current-menu-item current_page_item menu-item-home menu-item-2333"><a href=".">首页</a></li> <?php foreach (Menu::findAll(['category_id' => 'main', 'parent_id' => 0], 'sort_num desc') as $menu) { ?> <li id="menu-item-<?php echo $menu['id']; ?> " class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-<?php echo $menu['id']; ?> "><a href="<?php echo $menu['url']; ?> "><?php echo $menu['name']; ?> </a></li> <?php