From 58342532cd9627b645f80b68e4f69fba00126c09 Mon Sep 17 00:00:00 2001 From: stephan Date: Sat, 27 Jun 2026 14:54:52 -0400 Subject: [PATCH] Enhance cookie management UI and functionality This commit updates the cookie management interface in the footer by replacing the existing cookie icon with a new SVG representation, improving visual consistency. It also refines the associated CSS styles for better user interaction and accessibility. Additionally, the cookie consent text retrieval function has been simplified to ensure clearer language and compliance with privacy regulations. These changes collectively enhance the user experience and maintainability of the cookie consent system. --- css/style.css | 26 +++++++++++++++++++++ images/cookie.svg | 2 +- inc_footer.php | 46 ++++++++++++++++++++++++++++---------- php/inc_cookie_consent.php | 17 ++++---------- 4 files changed, 65 insertions(+), 26 deletions(-) diff --git a/css/style.css b/css/style.css index 988864e..2cc360a 100644 --- a/css/style.css +++ b/css/style.css @@ -165,6 +165,32 @@ footer i { margin: 10px 0 10px 5px; } +footer .social a.cookie-manage-link { + color: #fff; + text-decoration: none; +} + +footer .social a.cookie-manage-link:hover { + color: #f3954a; +} + +footer .social a.cookie-manage-link .cookie-manage-icon { + font-size: 35px; + line-height: 1; + width: 1em; + height: 1em; + display: inline-block; + vertical-align: middle; + font-style: normal; +} + +footer .social a.cookie-manage-link .cookie-manage-icon svg { + display: block; + width: 1em; + height: 1em; + fill: currentColor; +} + /* TITRES */ h1 {color: #262d35; text-transform: uppercase; margin-bottom: 10px; margin-top:20px;} diff --git a/images/cookie.svg b/images/cookie.svg index 413c999..c7918de 100644 --- a/images/cookie.svg +++ b/images/cookie.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/inc_footer.php b/inc_footer.php index e9a2553..8dcc5c0 100644 --- a/inc_footer.php +++ b/inc_footer.php @@ -114,7 +114,14 @@ if (isset($tabEvenement) && $tabEvenement['general']['eve_commanditaires'] == "1
- <?php echo ($strLangue === 'fr') ? 'Gérer les témoins' : 'Manage cookies'; ?> + + + +
@@ -167,6 +174,32 @@ if (isset($tabEvenement) && $tabEvenement['general']['eve_commanditaires'] == "1