public static function load() { $jspath = JPATH_BASE . '/components/com_community'; include_once $jspath . '/libraries/template.php'; $config = CFactory::getConfig(); CTemplate::addStyleSheet('style'); }
/** * 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'); } }
public static function load() { $jspath = JPATH_BASE . '/components/com_community'; include_once $jspath . '/libraries/template.php'; $config = CFactory::getConfig(); // $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'); }
/** * 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'); } }
/** * 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'); } }
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'); }
/** * 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'); } }