public function __construct($config = array()) { parent::__construct($config); $this->_addPath('template', JPATH_COMPONENT . '/themes/default/views/query'); $theme = DJCatalog2ThemeHelper::getThemeName(); if ($theme && $theme != 'default') { $this->_addPath('template', JPATH_COMPONENT . '/themes/' . $theme . '/views/query'); } }
public function __construct($config = array()) { parent::__construct($config); $app = JFactory::getApplication(); $theme = DJCatalog2ThemeHelper::getThemeName(); // Items view fallback $this->_addPath('template', JPATH_COMPONENT . '/views/items/tmpl'); $this->_addPath('template', JPATH_THEMES . '/' . $app->getTemplate() . '/html/com_djcatalog2/items'); $this->_addPath('template', JPATH_COMPONENT . '/themes/default/views/items'); if ($theme && $theme != 'default') { $this->_addPath('template', JPATH_COMPONENT . '/themes/' . $theme . '/views/items'); } $this->_addPath('template', JPATH_COMPONENT . '/views/archived/tmpl'); $this->_addPath('template', JPATH_THEMES . '/' . $app->getTemplate() . '/html/com_djcatalog2/archived'); $this->_addPath('template', JPATH_COMPONENT . '/themes/default/views/archived'); if ($theme && $theme != 'default') { $this->_addPath('template', JPATH_COMPONENT . '/themes/' . $theme . '/views/archived'); } }