- md5
- 351e8fa4577359e2b577de340fbe288d
- sha1
- 1976236e2f37f47869ea90509c37ae026d623791
- sha256
- 6d6f9a64db135a7003b07c51e00c9af1f127e85b296f6d0eb9e17276d3b97476
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
<?php
/**
* @version $Id:mod_menu.php 2463 2006-02-18 06:05:38Z webImagery $
* @package Joomla.Administrator
* @subpackage mod_menu
* @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// No direct access.
defined('_JEXEC') or die;
$showhelp = $params->get('showhelp', 1);
//
// Site SubMenu
//
$menu->addChild(new JMenuNode(JText::_('JSITE'), 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 ($showhelp == 1) {
$menu->addChild(new JMenuNode(JText::_('MOD_MENU_HELP'), null,'disabled'));
}
The same content is in 10 releases, Joomla 1.6.0 to 1.7.2. See them all, or every version of this file.