Lines Matching refs:menu
41 $menu = $defaultmenu;
44 $menu = array("level1" => array(), "level2" => array(), "level3" => array());
61 if($lvl == 0 && !array_key_exists($path, $menu['level1'])) $menu['level1'][$path] = $title;
63 if(is_array($menu['level'. ($lvl+1)][$pathpre])) {
64 $menu['level'.($lvl+1)][$pathpre][$path] = $title;
66 $menu['level'.($lvl+1)][$pathpre] = array($path => $title);
71 return $menu;
76 preg_match('/<MENU>(.*?)<\/MENU>/s', $content, $menu);
77 $menu = ((count($menu) > 0)) ? json_decode($menu[1], true) : $defaultmenu;
78 if(is_null($menu)) $menu = $defaultmenu;
80 return $menu;
86 $menu = get_menu();
88 foreach($menu['level1'] as $url => $title){
90 if(array_key_exists($url, $menu['level2'])){
95 foreach($menu['level2'][$url] as $url2 => $title2) {
96 if(array_key_exists($url2, $menu['level3'])){
102 foreach($menu['level3'][$url2] as $url3 => $title3) {
127 $menu = get_menu();
132 foreach($menu['level1'] as $url => $title) {
148 if(array_key_exists($path, $menu['level'.($n+2)])){
150 foreach($menu['level'.($n+2)][$path] as $u => $t){