- md5
- d4006cf730a8230f427b8e230943fb4d
- sha1
- bbcc100ba636dffbaf2ad313b0e60e9fc960fbf2
- sha256
- 58ddeca7369dfe7c2c6668fdb24c09b691d4377ce978791b9df08e1de386e7eb
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
<?php
/**
* @package Joomla.Administrator
* @subpackage mod_menu
*
* @copyright Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
/**
* Site SubMenu
*/
$menu->addChild(new JMenuNode(JText::_('MOD_MENU_SYSTEM'), null, 'disabled'));
/**
* Users Submenu
*/
if ($user->authorise('core.manage', 'com_users'))
{
$menu->addChild(new JMenuNode(JText::_('MOD_MENU_COM_USERS'), null, 'disabled'));
}
/**
* Menus Submenu
*/
if ($user->authorise('core.manage', 'com_menus'))
{
$menu->addChild(new JMenuNode(JText::_('MOD_MENU_MENUS'), null, 'disabled'));
}
/**
* Content Submenu
*/
if ($user->authorise('core.manage', 'com_content'))
{
$menu->addChild(new JMenuNode(JText::_('MOD_MENU_COM_CONTENT'), null, 'disabled'));
}
/**
* Components Submenu
*/
// Get the authorised components and sub-menus.
$components = ModMenuHelper::getComponents(true);
// Check if there are any components, otherwise, don't display the components menu item
if ($components)
{
$menu->addChild(new JMenuNode(JText::_('MOD_MENU_COMPONENTS'), null, 'disabled'));
}
/**
* Extensions Submenu
*/
$im = $user->authorise('core.manage', 'com_installer');
$mm = $user->authorise('core.manage', 'com_modules');
$pm = $user->authorise('core.manage', 'com_plugins');
$tm = $user->authorise('core.manage', 'com_templates');
$lm = $user->authorise('core.manage', 'com_languages');
if ($im || $mm || $pm || $tm || $lm)
{
$menu->addChild(new JMenuNode(JText::_('MOD_MENU_EXTENSIONS_EXTENSIONS'), null, 'disabled'));
}
/**
* Help Submenu
*/
if ($params->get('showhelp', 1))
{
$menu->addChild(new JMenuNode(JText::_('MOD_MENU_HELP'), null, 'disabled'));
}
The same content is in 6 releases, Joomla 3.6.3-rc2 to 3.7.0-alpha1. See them all, or every version of this file.