本文整理汇总了PHP中CTemplate::addStyleSheet方法的典型用法代码示例。如果您正苦于以下问题:PHP CTemplate::addStyleSheet方法的具体用法?PHP CTemplate::addStyleSheet怎么用?PHP CTemplate::addStyleSheet使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CTemplate
的用法示例。
在下文中一共展示了CTemplate::addStyleSheet方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: load
public static function load()
{
$jspath = JPATH_BASE . '/components/com_community';
include_once $jspath . '/libraries/template.php';
$config = CFactory::getConfig();
CTemplate::addStyleSheet('style');
}
示例2: load
/**
* Load messaging javascript header
*/
public static function load()
{
static $loaded = false;
if (!$loaded) {
$config = CFactory::getConfig();
require_once JPATH_ROOT . '/components/com_community/libraries/core.php';
// $js = 'assets/window-1.0.min.js';
// CFactory::attach($js, 'js');
CTemplate::addStyleSheet('style');
// $css = 'assets/window.css';
// CFactory::attach($css, 'css');
}
}
示例3: load
/**
* Load messaging javascript header
*/
public static function load()
{
if (!defined('CMESSAGING_LOADED')) {
$config = CFactory::getConfig();
include_once JPATH_ROOT . '/components/com_community/libraries/core.php';
// $js = 'assets/window-1.0.min.js';
// CFactory::attach($js, 'js');
// $js = 'assets/script-1.2.min.js';
// CFactory::attach($js, 'js');
// $css = 'assets/window.css';
// CFactory::attach($css, 'css');
CTemplate::addStyleSheet('style');
}
}
示例4: load
/**
* Load messaging javascript header
*/
function load()
{
static $loaded = false;
if (!$loaded) {
$config = CFactory::getConfig();
require_once JPATH_ROOT . DS . 'components' . DS . 'com_community' . DS . 'libraries' . DS . 'core.php';
$js = 'assets/window-1.0';
$js .= $config->getBool('usepackedjavascript') ? '.pack.js' : '.js';
CAssets::attach($js, 'js');
CFactory::load('libraries', 'template');
CTemplate::addStyleSheet('style');
$css = 'assets/window.css';
CAssets::attach($css, 'css');
}
}
示例5: load
function load()
{
$jspath = JPATH_BASE . DS . 'components' . DS . 'com_community';
include_once $jspath . DS . 'libraries' . DS . 'core.php';
include_once $jspath . DS . 'libraries' . DS . 'template.php';
$config = CFactory::getConfig();
$js = 'assets/window-1.0';
$js .= $config->getBool('usepackedjavascript') ? '.pack.js' : '.js';
CAssets::attach($js, 'js');
$js = 'assets/script-1.2';
$js .= $config->getBool('usepackedjavascript') ? '.pack.js' : '.js';
CAssets::attach($js, 'js');
$css = 'assets/window.css';
CAssets::attach($css, 'css');
CFactory::load('libraries', 'template');
CTemplate::addStyleSheet('style');
}
示例6: load
/**
* Load messaging javascript header
*/
public function load()
{
if (!defined('CMESSAGING_LOADED')) {
$config = CFactory::getConfig();
include_once JPATH_ROOT . DS . 'components' . DS . 'com_community' . DS . 'libraries' . DS . 'core.php';
$js = 'assets/window-1.0';
$js .= $config->getBool('usepackedjavascript') ? '.pack.js' : '.js';
CAssets::attach($js, 'js');
$js = 'assets/script-1.2';
$js .= $config->getBool('usepackedjavascript') ? '.pack.js' : '.js';
CAssets::attach($js, 'js');
$css = 'assets/window.css';
CAssets::attach($css, 'css');
CFactory::load('libraries', 'template');
CTemplate::addStyleSheet('style');
// $css = '/templates/'.$config->get('template').'/css/style.css';
// CAssets::attach($css, 'css');
}
}