当前位置: 首页>>代码示例>>PHP>>正文


PHP JHotelUtil::includeFile方法代码示例

本文整理汇总了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');
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:31,代码来源:jhotelreservation.php

示例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'));
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:31,代码来源:mod_jquerylogin.php


注:本文中的JHotelUtil::includeFile方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。