function uninstallTheme() { $objTheme =& JSNISShowcaseTheme::getInstance(); $themes = $objTheme->listThemes(false); if (count($themes)) { foreach ($themes as $theme) { $objTheme->deleteThemeByPluginID((int) $theme['id']); } $app = JFactory::getApplication(); $app->enqueueMessage('SubInstall: Successfully removed all JSN ImageShow Theme plugins', 'message'); } }
function _renderThemeData() { $objJSNISShowcaseTheme = JSNISShowcaseTheme::getInstance(); $themes = $objJSNISShowcaseTheme->listThemes(false); $themeTables = array(); if (count($themes)) { foreach ($themes as $theme) { $name = '#__imageshow_' . JString::str_ireplace('theme', 'theme_', $theme['element']); if ($this->_checkTableExist($name)) { $themeTables[$theme['element']] = $name; } } } if (count($themeTables)) { $this->_renderTableThemeData($themeTables); } }
function _getShowcaseTheme() { $objJSNISShowcaseTheme =& JSNISShowcaseTheme::getInstance(); $themes = $objJSNISShowcaseTheme->listThemes(false); $results = array(); if (count($themes)) { foreach ($themes as $theme) { $results[] = $theme['element']; } } return $results; }