File: /home/centralexf/www/modules/mod_jamegamenu/mod_jamegamenu.php
<?php
/*
# ------------------------------------------------------------------------
# JA Megamenu module for Joomla 1.5
# ------------------------------------------------------------------------
# Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
# @license - PHP files are GNU/GPL V2. CSS / JS are Copyrighted Commercial,
# bound by Proprietary License of JoomlArt. For details on licensing,
# Please Read Terms of Use at http://www.joomlart.com/terms_of_use.html.
# Author: JoomlArt.com
# Websites: http://www.joomlart.com - http://www.joomlancers.com
# Redistribution, Modification or Re-licensing of this file in part of full,
# is bound by the License applied.
# ------------------------------------------------------------------------
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
// Include the syndicate functions only once
if (!defined ('_MODE_JAMEGAMENU_ASSETS_')) {
define ('_MODE_JAMEGAMENU_ASSETS_', 1);
JHTML::stylesheet('style.css','modules/'.$module->module.'/assets/');
if (is_file(JPATH_SITE.DS.'templates'.DS.$mainframe->getTemplate().DS.'css'.DS.$module->module.".css"))
JHTML::stylesheet($module->module.".css",'templates/'.$mainframe->getTemplate().'/css/');
JHTML::script('script.js','modules/'.$module->module.'/assets/');
}
$modules = JModuleHelper::getModules($params->get('position', 'megamenu'));
require(JModuleHelper::getLayoutPath('mod_jamegamenu'));