22 $oTheme =
oxNew(
'oxTheme');
25 $soxId = $oTheme->getActiveThemeId();
28 if ($oTheme->load($soxId)) {
29 $this->_aViewData[
"oTheme"] = $oTheme;
31 oxRegistry::get(
"oxUtilsView")->addErrorToDisplay(
oxNew(
"oxException",
'EXCEPTION_THEME_NOT_LOADED') );
37 oxRegistry::get(
"oxUtilsView")->addErrorToDisplay(
'EXCEPTION_THEME_SHOULD_BE_ONLY_IN_DATABASE' );
40 return 'theme_main.tpl';
50 $blThemeSet = isset( $this->
getConfig()->sTheme );
51 $blCustomThemeSet = isset( $this->
getConfig()->sCustomTheme );
53 if ( $blThemeSet || $blCustomThemeSet ) {
68 $oTheme =
oxNew(
'oxtheme');
69 if (!$oTheme->load($sTheme)) {
70 oxRegistry::get(
"oxUtilsView")->addErrorToDisplay(
oxNew(
"oxException",
'EXCEPTION_THEME_NOT_LOADED') );