本文整理匯總了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');
}
}