diff --git a/core/core.php b/core/core.php index 8efd39ef..e217235d 100644 --- a/core/core.php +++ b/core/core.php @@ -1196,16 +1196,18 @@ class common { ){ $analytics = $this->getData(['locale', 'seo', 'analyticsId']); - $legalPage = $this->getData(['locale', 'legalPageId']) ==='none'? 'mentions-legales' : $this->getData(['locale','legalPageId']); + $legalPage = $this->getData(['locale', 'legalPageId']); $item = '
'; - $item .= '
'; + $item .= '
'; $item .= template::ico('cancel'); $item .= '
'; $item .= '

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

'; $item .= '

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

'; - $item .= '

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

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

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

'; + if ($legalPage !== 'none') { + $item .= '

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

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

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

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