本文整理汇总了PHP中KSSystem::addCSS方法的典型用法代码示例。如果您正苦于以下问题:PHP KSSystem::addCSS方法的具体用法?PHP KSSystem::addCSS怎么用?PHP KSSystem::addCSS使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类KSSystem
的用法示例。
在下文中一共展示了KSSystem::addCSS方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: onLoadKsen
public function onLoadKsen($ext_name_local, array $hFolders = array(), array $ignoreHelpers = array(), array $config = array())
{
global $ext_name, $ext_name_com, $ext_prefix;
$ext_name = $ext_name_local;
if (strripos($ext_name_local, '.') !== false) {
list($ext_name, $ext_prefix) = explode('.', $ext_name_local);
}
$ext_name_com = 'com_' . $ext_name;
$document = JFactory::getDocument();
$version = new JVersion();
$this->input = JFactory::getApplication()->input;
$option = $this->input->get('option', null, 'string');
$extension = $this->input->get('extension', $ext_name_com, 'string');
include_once dirname(__FILE__) . '/core/defines.php';
include_once KSC_ADMIN_PATH_CORE_HELPERS . 'helper.php';
KSLoader::loadCoreHelpers($hFolders, $ignoreHelpers);
if (!isset($config['admin'])) {
$config['admin'] = false;
}
JHtml::_('behavior.keepalive');
if ($version->RELEASE < 3.0) {
} else {
JHtml::_('jquery.framework');
JHtml::_('jquery.ui');
JHtml::_('bootstrap.framework');
}
if ($config['admin']) {
KSSystem::addCSS(array('style', 'prog-style', 'nprogress', 'ui-lightness/jquery-ui-1.8.20.custom'));
if ($version->RELEASE >= 3.0) {
JHtml::_('jquery.ui', array('sortable'));
JHtml::_('bootstrap.framework');
JHtml::_('behavior.framework');
} else {
$document->addScript('http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js');
}
KSSystem::addJS(array('common', 'style', 'nprogress', 'list', 'listmodule'));
}
if ($this->params->get('angularJS', 1) && $config['angularJS']) {
}
$script = '
var KS = {
extension: \'' . $extension . '\',
option: \'' . $ext_name_com . '\'
};
';
$document->addScriptDeclaration($script);
KSSystem::loadPlugins();
KSSystem::import('libraries.ksdb');
}