From ca411cf9a123060dc7b5846e10e2d51f6f5557ad Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Mon, 2 Nov 2020 12:11:59 +0100 Subject: [PATCH] =?UTF-8?q?bug=20classe=20active=20dans=20menu=20lat=C3=A9?= =?UTF-8?q?ral?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/core.php b/core/core.php index 44d622bf..a5808573 100644 --- a/core/core.php +++ b/core/core.php @@ -2530,7 +2530,7 @@ class layout extends common { continue; } // Propriétés de l'item - $active = ($parentPageId === $currentPageId OR in_array($currentPageId, $childrenPageIds)) ? 'active ' : ''; + $active = ($parentPageId === $currentPageId OR in_array($currentPageId, $childrenPageIds)) ? ' class="active"' : ''; $targetBlank = $this->getData(['page', $parentPageId, 'targetBlank']) ? ' target="_blank"' : ''; // Mise en page de l'item; // Ne pas afficher le parent d'une sous-page quand l'option est sélectionnée. @@ -2540,7 +2540,7 @@ class layout extends common { AND $this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD') ) { $items .= ''; } else { - $items .= ''; + $items .= ''; } $items .= $this->getData(['page', $parentPageId, 'title']); $items .= ''; @@ -2553,7 +2553,7 @@ class layout extends common { } // Propriétés de l'item - $active = ($childKey === $currentPageId) ? 'active ' : ''; + $active = ($childKey === $currentPageId) ? ' class="active"' : ''; $targetBlank = $this->getData(['page', $childKey, 'targetBlank']) ? ' target="_blank"' : ''; // Mise en page du sous-item $itemsChildren .= '