define('DS', DIRECTORY_SEPARATOR);
}
jimport('joomla.filesystem.folder');
jimport('joomla.filesystem.file');
require_once JPATH_COMPONENT_ADMINISTRATOR . '/helpers/logger.php';
require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'helpers' . DS . 'defines.php';
require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'helpers' . DS . 'utils.php';
require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'helpers' . DS . 'userAccess.php';
require_once JPATH_COMPONENT_ADMINISTRATOR . '/helpers/helper.php';
//JHtmlBehavior::framework();
if (JHotelUtil::isJoomla3()) {
    JHtml::_('jquery.framework', true, true);
    //load jQuery before other js
} else {
    if (!defined('J_JQUERY_LOADED')) {
        JHotelUtil::includeFile('script', 'jquery.min.js', 'administrator/components/com_jhotelreservation/assets/js/');
        define('J_JQUERY_LOADED', 1);
    }
}
JHTML::_('script', 'administrator/components/' . getBookingExtName() . '/assets/js/utils.js');
JHTML::_('stylesheet', 'administrator/components/' . getBookingExtName() . '/assets/css/style.css');
JHTML::_('stylesheet', 'administrator/components/' . getBookingExtName() . '/assets/css/general.css');
JHTML::_('stylesheet', 'administrator/components/' . getBookingExtName() . '/assets/css/joomlatabs.css');
//JHTML::_('script',		'administrator/components/'.getBookingExtName().'/assets/jquery-ui.min.js');
//JHTML::_('script',		'administrator/components/'.getBookingExtName().'/assets/tooltip.js');
//JHTML::_('stylesheet', 	'administrator/components/'.getBookingExtName().'/assets/tooltip.css');
//JHTML::_('stylesheet', 	'administrator/components/'.getBookingExtName().'/assets/jquery-ui.css');
//JHTML::_('stylesheet', 	'administrator/components/'.getBookingExtName().'/assets/datepicker/css/datepicker.css');
//JHTML::_('stylesheet', 	'administrator/components/'.getBookingExtName().'/assets/datepicker/css/layout.css');
//JHTML::_('script',		'administrator/components/'.getBookingExtName().'/assets/jquery.upload.js');
JHTML::_('script', 'administrator/components/' . getBookingExtName() . '/assets/js/jquery.blockUI.js');
Ejemplo n.º 2
0
 * @subpackage	mod_login
 * @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;
require_once JPATH_SITE . '/administrator/components/com_jhotelreservation/helpers/defines.php';
require_once JPATH_SITE . '/administrator/components/com_jhotelreservation/helpers/utils.php';
// Include the syndicate functions only once
require_once dirname(__FILE__) . '/helper.php';
if (JHotelUtil::isJoomla3()) {
    JHtml::_('jquery.framework', true, true);
} else {
    if (!defined('J_JQUERY_LOADED')) {
        JHotelUtil::includeFile('script', 'jquery.js', 'components/com_jbusinessdirectory/assets/js/');
        define('J_JQUERY_LOADED', 1);
    }
}
JHotelUtil::includeFile('script', 'jquery.blockUI.js', 'administrator/components/com_jhotelreservation/assets/js/');
JHotelUtil::includeFile('stylesheet', 'jquerylogin.css', 'modules/mod_jquerylogin/css/');
$params->def('greeting', 1);
$type = modJQueryLoginHelper::getType();
$return = modJQueryLoginHelper::getReturnURL($params, $type);
$user = JFactory::getUser();
$document = JFactory::getDocument();
$document->addScriptDeclaration('
			window.onload = function()	{
				 jQuery.noConflict();
			};  
');
require JModuleHelper::getLayoutPath('mod_jquerylogin', $params->get('layout', 'default'));