*/ class Default_Block_ThemeSwitcher { function init() { $this->aThemes = SGL_Util::getAllThemes(); $req = & SGL_Request::singleton(); $theme = $req->get('frmThemeSwitcher'); if (!is_null($theme)) { if (in_array($theme, $this->aThemes)) { $_SESSION['aPrefs']['theme'] = $theme; } } return $this->getBlockContent(); } function getBlockContent() { $options = SGL_Output::generateSelect($this->aThemes, $_SESSION['aPrefs']['theme']); $req = & SGL_Request::singleton(); $url = SGL_Url::makeLink() . 'frmThemeSwitcher/'; $html = <<< HTML

Change the current theme:

 

HTML; return $html; } } ?>