本文整理汇总了PHP中JHotelUtil::includeFile方法的典型用法代码示例。如果您正苦于以下问题:PHP JHotelUtil::includeFile方法的具体用法?PHP JHotelUtil::includeFile怎么用?PHP JHotelUtil::includeFile使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JHotelUtil
的用法示例。
在下文中一共展示了JHotelUtil::includeFile方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: define
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');
示例2: defined
* @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'));