public function getItems() { $db = JFactory::getDBO(); if (empty($this->_data)) { $query = $this->_buildQuery(); $this->_data = @$this->_getList($query, $this->getState('limitstart'), $this->getState('limit')); if (count($this->_data)) { for ($i = 0, $n = count($this->_data); $i < $n; $i++) { $row = $this->_data[$i]; $objJSNShowcaseTheme = JSNISFactory::getobj('classes.jsn_is_showcasetheme'); $themeProfile = $objJSNShowcaseTheme->getThemeProfile($row->showcase_id); $part = explode('theme', @$themeProfile->theme_name); if (isset($part[1])) { $row->theme_title = 'Theme ' . ucfirst($part[1]); } else { $row->theme_title = JText::_('N/A'); } $this->_data[$i] = $row; } } } return $this->_data; }