[working-state] restructuring usercentricts & consentmanager decision
consentmanager decision is working so far; next step is implementing usercentricts
This commit is contained in:
parent
6fca52cc06
commit
561a2101f1
@ -47,7 +47,7 @@ class ViewConfig extends ViewConfig_parent
|
||||
public function getExplicitManager()
|
||||
{
|
||||
$sManagerName = $this->getModuleSettingExplicitManagerSelectValue();
|
||||
return $sManagerName === "---" ? false : $sManagerName;
|
||||
return $sManagerName === "NONE" ? false : $sManagerName;
|
||||
}
|
||||
|
||||
public function getCookieManagerType()
|
||||
@ -107,7 +107,7 @@ class ViewConfig extends ViewConfig_parent
|
||||
}
|
||||
}
|
||||
|
||||
// UserCentrics
|
||||
// UserCentrics or consentmanager
|
||||
if ($this->getCookieManagerType() === "oxps_usercentrics" or $this->getCookieManagerType() === 'externalService') {
|
||||
// Always needs the script-tags delivered to the DOM.
|
||||
return true;
|
||||
@ -126,7 +126,7 @@ class ViewConfig extends ViewConfig_parent
|
||||
{
|
||||
$oConfig = Registry::getConfig();
|
||||
|
||||
if ($this->getCookieManagerType() === "oxps_usercentrics" or $this->getExplicitManager() === 'usercentrics') {
|
||||
if ($this->getCookieManagerType() === "oxps_usercentrics" or $this->getExplicitManager() === 'USERCENTRICS') {
|
||||
$sCookieId = $oConfig->getConfigParam('d3_gtm_settings_cookieName');
|
||||
|
||||
if ($sCookieId) {
|
||||
@ -134,7 +134,7 @@ class ViewConfig extends ViewConfig_parent
|
||||
}
|
||||
}
|
||||
|
||||
if ($this->getCookieManagerType() === "externalService" and $this->getExplicitManager() === 'consentmanager') {
|
||||
if ($this->getCookieManagerType() === "externalService" and $this->getExplicitManager() === 'CONSENTMANAGER') {
|
||||
$sCookieId = $oConfig->getConfigParam('d3_gtm_settings_cookieName');
|
||||
|
||||
if ($sCookieId) {
|
||||
|
Loading…
Reference in New Issue
Block a user