{:lang('ADMIN_MENU_INDEX')}
{:lang('ADMIN_HOOK_INDEX')}
{:lang('ADMIN_HOOK_SYNC')}
$sub_menus=\app\admin\service\DevService::devMenus(); $default_menus = [ 'admin/Menu/index' => ['app' => 'admin', 'controller' => 'Menu', 'action' => 'index'], 'user/AdminUserAction/sync' => ['app' => 'user', 'controller' => 'AdminUserAction', 'action' => 'sync'], 'admin/Hook/index' => ['app' => 'admin', 'controller' => 'Hook', 'action' => 'index'], 'admin/Hook/sync' => ['app' => 'admin', 'controller' => 'Hook', 'action' => 'sync'], ]; $url=$sub_menu['app'].'/'.$sub_menu['controller'].'/'.$sub_menu['action']; if(isset($default_menus[$url])){continue;}
if (strpos($sub_menu['app'], 'plugin/') === 0) { $pluginName = str_replace('plugin/', '', $sub_menu['app']); $url = cmf_plugin_url($pluginName . "://".$sub_menu['controller'].'/'.$sub_menu['action']); }else{ $url=url($url); } $lang_key=strtoupper($sub_menu['app']).'_'.strtoupper($sub_menu['controller']).'_'.strtoupper($sub_menu['action']); $menu_lang_name=lang($lang_key); $menu_name=$menu_lang_name===$lang_key?$sub_menu['name']:$menu_lang_name; {$menu_name}