$menu->addChild(new JMenuNode(JText::_("MOD_MENU_ADV_EXTENSIONS_MODULE_MANAGER_ADMIN"), 'index.php?option=com_modules&filter_client_id=1', "new-module-admin"), true); $modulesList = ModMenuAdvHelper::getModules(1); $lang = JFactory::getLanguage(); foreach ($modulesList as $m) { $lang->load($m->element . '.sys', JPATH_ADMINISTRATOR, null, false, true); $menu->addChild(new JMenuNode(JText::_($m->name), 'index.php?option=com_modules&task=module.add&eid=' . $m->extension_id)); } $menu->getParent(); $menu->getParent(); } if ($pm) { $menu->addChild(new JMenuNode(JText::_('MOD_MENU_ADV_EXTENSIONS_PLUGIN_MANAGER'), 'index.php?option=com_plugins', 'class:plugin'), true); $pluginTypes = ModMenuAdvHelper::getPluginTypes(); foreach ($pluginTypes as $type) { $menu->addChild(new JMenuNode($type->folder, 'index.php?option=com_plugins', 'plugins-' . $type->folder), true); $plugins = ModMenuAdvHelper::getPlugins($type->folder); foreach ($plugins as $plugin) { $lang->load(strtolower($plugin->name) . '.sys', JPATH_SITE) || $lang->load(strtolower($plugin->name) . '.sys', JPATH_ADMINISTRATOR) || $lang->load(strtolower($plugin->name) . '.sys', JPATH_SITE . '/plugins/' . $plugin->folder . '/' . $plugin->element); $class = 'enabled-plugin-custom'; if ($plugin->enabled != 1) { $class = "disabled-plugin-custom"; } $menu->addChild(new JMenuNode(JText::_($plugin->name), 'index.php?option=com_plugins&task=plugin.edit&extension_id=' . $plugin->extension_id, $class)); } $menu->getParent(); } $menu->getParent(); } if ($tm) { $menu->addChild(new JMenuNode(JText::_('MOD_MENU_ADV_EXTENSIONS_TEMPLATE_MANAGER'), 'index.php?option=com_templates', 'class:themes'), true); // $menu->addChild(new JMenuNode(JText::_("MOD_MENU_ADV_EXTENSIONS_TEMPLATE_MANAGER_STYLES"), 'index.php?option=com_templates','list-styles'));