diff --git a/core/core.php b/core/core.php index 3adce250..ba52687e 100644 --- a/core/core.php +++ b/core/core.php @@ -1191,26 +1191,29 @@ class common { */ public function showCookies() { //$cookieName = 'ZWII_COOKIE_CONSENT'.str_replace('_index.php','',str_replace( '/','_',$_SERVER['PHP_SELF'])); - if($this->getInput('ZWII_COOKIE_CONSENT') !== 'true' AND $this->getData(['config','cookieConsent']) === true){ ?> -
-
X
-

getData(['config', 'cookies', 'cookiesTitleText']); ?>

- getData(['config', 'seo', 'analyticsId']);?> -

getData(['config', 'cookies', 'cookiesZwiiText']); ?>

- getData(['locale','legalPageId']) ==='none'? 'mentions-legales' : $this->getData(['locale','legalPageId']); ?> -

getData(['config', 'cookies', 'cookiesLinkMlText']); ?>

- -

getData(['config', 'cookies', 'cookiesGaText']); ?>

- -
- - -

- -
-
- getInput('ZWII_COOKIE_CONSENT') !== 'true' AND $this->getData(['config','cookieConsent']) === true){ + + $analytics = $this->getData(['config', 'seo', 'analyticsId']); + $legalPage = $this->getData(['locale','legalPageId']) ==='none'? 'mentions-legales' : $this->getData(['locale','legalPageId']); + + $item = '
'; + $item .= '
X
'; + $item .= '

'. $this->getData(['config', 'cookies', 'cookiesTitleText']) . '

'; + $item .= '

' . $this->getData(['config', 'cookies', 'cookiesZwiiText']) . '

'; + $item .= '

' . $this->getData(['config', 'cookies', 'cookiesLinkMlText']) . '

'; + if( $analytics !== null AND $analytics !=='' ){ + $item .= '

' . $this->getData(['config', 'cookies', 'cookiesGaText']) . '

'; + } + $item .= '
'; + if( $analytics !== null AND $analytics !=='' ) { + $item .= ''; + $item .= ''; + } + $item .= '

'; + $item .= ''; + $item .= '
'; } + echo $item; } /**