PageRenderTime 49ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/aamenu/code/trunk/administrator/modules/mod_aamenu/mod_aamenu.php

https://bitbucket.org/eddieajau/the-art-of-joomla-archive
PHP | 28 lines | 12 code | 5 blank | 11 comment | 2 complexity | d8271d283823df0f67635b71ebb5468a MD5 | raw file
  1. <?php
  2. /**
  3. * @version $Id: mod_aamenu.php 255 2010-08-20 09:43:07Z eddieajau $
  4. * @package TAOJ.AAMenu
  5. * @subpackage mod_aamenu
  6. * @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
  7. * @copyright Copyright (C) 2009 New Life in IT Pty Ltd. All rights reserved.
  8. * @license GNU General Public License <http://www.gnu.org/copyleft/gpl.html>
  9. * @link http://www.theartofjoomla.com
  10. */
  11. // no direct access
  12. defined('_JEXEC') or die;
  13. require_once(dirname(__FILE__).DS.'helper.php');
  14. // We need to add these support files in from the Khepri template
  15. JHtml::script('menu.js', 'administrator/templates/khepri/js/');
  16. JHtml::script('index.js', 'administrator/templates/khepri/js/');
  17. $hide = JRequest::getInt('hidemainmenu');
  18. if ($hide) {
  19. modAAMenuHelper::buildDisabledMenu();
  20. }
  21. else {
  22. modAAMenuHelper::buildMenu();
  23. }