36 $xoops->loadLocale(
'system');
38 $xoops->theme()->addBaseStylesheetAssets(
'@jqueryuicss');
39 $xoops->theme()->addStylesheet(
'media/xoops/css/moduladmin.css');
42 $xoops->theme()->addBaseScriptAssets(
'@jquery');
44 $xoops->theme()->addBaseScriptAssets(
'@bootstrap');
45 $xoops->theme()->addBaseScriptAssets(
'@jqueryui');
46 $xoops->theme()->addBaseScriptAssets(
'@jgrowl');
55 $quick[] = array(
'title' =>
'separator');
57 $xoops->tpl()->assign(
'quick_menu', $quick);
66 if (!
$xoops->isModule() ||
'system' ==
$xoops->module->getVar(
'dirname',
'n')) {
73 foreach (array_keys($mod_options) as $item) {
74 $mod_options[$item][
'link'] = empty($mod_options[$item][
'absolute'])
76 : $mod_options[$item][
'link'];
77 $mod_options[$item][
'icon'] = empty($mod_options[$item][
'icon']) ?
''
79 unset($mod_options[$item][
'icon_small']);
83 $moddir =
$xoops->module->getVar(
'dirname',
'n');
85 $modname =
$xoops->module->getVar(
'name');
88 $mod_options =
$xoops->module->getAdminMenu();
89 foreach (array_keys($mod_options) as $item) {
90 $mod_options[$item][
'link'] = empty($mod_options[$item][
'absolute'])
92 : $mod_options[$item][
'link'];
94 $mod_options[$item][
'icon'] =
$xoops->url(
"/media/xoops/images/icons/32/" . $mod_options[$item][
'icon']);
96 $mod_options[$item][
'icon'] =
$xoops->url(
"/modules/" .
$xoops->module->dirname() .
"/icons/32/" . $mod_options[$item][
'icon']);
100 $xoops->tpl()->assign(
'mod_options', $mod_options);
101 $xoops->tpl()->assign(
'modpath', $modpath);
102 $xoops->tpl()->assign(
'modname', $modname);
104 $xoops->tpl()->assign(
'moddir', $moddir);
108 $xoops->tpl()->assign(
'module_menu', $module_list);
112 $extension_list = $system_extension->getExtensionList();
113 $xoops->tpl()->assign(
'extension_menu', $extension_list);
114 unset($extension_list);
116 $extension_mod = $system_extension->getExtension( $moddir );
117 $xoops->tpl()->assign(
'extension_mod', $extension_mod);
128 $menu[] = array(
'title' =>
'separator');
131 if (
$xoops->isModule() &&
$xoops->module->getVar(
'dirname') !=
'system') {
133 if (
$xoops->module->getInfo(
'system_menu')) {
136 $xoops->module->loadAdminMenu();
139 $menu_handler =
$xoops->getModuleHandler(
'menu',
'system');
142 if (
$xoops->module->getInfo(
'extension')) {
147 if (
$xoops->module->getInfo(
'blocks')) {
148 $menu_handler->addMenuTop(\
XoopsBaseConfig::get(
'url') .
"/modules/system/admin.php?fct=blocksadmin&op=list&filter=1&selgen=" .
$xoops->module->getVar(
'mid',
'e') .
"&selmod=-2&selgrp=-1&selvis=-1",
XoopsLocale::BLOCKS);
150 if (
$xoops->module->getInfo(
'hasMain')) {
157 if (stripos(
$_SERVER[
'REQUEST_URI'], $menu[
'link']) !==
false) {
160 $menu_handler->addMenuTabs(
$xoops->url(
'modules/' .
$xoops->module->getVar(
'dirname') .
'/' . $menu[
'link']), $menu[
'title']);
163 if (
$xoops->module->getInfo(
'help')) {
164 if (stripos(
$_SERVER[
'REQUEST_URI'],
'admin/' .
$xoops->module->getInfo(
'help')) !==
false) {
167 $menu_handler->addMenuTabs(
'../../system/help.php?mid=' .
$xoops->module->getVar(
'mid',
's') .
'&' .
$xoops->module->getInfo(
'help'),
XoopsLocale::HELP);
171 $xoops->tpl()->assign(
'xo_system_menu', $menu_handler->render(
$current,
false));
static load($name, $type="core")