public function __construct($context) { $this->_jtemplate = $context; parent::__construct(); JHtmlBootstrap::loadCss($includeMaincss = true, $this->_jtemplate->direction); JHtmlBootstrap::framework(); $this->_jparams = $this->_jtemplate->params ? $this->_jtemplate->params : JFactory::getApplication()->getTemplate(true)->params; $this->_google = new stdClass(); $this->setShowcase(); $this->setBackground(); $this->_mobile = Avatar::isHandleDevice(); $this->_responsive = $this->_jparams->get('active_responsive') ? $this->_jparams->get('active_responsive') : false; $this->_jquery = $this->_jparams->get('load_jquery') ? $this->_jparams->get('load_jquery') : false; $this->_optimize = $this->_jparams->get('optimize'); }