Changeset 12728
- Timestamp:
- 10/03/11 19:07:37 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/branches/2.10/amp_conf/htdocs/admin/views/menu.php
r12727 r12728 58 58 case 'reports': 59 59 case 'settings': 60 case 'user panel': 60 61 $menu[strtolower($deets['category'])][] = $deets; 61 62 break; … … 66 67 } else { 67 68 foreach ($fpbx_menu as $mod => $deets) { 68 $menu[ strtolower($deets['category'])][] = $deets;69 $menu[$deets['category']][] = $deets; 69 70 } 70 71 } … … 76 77 // first checking in the module owner's i18n, then in the core i18n 77 78 // 79 80 if (count($cat) == 1) { 81 if (isset($cat[0]['hidden']) && $cat[0]['hidden'] == 'true') { 82 continue; 83 } 84 $href = isset($cat[0]['href']) ? $cat[0]['href'] : 'config.php?display=' . $cat[0]['display']; 85 $target = isset($cat[0]['target']) ? ' target="' . $cat[0]['target'] . '"' : ''; 86 $class = $cat[0]['display'] == $display ? 'class="ui-state-highlight"' : ''; 87 $mods[$t] = '<a href="' . $href . '" ' . $target . $class . '>' . _(ucwords($t)) . '</a>'; 88 continue; 89 } 78 90 $mods[$t] = '<a href="#">' 79 91 . _(ucwords($t)) … … 90 102 : "config.php?display=" . $mod['display']; 91 103 104 $target = isset($mod['target']) 105 ? ' target="' . $cat[0]['target'] . '" ' : ''; 106 92 107 //highlight currently in-use module 93 108 if ($display == $mod['display']) { … … 103 118 104 119 $items[$mod['name']] = '<li><a href="' . $href . '"' 120 . $target 105 121 . 'class="' . implode(' ', $classes) . '">' 106 122 . _(ucwords($mod['name'])) … … 117 133 $out .= implode($mods); 118 134 } 119 $out .= '<a href="/recordings" target="_blank">' . _('User Panel') . '</a>';120 135 $out .= '<a id="language-menu-button" class="button-right ui-widget-content ui-state-default">' . _('Language') . '</a>'; 121 136 $out .= '<ul id="fpbx_lang" style="display:none;">';
