From 0951382c406ac569c21a78b664d2fdedd294afcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tempez?= Date: Fri, 18 Feb 2022 13:25:30 +0100 Subject: [PATCH] extra position --- core/core.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/core/core.php b/core/core.php index ecf9950c..82985e9a 100644 --- a/core/core.php +++ b/core/core.php @@ -1678,7 +1678,14 @@ class common { $itemsLeft = ''; $currentPageId = $this->getData(['page', $this->getUrl(0)]) ? $this->getUrl(0) : $this->getUrl(2); foreach($this->getHierarchy() as $parentPageId => $childrenPageIds) { - // Passer les entrées masquées + // Menu extra ou standard + if ( + // Absence de la position extra, la page est toujours affichée à gauche. + ($this->getData(['page',$parentPageId,'extraPosition']) !== NULL || $extra === true) + && + $this->getData(['page',$parentPageId,'extraPosition']) !== $extra ) { + continue; + } // Propriétés de l'item $active = ($parentPageId === $currentPageId OR in_array($currentPageId, $childrenPageIds)) ? 'active ' : ''; $targetBlank = $this->getData(['page', $parentPageId, 'targetBlank']) ? ' target="_blank"' : '';