76 $iLang = $oLang->getBaseLanguage();
80 $blAddStartCl = $myUtils->seoIsActive() && ( $iLang !=
$myConfig->getConfigParam(
'sDefaultLang' ) );
83 if ( $blAddStartCl ) {
89 $sValue =
getStr()->preg_replace(
'/(\?|&(amp;)?)$/',
'', $sValue);
110 if ( !$sTplName && $this->
getConfig()->getTopActiveView() ) {
111 $sTplName = $this->
getConfig()->getTopActiveView()->getViewConfig()->getViewConfigParam(
'oxloadid');
113 return $sTplName ? basename( $sTplName ) : null;
133 return $this->
getConfig()->getShopCurrency();
155 return ( $oConfig->isSsl()? $oConfig->getShopSecureHomeUrl() : $oConfig->getShopHomeUrl() )
157 . ( $sCatnid ?
"&cnid={$sCatnid}" :
'' )
158 . ( $sArtnid ?
"&anid={$sArtnid}" :
'' )
159 . ( $sMnfid ?
"&mnid={$sMnfid}" :
'' )
160 . ( $sSearchParam ?
"&searchparam={$sSearchParam}" :
'' )
161 . ( $sSearchTag ?
"&searchtag={$sSearchTag}" :
'' )
162 . ( $sRecommId ?
"&recommid={$sRecommId}" :
'' )
163 . ( $sListType ?
"&listtype={$sListType}" :
'' )
165 . ( $sTplName ?
"&tpl=".basename( $sTplName ) :
'' )
166 . ( $sContentLoadId ?
"&oxloadid=" . $sContentLoadId :
'' )
178 return array(
'oxhelp' . strtolower( $sClass ),
'oxhelpdefault' );
188 if ( $this->_sHelpPageLink === null ) {
192 $oContent =
oxNew(
"oxContent" );
193 foreach ( $aContentIdents as $sIdent ) {
194 if ( $oContent->loadByIdent( $sIdent ) ) {
195 $sLink = $oContent->getLink();
200 $this->_sHelpPageLink = $sLink ? $sLink : $this->
getHelpLink();
214 return $this->
getConfig()->getShopCurrentURL().
"cl=help&page={$sClass}".( $sTplName ?
"&tpl={$sTplName}" :
'' );
309 startProfile(
'oxviewconfig::setViewConfigParam');
311 $this->_aConfigParams[$sName] = $sValue;
313 stopProfile(
'oxviewconfig::setViewConfigParam');
325 startProfile(
'oxviewconfig::getViewConfigParam');
327 if ( $this->_oShop && isset( $this->_oShop->$sName ) ) {
328 $sValue = $this->_oShop->$sName;
329 } elseif ( $this->_aViewData && isset( $this->_aViewData[ $sName ] ) ) {
330 $sValue = $this->_aViewData[ $sName ];
332 $sValue = ( isset( $this->_aConfigParams[ $sName ] ) ? $this->_aConfigParams[ $sName ] : null );
335 stopProfile(
'oxviewconfig::getViewConfigParam');
351 $this->_oShop = $oShop;
352 $this->_aViewData = $aViewData;
383 $sValue .=
"\n{$sLang}";
400 $sValue = $this->
getConfig()->getShopHomeURL();
419 $sValue = $this->
getConfig()->getShopSecureHomeURL();
435 $sValue = $this->
getConfig()->getSSLShopURL();
437 $sValue = $this->
getConfig()->getShopURL();
453 $sValue = $this->
getConfig()->getCoreUtilsURL();
467 $sValue = $this->
getConfig()->getShopCurrentUrl();
481 $sValue = $this->
getConfig()->getCurrentShopUrl();
495 $sValue = $this->
getConfig()->getShopHomeURL() .
'cl=basket';
509 $sValue = $this->
getConfig()->getShopSecureHomeUrl() .
'cl=user';
523 $sValue = $this->
getConfig()->getShopSecureHomeUrl() .
'cl=payment';
537 $sValue = $this->
getConfig()->getShopSecureHomeUrl() .
'cl=order&fnc=execute';
551 $sValue = $this->
getConfig()->getShopSecureHomeUrl() .
'cl=order';
614 $sValue = $this->
getConfig()->getImageUrl( $this->
isAdmin(), $bSsl, null, $sFile );
659 $sValue = $this->
getConfig()->getConfigParam(
'sAdminDir' );
673 $sValue = $this->
getConfig()->getShopId();
716 $sValue = md5( $this->
getConfig()->getShopUrl() );
730 $sValue = md5( time() );
744 $sValue = $this->
getConfig()->getShopCurrentUrl();
757 return $this->
getConfig()->getConfigParam(
'blVariantParentBuyable' );
767 return $this->
getConfig()->getConfigParam(
'blShowBirthdayFields' );
792 return $this->
getConfig()->getConfigParam(
'aNrofCatArticlesInGrid' );
797 return $this->
getConfig()->getConfigParam(
'aNrofCatArticles' );
808 return $this->
getConfig()->getConfigParam(
'bl_showWishlist' );
819 $blShowCompareList =
true;
821 if ( !
$myConfig->getConfigParam(
'bl_showCompareList' ) ||
822 (
$myConfig->getConfigParam(
'blDisableNavBars' ) &&
$myConfig->getActiveView()->getIsOrderStep() ) ) {
823 $blShowCompareList =
false;
826 return $blShowCompareList;
836 return $this->
getConfig()->getConfigParam(
'bl_showListmania' );
846 return $this->
getConfig()->getConfigParam(
'bl_showVouchers' );
856 return $this->
getConfig()->getConfigParam(
'bl_showGiftWrapping' );
891 return $this->
getConfig()->getActiveView()->getClassName();
902 return $this->
getConfig()->getTopActiveView()->getClassName();
924 $aNavParams = $this->
getConfig()->getActiveView()->getNavigationParams();
925 foreach ( $aNavParams as $sName => $sValue ) {
926 if ( isset( $sValue ) ) {
930 $sParams .=
"{$sName}=".rawurlencode( $sValue );
934 $sParams =
'&'.$sParams;
953 $aNavParams = $this->
getConfig()->getTopActiveView()->getNavigationParams();
954 foreach ( $aNavParams as $sName => $sValue ) {
955 if ( isset( $sValue ) ) {
956 $sParams .=
"<input type=\"hidden\" name=\"{$sName}\" value=\"".$oStr->htmlentities( $sValue ).
"\" />\n";
971 return $this->
getConfig()->getConfigParam(
'blStockOnDefaultMessage' );
981 return $this->
getConfig()->getConfigParam(
'blStockOffDefaultMessage' );
1011 $oShop = $this->
getConfig()->getActiveShop();
1012 return isset( $oShop->oxshops__oxismultishop ) ? ( (bool) $oShop->oxshops__oxismultishop->value ) :
false;
1046 return $this->
getConfig()->getActiveView()->getActionClassName();
1057 return $this->
getConfig()->getTopActiveView()->getActionClassName();
1067 return $this->
getConfig()->getConfigParam(
'sFbAppId' );
1077 return $this->
getConfig()->getConfigParam(
'blPsBasketReservationEnabled' )
1078 && ($this->
getSession()->getBasketReservations()->getTimeLeft() > 0);
1088 if (!isset($this->_dBasketTimeLeft)) {
1089 $this->_dBasketTimeLeft = $this->
getSession()->getBasketReservations()->getTimeLeft();
1091 return $this->_dBasketTimeLeft;
1104 if (
$myConfig->getConfigParam(
'bl_showFbConnect' ) ) {
1105 if (
$myConfig->getConfigParam(
"sFbAppId" ) &&
$myConfig->getConfigParam(
"sFbSecretKey" ) ) {
1121 $aTsConfig = $this->
getConfig()->getConfigParam(
"aTsConfig" );
1122 if ( is_array( $aTsConfig ) ) {
1123 $sDomain = $aTsConfig[
"blTestMode"] ? $aTsConfig[
"sTsTestUrl"] : $aTsConfig[
"sTsUrl"];
1138 if ( $sTsId = $this->
getTsId() ) {
1141 $aTsConfig = $this->
getConfig()->getConfigParam(
"aTsConfig" );
1142 $sTsWidgetUri = isset( $aTsConfig[
"sTsWidgetUri"] ) ? current( $aTsConfig[
"sTsWidgetUri"] ) :
false;
1144 if ( $sTsUrl && $sTsWidgetUri ) {
1146 $sUrl = sprintf(
"{$sTsUrl}/{$sTsWidgetUri}", $sTsId );
1166 if ( $sTsId = $this->
getTsId() ) {
1170 $aTsConfig = $this->
getConfig()->getConfigParam(
"aTsConfig" );
1171 $sTsInfoUri = ( isset( $aTsConfig[
"sTsInfoUri"] ) && isset( $aTsConfig[
"sTsInfoUri"][$sLangId] ) ) ? $aTsConfig[
"sTsInfoUri"][$sLangId] :
false;
1173 if ( $sTsUrl && $sTsInfoUri ) {
1174 $sUrl = sprintf(
"{$sTsUrl}/{$sTsInfoUri}", $sTsId );
1188 if ( $this->_aTrustedShopRatings === null ) {
1189 if ( $sTsId = $this->
getTsId() ) {
1190 $oTsRatings =
oxNew(
"oxTsRatings" );
1191 $oTsRatings->setTsId( $sTsId );
1192 $this->_aTrustedShopRatings = $oTsRatings->getRatings();
1208 if ( $sTsId = $this->
getTsId() ) {
1212 $aTsConfig = $this->
getConfig()->getConfigParam(
"aTsConfig" );
1213 $sTsRateUri = ( isset( $aTsConfig[
"sTsRatingUri"] ) && isset( $aTsConfig[
"sTsRatingUri"][$sLangId] ) ) ? $aTsConfig[
"sTsRatingUri"][$sLangId] :
false;
1215 if ( $sTsUrl && $sTsRateUri ) {
1216 $sUrl = sprintf(
"{$sTsUrl}/{$sTsRateUri}", $sTsId );
1235 $blShow = (bool) $this->
getConfig()->getConfigParam(
"blTsWidget" );
1238 $blShow = (bool) $this->
getConfig()->getConfigParam(
"blTsThankyouReview" );
1241 $blShow = (bool) $this->
getConfig()->getConfigParam(
"blTsOrderEmailReview" );
1243 case "ORDERCONFEMAIL":
1244 $blShow = (bool) $this->
getConfig()->getConfigParam(
"blTsOrderSendEmailReview" );
1259 $aLangIds = $oConfig->getConfigParam(
"aTsLangIds" );
1260 $aActInfo = $oConfig->getConfigParam(
"aTsActiveLangIds" );
1264 if ( isset( $aActInfo[$sLangId] ) && $aActInfo[$sLangId] &&
1265 isset( $aLangIds[$sLangId] ) && $aLangIds[$sLangId]
1267 $sTsId = $aLangIds[$sLangId];
1280 return (
bool) $this->
getConfig()->getConfigParam(
'blDebugTemplateBlocks');
1290 $iPasswordLength = 6;
1294 if ($oConfig->getConfigParam(
"iPasswordLength" ) ) {
1295 $iPasswordLength = $oConfig->getConfigParam(
"iPasswordLength" );
1298 return $iPasswordLength;
1308 if ( $this->_oCountryList === null ) {
1310 $this->_oCountryList =
oxNew(
'oxcountrylist' );
1311 $this->_oCountryList->loadActiveCountries();
1329 if (!$sFile || ($sFile[0] !=
'/')) {
1330 $sFile =
'/'.$sFile;
1332 $oModule =
oxNew(
"oxmodule");
1333 $sModulePath = $oModule->getModulePath($sModule);
1334 $sFile = $this->
getConfig()->getModulesDir().$sModulePath.$sFile;
1335 if (file_exists($sFile) || is_dir($sFile)) {
1338 $oEx =
oxNew(
"oxFileException",
"Requested file not found for module $sModule ($sFile)" );
1340 if (!$this->
getConfig()->getConfigParam(
'iDebug' )) {
1359 $sUrl = str_replace(
1360 rtrim($this->
getConfig()->getConfigParam(
'sShopDir'),
'/'),
1361 rtrim($this->
getConfig()->getCurrentShopUrl(
false ),
'/'),
1378 if ($this->
getConfig()->isThemeOption( $sName ) ) {
1379 $sValue = $this->
getConfig()->getConfigParam( $sName );
1393 return (
bool) $this->
getConfig()->getConfigParam(
'bl_perfLoadSelectLists' );
1417 return $oConfig->getConfigParam(
'sAltImageUrl') || $oConfig->getConfigParam(
'sSSLAltImageUrl') ||
1418 $oConfig->getConfigParam(
'sAltImageDir') || $oConfig->getConfigParam(
'sSSLAltImageDir');
1430 return (
bool) $this->
getConfig()->getConfigParam( $sParamName );
1440 if ( $this->_sActiveTheme === null ) {
1441 $oTheme =
oxNew(
'oxTheme' );
1442 $this->_sActiveTheme = $oTheme->getActiveThemeId();
1454 if ( is_null( $this->_sShopLogo ) ) {
1456 $sLogoImage = $this->
getConfig()->getConfigParam(
'sShopLogo' );
1457 if ( empty( $sLogoImage ) )
1459 $sLogoImage =
"logo.png";
1477 $this->_sShopLogo = $sLogo;
1488 $sessionChallengeToken = $this->
getSession()->getSessionChallengeToken();
1490 $sessionChallengeToken =
"";
1493 return $sessionChallengeToken;