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();
164 return ($oConfig->isSsl() ? $oConfig->getShopSecureHomeUrl() : $oConfig->getShopHomeUrl())
166 . ($sCatnid ?
"&cnid={$sCatnid}" :
'')
167 . ($sArtnid ?
"&anid={$sArtnid}" :
'')
168 . ($sMnfid ?
"&mnid={$sMnfid}" :
'')
169 . ($sSearchParam ?
"&searchparam={$sSearchParam}" :
'')
171 . ($sSearchTag ?
"&searchtag={$sSearchTag}" :
'')
174 . ($sRecommId ?
"&recommid={$sRecommId}" :
'')
176 . ($sListType ?
"&listtype={$sListType}" :
'')
178 . ($sTplName ?
"&tpl=" . basename($sTplName) :
'')
179 . ($sContentLoadId ?
"&oxloadid=" . $sContentLoadId :
'')
192 return array(
'oxhelp' . strtolower($sClass),
'oxhelpdefault');
202 if ($this->_sHelpPageLink === null) {
203 $this->_sHelpPageLink =
"";
205 $oContent =
oxNew(
"oxContent");
206 foreach ($aContentIdents as $sIdent) {
207 if ($oContent->loadByIdent($sIdent)) {
208 $this->_sHelpPageLink = $oContent->getLink();
311 startProfile(
'oxviewconfig::setViewConfigParam');
313 $this->_aConfigParams[$sName] = $sValue;
315 stopProfile(
'oxviewconfig::setViewConfigParam');
327 startProfile(
'oxviewconfig::getViewConfigParam');
329 if ($this->_oShop && isset($this->_oShop->$sName)) {
330 $sValue = $this->_oShop->$sName;
331 } elseif ($this->_aViewData && isset($this->_aViewData[$sName])) {
332 $sValue = $this->_aViewData[$sName];
334 $sValue = (isset($this->_aConfigParams[$sName]) ? $this->_aConfigParams[$sName] : null);
337 stopProfile(
'oxviewconfig::getViewConfigParam');
351 $this->_oShop = $oShop;
352 $this->_aViewData = $aViewData;
384 $sValue .=
"\n{$sLang}";
402 $sValue = $this->
getConfig()->getShopHomeURL();
422 $sValue = $this->
getConfig()->getShopSecureHomeURL();
439 $sValue = $this->
getConfig()->getSSLShopURL();
441 $sValue = $this->
getConfig()->getShopURL();
458 $sValue = $this->
getConfig()->getCoreUtilsURL();
473 $sValue = $this->
getConfig()->getShopCurrentUrl();
488 $sValue = $this->
getConfig()->getCurrentShopUrl();
503 $sValue = $this->
getConfig()->getShopHomeURL() .
'cl=basket';
518 $sValue = $this->
getConfig()->getShopSecureHomeUrl() .
'cl=user';
533 $sValue = $this->
getConfig()->getShopSecureHomeUrl() .
'cl=payment';
548 $sValue = $this->
getConfig()->getShopSecureHomeUrl() .
'cl=order&fnc=execute';
563 $sValue = $this->
getConfig()->getShopSecureHomeUrl() .
'cl=order';
630 $sValue = $this->
getConfig()->getImageUrl($this->
isAdmin(), $bSsl, null, $sFile);
678 $sValue = $this->
getConfig()->getConfigParam(
'sAdminDir');
693 $sValue = $this->
getConfig()->getShopId();
739 $sValue = md5($this->
getConfig()->getShopUrl());
754 $sValue = md5(time());
769 $sValue = $this->
getConfig()->getShopCurrentUrl();
783 return $this->
getConfig()->getConfigParam(
'blVariantParentBuyable');
793 return $this->
getConfig()->getConfigParam(
'blShowBirthdayFields');
817 if (is_null($sListType)) {
821 if (
'grid' === $sListType) {
827 return $aNrOfCatArticles;
837 return $this->
getConfig()->getConfigParam(
'bl_showWishlist');
848 $blShowCompareList =
true;
850 if (!
$myConfig->getConfigParam(
'bl_showCompareList') ||
851 (
$myConfig->getConfigParam(
'blDisableNavBars') &&
$myConfig->getActiveView()->getIsOrderStep())
853 $blShowCompareList =
false;
856 return $blShowCompareList;
868 return $this->
getConfig()->getConfigParam(
'bl_showListmania');
878 return $this->
getConfig()->getConfigParam(
'bl_showVouchers');
888 return $this->
getConfig()->getConfigParam(
'bl_showGiftWrapping');
924 return $this->
getConfig()->getActiveView()->getClassName();
935 return $this->
getConfig()->getTopActiveView()->getClassName();
957 $aNavParams = $this->
getConfig()->getActiveView()->getNavigationParams();
958 foreach ($aNavParams as $sName => $sValue) {
959 if (isset($sValue)) {
963 $sParams .=
"{$sName}=" . rawurlencode($sValue);
967 $sParams =
'&' . $sParams;
986 $aNavParams = $this->
getConfig()->getTopActiveView()->getNavigationParams();
987 foreach ($aNavParams as $sName => $sValue) {
988 if (isset($sValue)) {
989 $sParams .=
"<input type=\"hidden\" name=\"{$sName}\" value=\"";
990 $sParams .= $oStr->htmlentities($sValue) .
"\" />\n";
1006 return $this->
getConfig()->getConfigParam(
'blStockOnDefaultMessage');
1016 return $this->
getConfig()->getConfigParam(
'blStockOffDefaultMessage');
1046 $oShop = $this->
getConfig()->getActiveShop();
1048 return isset($oShop->oxshops__oxismultishop) ? ((bool) $oShop->oxshops__oxismultishop->value) :
false;
1082 return $this->
getConfig()->getActiveView()->getActionClassName();
1093 return $this->
getConfig()->getTopActiveView()->getActionClassName();
1105 return $this->
getConfig()->getConfigParam(
'sFbAppId');
1115 return $this->
getConfig()->getConfigParam(
'blPsBasketReservationEnabled')
1116 && ($this->
getSession()->getBasketReservations()->getTimeLeft() > 0);
1126 if (!isset($this->_dBasketTimeLeft)) {
1127 $this->_dBasketTimeLeft = $this->
getSession()->getBasketReservations()->getTimeLeft();
1130 return $this->_dBasketTimeLeft;
1145 if (
$myConfig->getConfigParam(
'bl_showFbConnect')) {
1146 if (
$myConfig->getConfigParam(
"sFbAppId") &&
$myConfig->getConfigParam(
"sFbSecretKey")) {
1164 $aTsConfig = $this->
getConfig()->getConfigParam(
"aTsConfig");
1165 if (is_array($aTsConfig)) {
1166 $sDomain = $aTsConfig[
"blTestMode"] ? $aTsConfig[
"sTsTestUrl"] : $aTsConfig[
"sTsUrl"];
1181 if ($this->_aTrustedShopRatings === null) {
1184 $oTsRatings =
oxNew(
"oxTsRatings");
1185 $oTsRatings->setTsId($sTsId);
1186 $this->_aTrustedShopRatings = $oTsRatings->getRatings();
1210 $aTsConfig = $this->
getConfig()->getConfigParam(
"aTsConfig");
1211 if (isset($aTsConfig[
"sTsRatingUri"]) && isset($aTsConfig[
"sTsRatingUri"][$sLangId])) {
1212 $sTsRateUri = $aTsConfig[
"sTsRatingUri"][$sLangId];
1214 $sTsRateUri =
false;
1217 if ($sTsUrl && $sTsRateUri) {
1218 $sUrl = sprintf(
"{$sTsUrl}/{$sTsRateUri}", $sTsId);
1239 $blShow = (bool) $this->
getConfig()->getConfigParam(
"blTsWidget");
1242 $blShow = (bool) $this->
getConfig()->getConfigParam(
"blTsThankyouReview");
1245 $blShow = (bool) $this->
getConfig()->getConfigParam(
"blTsOrderEmailReview");
1247 case "ORDERCONFEMAIL":
1248 $blShow = (bool) $this->
getConfig()->getConfigParam(
"blTsOrderSendEmailReview");
1266 $aLangIds = $oConfig->getConfigParam(
"aTsLangIds");
1267 $aActInfo = $oConfig->getConfigParam(
"aTsActiveLangIds");
1271 if (isset($aActInfo[$sLangId]) && $aActInfo[$sLangId] &&
1272 isset($aLangIds[$sLangId]) && $aLangIds[$sLangId]
1274 $sTsId = $aLangIds[$sLangId];
1287 return (
bool) $this->
getConfig()->getConfigParam(
'blDebugTemplateBlocks');
1297 $iPasswordLength = 6;
1301 if ($oConfig->getConfigParam(
"iPasswordLength")) {
1302 $iPasswordLength = $oConfig->getConfigParam(
"iPasswordLength");
1305 return $iPasswordLength;
1315 if ($this->_oCountryList === null) {
1317 $this->_oCountryList =
oxNew(
'oxcountrylist');
1318 $this->_oCountryList->loadActiveCountries();
1337 if (!$sFile || ($sFile[0] !=
'/')) {
1338 $sFile =
'/' . $sFile;
1340 $oModule =
oxNew(
"oxmodule");
1341 $sModulePath = $oModule->getModulePath($sModule);
1342 $sFile = $this->
getConfig()->getModulesDir() . $sModulePath . $sFile;
1343 if (file_exists($sFile) || is_dir($sFile)) {
1347 $oEx =
oxNew(
"oxFileException",
"Requested file not found for module $sModule ($sFile)");
1349 if (!$this->
getConfig()->getConfigParam(
'iDebug')) {
1368 $sUrl = str_replace(
1369 rtrim($this->
getConfig()->getConfigParam(
'sShopDir'),
'/'),
1370 rtrim($this->
getConfig()->getCurrentShopUrl(
false),
'/'),
1389 $blModuleIsActive =
false;
1392 $aModuleVersions = $this->
getConfig()->getConfigParam(
'aModuleVersions');
1394 if (is_array($aModuleVersions)) {
1395 $blModuleIsActive = $this->
_moduleExists($sModuleId, $aModuleVersions);
1397 if ($blModuleIsActive) {
1402 return $blModuleIsActive;
1416 if ($this->
getConfig()->isThemeOption($sName)) {
1417 $sValue = $this->
getConfig()->getConfigParam($sName);
1431 return (
bool) $this->
getConfig()->getConfigParam(
'bl_perfLoadSelectLists');
1455 return $oConfig->getConfigParam(
'sAltImageUrl') || $oConfig->getConfigParam(
'sSSLAltImageUrl') ||
1456 $oConfig->getConfigParam(
'sAltImageDir') || $oConfig->getConfigParam(
'sSSLAltImageDir');
1468 return (
bool) $this->
getConfig()->getConfigParam($sParamName);
1478 if ($this->_sActiveTheme === null) {
1479 $oTheme =
oxNew(
'oxTheme');
1480 $this->_sActiveTheme = $oTheme->getActiveThemeId();
1493 if (is_null($this->_sShopLogo)) {
1495 $sLogoImage = $this->
getConfig()->getConfigParam(
'sShopLogo');
1496 if (empty($sLogoImage)) {
1497 $sLogoImage =
"logo.png";
1513 $this->_sShopLogo = $sLogo;
1524 $sessionChallengeToken = $this->
getSession()->getSessionChallengeToken();
1526 $sessionChallengeToken =
"";
1529 return $sessionChallengeToken;
1542 $blModuleExists =
false;
1544 if (in_array($sModuleId, array_keys($aModuleVersions) )) {
1545 $blModuleExists =
true;
1548 return $blModuleExists;
1560 $blModuleIsActive =
false;
1562 $aDisabledModules = $this->
getConfig()->getConfigParam(
'aDisabledModules');
1563 if (!(is_array($aDisabledModules) && in_array($sModuleId, $aDisabledModules))) {
1564 $blModuleIsActive =
true;
1566 return $blModuleIsActive;
1580 $blModuleIsActive =
true;
1582 $aModuleVersions = $this->
getConfig()->getConfigParam(
'aModuleVersions');
1584 if ($sVersionFrom && !version_compare($aModuleVersions[$sModuleId], $sVersionFrom,
'>=')) {
1585 $blModuleIsActive =
false;
1588 if ($blModuleIsActive && $sVersionTo && !version_compare($aModuleVersions[$sModuleId], $sVersionTo,
'<')) {
1589 $blModuleIsActive =
false;
1592 return $blModuleIsActive;
1602 return $this->
getConfig()->getEdition();