function __construct($config = null) { parent::__construct($config); $this->jevlayout = "alternative"; $this->addHelperPath(dirname(__FILE__) . "/../helpers/"); $this->addHelperPath(JPATH_BASE . DS . 'templates' . DS . JFactory::getApplication()->getTemplate() . DS . 'html' . DS . JEV_COM_COMPONENT . DS . "helpers"); }
function __construct($config = null) { parent::__construct($config); $this->jevlayout = "flat"; $this->addHelperPath(dirname(__FILE__) . "/../helpers/"); $this->addHelperPath(JPATH_BASE . '/' . 'templates' . '/' . JFactory::getApplication()->getTemplate() . '/' . 'html' . '/' . JEV_COM_COMPONENT . '/' . "helpers"); $document = JFactory::getDocument(); $params = JComponentHelper::getParams(JEV_COM_COMPONENT); if ($params->get("flatscalable", "1") == "1" || $params->get("flatwidth", 905) == "scalable") { jimport('joomla.environment.browser'); $browser = JBrowser::getInstance(); $browserType = $browser->getBrowser(); $browserVersion = $browser->getMajor(); if ($browserType == 'msie' && $browserVersion < 9) { JEVHelper::componentStylesheet($this, "scalable_ie8.css"); } else { JEVHelper::componentStylesheet($this, "scalable.css"); } JEVHelper::componentStylesheet($this); } else { JEVHelper::componentStylesheet($this); JEVHelper::componentStylesheet($this, "w" . $params->get("flatwidth", 905) . ".css"); } if ($params->get("darktemplate", 0)) { JEVHelper::componentStylesheet($this, "dark.css"); } $stylelink = '<!--[if lte IE 6]>' . "\n"; $stylelink .= '<link rel="stylesheet" href="' . JURI::root() . 'components/com_jevents/views/flat/assets/css/ie6.css" />' . "\n"; $stylelink .= '<![endif]-->' . "\n"; $document->addCustomTag($stylelink); $this->colourscheme = $params->get("flatcolourscheme", "red"); if ($this->colourscheme == "gray") { //$this->colourscheme = ""; } }
function __construct($config = null) { parent::__construct($config); $this->jevlayout = "flat"; $this->addHelperPath(dirname(__FILE__) . "/../helpers/"); $this->addHelperPath(JPATH_BASE . '/' . 'templates' . '/' . JFactory::getApplication()->getTemplate() . '/' . 'html' . '/' . JEV_COM_COMPONENT . '/' . "helpers"); $document = JFactory::getDocument(); $params = JComponentHelper::getParams(JEV_COM_COMPONENT); JEVHelper::componentStylesheet($this); if ($params->get("darktemplate", 0)) { JEVHelper::componentStylesheet($this, "dark.css"); } $stylelink = '<!--[if lte IE 6]>' . "\n"; $stylelink .= '<link rel="stylesheet" href="' . JURI::root() . 'components/com_jevents/views/flat/assets/css/ie6.css" />' . "\n"; $stylelink .= '<![endif]-->' . "\n"; $document->addCustomTag($stylelink); $this->colourscheme = $params->get("flatcolourscheme", "red"); if ($this->colourscheme == "gray") { //$this->colourscheme = ""; } }