78 $iLang = $oLang->getBaseLanguage();
82 $blAddStartCl = $myUtils->seoIsActive() && ($iLang !=
$myConfig->getConfigParam(
'sDefaultLang'));
91 $sValue =
getStr()->preg_replace(
'/(\?|&(amp;)?)$/',
'', $sValue);
113 if (!$sTplName && $this->
getConfig()->getTopActiveView()) {
114 $sTplName = $this->
getConfig()->getTopActiveView()->getViewConfig()->getViewConfigParam(
'oxloadid');
117 return $sTplName ? basename($sTplName) : null;
137 return $this->
getConfig()->getShopCurrency();
160 return ($oConfig->isSsl() ? $oConfig->getShopSecureHomeUrl() : $oConfig->getShopHomeUrl())
162 . ($sCatnid ?
"&cnid={$sCatnid}" :
'')
163 . ($sArtnid ?
"&anid={$sArtnid}" :
'')
164 . ($sMnfid ?
"&mnid={$sMnfid}" :
'')
165 . ($sSearchParam ?
"&searchparam={$sSearchParam}" :
'')
166 . ($sSearchTag ?
"&searchtag={$sSearchTag}" :
'')
167 . ($sRecommId ?
"&recommid={$sRecommId}" :
'')
168 . ($sListType ?
"&listtype={$sListType}" :
'')
170 . ($sTplName ?
"&tpl=" . basename($sTplName) :
'')
171 . ($sContentLoadId ?
"&oxloadid=" . $sContentLoadId :
'')
184 return array(
'oxhelp' . strtolower($sClass),
'oxhelpdefault');
194 if ($this->_sHelpPageLink === null) {
195 $this->_sHelpPageLink =
"";
197 $oContent =
oxNew(
"oxContent");
198 foreach ($aContentIdents as $sIdent) {
199 if ($oContent->loadByIdent($sIdent)) {
200 $this->_sHelpPageLink = $oContent->getLink();
299 startProfile(
'oxviewconfig::setViewConfigParam');
301 $this->_aConfigParams[$sName] = $sValue;
303 stopProfile(
'oxviewconfig::setViewConfigParam');
315 startProfile(
'oxviewconfig::getViewConfigParam');
317 if ($this->_oShop && isset($this->_oShop->$sName)) {
318 $sValue = $this->_oShop->$sName;
319 } elseif ($this->_aViewData && isset($this->_aViewData[$sName])) {
320 $sValue = $this->_aViewData[$sName];
322 $sValue = (isset($this->_aConfigParams[$sName]) ? $this->_aConfigParams[$sName] : null);
325 stopProfile(
'oxviewconfig::getViewConfigParam');
339 $this->_oShop = $oShop;
340 $this->_aViewData = $aViewData;
372 $sValue .=
"\n{$sLang}";
390 $sValue = $this->
getConfig()->getShopHomeURL();
410 $sValue = $this->
getConfig()->getShopSecureHomeURL();
427 $sValue = $this->
getConfig()->getSSLShopURL();
429 $sValue = $this->
getConfig()->getShopURL();
446 $sValue = $this->
getConfig()->getCoreUtilsURL();
461 $sValue = $this->
getConfig()->getShopCurrentUrl();
476 $sValue = $this->
getConfig()->getCurrentShopUrl();
491 $sValue = $this->
getConfig()->getShopHomeURL() .
'cl=basket';
506 $sValue = $this->
getConfig()->getShopSecureHomeUrl() .
'cl=user';
521 $sValue = $this->
getConfig()->getShopSecureHomeUrl() .
'cl=payment';
536 $sValue = $this->
getConfig()->getShopSecureHomeUrl() .
'cl=order&fnc=execute';
551 $sValue = $this->
getConfig()->getShopSecureHomeUrl() .
'cl=order';
618 $sValue = $this->
getConfig()->getImageUrl($this->
isAdmin(), $bSsl, null, $sFile);
666 $sValue = $this->
getConfig()->getConfigParam(
'sAdminDir');
681 $sValue = $this->
getConfig()->getShopId();
727 $sValue = md5($this->
getConfig()->getShopUrl());
742 $sValue = md5(time());
757 $sValue = $this->
getConfig()->getShopCurrentUrl();
771 return $this->
getConfig()->getConfigParam(
'blVariantParentBuyable');
781 return $this->
getConfig()->getConfigParam(
'blShowBirthdayFields');
805 if (is_null($sListType)) {
809 if (
'grid' === $sListType) {
815 return $aNrOfCatArticles;
825 return $this->
getConfig()->getConfigParam(
'bl_showWishlist');
836 $blShowCompareList =
true;
838 if (!
$myConfig->getConfigParam(
'bl_showCompareList') ||
839 (
$myConfig->getConfigParam(
'blDisableNavBars') &&
$myConfig->getActiveView()->getIsOrderStep())
841 $blShowCompareList =
false;
844 return $blShowCompareList;
854 return $this->
getConfig()->getConfigParam(
'bl_showListmania');
864 return $this->
getConfig()->getConfigParam(
'bl_showVouchers');
874 return $this->
getConfig()->getConfigParam(
'bl_showGiftWrapping');
910 return $this->
getConfig()->getActiveView()->getClassName();
921 return $this->
getConfig()->getTopActiveView()->getClassName();
943 $aNavParams = $this->
getConfig()->getActiveView()->getNavigationParams();
944 foreach ($aNavParams as $sName => $sValue) {
945 if (isset($sValue)) {
949 $sParams .=
"{$sName}=" . rawurlencode($sValue);
953 $sParams =
'&' . $sParams;
972 $aNavParams = $this->
getConfig()->getTopActiveView()->getNavigationParams();
973 foreach ($aNavParams as $sName => $sValue) {
974 if (isset($sValue)) {
975 $sParams .=
"<input type=\"hidden\" name=\"{$sName}\" value=\"";
976 $sParams .= $oStr->htmlentities($sValue) .
"\" />\n";
992 return $this->
getConfig()->getConfigParam(
'blStockOnDefaultMessage');
1002 return $this->
getConfig()->getConfigParam(
'blStockOffDefaultMessage');
1032 $oShop = $this->
getConfig()->getActiveShop();
1034 return isset($oShop->oxshops__oxismultishop) ? ((bool) $oShop->oxshops__oxismultishop->value) :
false;
1068 return $this->
getConfig()->getActiveView()->getActionClassName();
1079 return $this->
getConfig()->getTopActiveView()->getActionClassName();
1089 return $this->
getConfig()->getConfigParam(
'sFbAppId');
1099 return $this->
getConfig()->getConfigParam(
'blPsBasketReservationEnabled')
1100 && ($this->
getSession()->getBasketReservations()->getTimeLeft() > 0);
1110 if (!isset($this->_dBasketTimeLeft)) {
1111 $this->_dBasketTimeLeft = $this->
getSession()->getBasketReservations()->getTimeLeft();
1114 return $this->_dBasketTimeLeft;
1127 if (
$myConfig->getConfigParam(
'bl_showFbConnect')) {
1128 if (
$myConfig->getConfigParam(
"sFbAppId") &&
$myConfig->getConfigParam(
"sFbSecretKey")) {
1144 $aTsConfig = $this->
getConfig()->getConfigParam(
"aTsConfig");
1145 if (is_array($aTsConfig)) {
1146 $sDomain = $aTsConfig[
"blTestMode"] ? $aTsConfig[
"sTsTestUrl"] : $aTsConfig[
"sTsUrl"];
1159 if ($this->_aTrustedShopRatings === null) {
1162 $oTsRatings =
oxNew(
"oxTsRatings");
1163 $oTsRatings->setTsId($sTsId);
1164 $this->_aTrustedShopRatings = $oTsRatings->getRatings();
1186 $aTsConfig = $this->
getConfig()->getConfigParam(
"aTsConfig");
1187 if (isset($aTsConfig[
"sTsRatingUri"]) && isset($aTsConfig[
"sTsRatingUri"][$sLangId])) {
1188 $sTsRateUri = $aTsConfig[
"sTsRatingUri"][$sLangId];
1190 $sTsRateUri =
false;
1193 if ($sTsUrl && $sTsRateUri) {
1194 $sUrl = sprintf(
"{$sTsUrl}/{$sTsRateUri}", $sTsId);
1213 $blShow = (bool) $this->
getConfig()->getConfigParam(
"blTsWidget");
1216 $blShow = (bool) $this->
getConfig()->getConfigParam(
"blTsThankyouReview");
1219 $blShow = (bool) $this->
getConfig()->getConfigParam(
"blTsOrderEmailReview");
1221 case "ORDERCONFEMAIL":
1222 $blShow = (bool) $this->
getConfig()->getConfigParam(
"blTsOrderSendEmailReview");
1238 $aLangIds = $oConfig->getConfigParam(
"aTsLangIds");
1239 $aActInfo = $oConfig->getConfigParam(
"aTsActiveLangIds");
1243 if (isset($aActInfo[$sLangId]) && $aActInfo[$sLangId] &&
1244 isset($aLangIds[$sLangId]) && $aLangIds[$sLangId]
1246 $sTsId = $aLangIds[$sLangId];
1259 return (
bool) $this->
getConfig()->getConfigParam(
'blDebugTemplateBlocks');
1269 $iPasswordLength = 6;
1273 if ($oConfig->getConfigParam(
"iPasswordLength")) {
1274 $iPasswordLength = $oConfig->getConfigParam(
"iPasswordLength");
1277 return $iPasswordLength;
1287 if ($this->_oCountryList === null) {
1289 $this->_oCountryList =
oxNew(
'oxcountrylist');
1290 $this->_oCountryList->loadActiveCountries();
1309 if (!$sFile || ($sFile[0] !=
'/')) {
1310 $sFile =
'/' . $sFile;
1312 $oModule =
oxNew(
"oxmodule");
1313 $sModulePath = $oModule->getModulePath($sModule);
1314 $sFile = $this->
getConfig()->getModulesDir() . $sModulePath . $sFile;
1315 if (file_exists($sFile) || is_dir($sFile)) {
1319 $oEx =
oxNew(
"oxFileException",
"Requested file not found for module $sModule ($sFile)");
1321 if (!$this->
getConfig()->getConfigParam(
'iDebug')) {
1340 $sUrl = str_replace(
1341 rtrim($this->
getConfig()->getConfigParam(
'sShopDir'),
'/'),
1342 rtrim($this->
getConfig()->getCurrentShopUrl(
false),
'/'),
1361 $blModuleIsActive =
false;
1364 $aModuleVersions = $this->
getConfig()->getConfigParam(
'aModuleVersions');
1366 if (is_array($aModuleVersions)) {
1367 $blModuleIsActive = $this->
_moduleExists($sModuleId, $aModuleVersions);
1369 if ($blModuleIsActive) {
1374 return $blModuleIsActive;
1388 if ($this->
getConfig()->isThemeOption($sName)) {
1389 $sValue = $this->
getConfig()->getConfigParam($sName);
1403 return (
bool) $this->
getConfig()->getConfigParam(
'bl_perfLoadSelectLists');
1427 return $oConfig->getConfigParam(
'sAltImageUrl') || $oConfig->getConfigParam(
'sSSLAltImageUrl') ||
1428 $oConfig->getConfigParam(
'sAltImageDir') || $oConfig->getConfigParam(
'sSSLAltImageDir');
1440 return (
bool) $this->
getConfig()->getConfigParam($sParamName);
1450 if ($this->_sActiveTheme === null) {
1451 $oTheme =
oxNew(
'oxTheme');
1452 $this->_sActiveTheme = $oTheme->getActiveThemeId();
1465 if (is_null($this->_sShopLogo)) {
1467 $sLogoImage = $this->
getConfig()->getConfigParam(
'sShopLogo');
1468 if (empty($sLogoImage)) {
1469 $sLogoImage =
"logo.png";
1485 $this->_sShopLogo = $sLogo;
1496 $sessionChallengeToken = $this->
getSession()->getSessionChallengeToken();
1498 $sessionChallengeToken =
"";
1501 return $sessionChallengeToken;
1514 $blModuleExists =
false;
1516 if (in_array($sModuleId, array_keys($aModuleVersions) )) {
1517 $blModuleExists =
true;
1520 return $blModuleExists;
1532 $blModuleIsActive =
false;
1534 $aDisabledModules = $this->
getConfig()->getConfigParam(
'aDisabledModules');
1535 if (!(is_array($aDisabledModules) && in_array($sModuleId, $aDisabledModules))) {
1536 $blModuleIsActive =
true;
1538 return $blModuleIsActive;
1552 $blModuleIsActive =
true;
1554 $aModuleVersions = $this->
getConfig()->getConfigParam(
'aModuleVersions');
1556 if ($sVersionFrom && !version_compare($aModuleVersions[$sModuleId], $sVersionFrom,
'>=')) {
1557 $blModuleIsActive =
false;
1560 if ($blModuleIsActive && $sVersionTo && !version_compare($aModuleVersions[$sModuleId], $sVersionTo,
'<')) {
1561 $blModuleIsActive =
false;
1564 return $blModuleIsActive;
1574 return $this->
getConfig()->getEdition();