From 98ab381b0ea6d9defdc4ff448d25e83c58414f7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tempez?= Date: Fri, 7 Oct 2022 17:40:53 +0200 Subject: [PATCH] Cookie consent double url si page accueil --- core/core.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/core.php b/core/core.php index 0ea1a580..8bb7d853 100644 --- a/core/core.php +++ b/core/core.php @@ -1329,7 +1329,13 @@ class common $item .= '

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

'; $item .= '

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

'; // Formulaire de réponse - $item .= '
'; + if ( + $this->getData(['locale', 'homePageId']) === $this->getUrl(0) + ) { + $item .= ''; + } else { + $item .= ''; + } $analytics = $this->getData(['config', 'seo', 'analyticsId']); $stateCookieGA = $this->getInput('ZWII_COOKIE_GA_CONSENT') === 'true' ? 'checked="checked"' : ''; if ($analytics !== null and $analytics !== '') {