joomla_test/administrator/modules/mod_menu/mod_menu.php

31 lines
778 B
PHP
Raw Normal View History

2020-01-02 22:20:31 +07:00
<?php
/**
* @package Joomla.Administrator
* @subpackage mod_menu
*
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
// Include the module helper classes.
if (!class_exists('ModMenuHelper'))
{
require __DIR__ . '/helper.php';
}
if (!class_exists('JAdminCssMenu'))
{
require __DIR__ . '/menu.php';
}
$lang = JFactory::getLanguage();
$user = JFactory::getUser();
$input = JFactory::getApplication()->input;
$menu = new JAdminCSSMenu;
$enabled = $input->getBool('hidemainmenu') ? false : true;
// Render the module layout
require JModuleHelper::getLayoutPath('mod_menu', $params->get('layout', 'default'));