From 37a2320bb9f076cb114fba6b3a5fb37c5009eb52 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Tue, 25 Jun 2019 19:57:10 +0200 Subject: [PATCH] [9.2.00.dev] supp option masquage menu horizontal --- core/core.php | 14 ++----------- core/module/page/view/edit/edit.js.php | 27 -------------------------- core/module/page/view/edit/edit.php | 15 +++----------- 3 files changed, 5 insertions(+), 51 deletions(-) diff --git a/core/core.php b/core/core.php index 9da9abf8..a1bc59ad 100644 --- a/core/core.php +++ b/core/core.php @@ -2060,10 +2060,7 @@ class layout extends common { $items = ''; $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 - if ($this->getData(['page',$parentPageId,'hideMenuHead']) === true ) { - continue; - } + // Passer les entrées masquées // Propriétés de l'item $active = ($parentPageId === $currentPageId OR in_array($currentPageId, $childrenPageIds)) ? ' class="active"' : ''; $targetBlank = $this->getData(['page', $parentPageId, 'targetBlank']) ? ' target="_blank"' : ''; @@ -2107,9 +2104,6 @@ class layout extends common { $disableChild = 0; foreach($childrenPageIds as $childKey) { $totalChild += 1; - if ($this->getData(['page',$childKey,'hideMenuHead']) === true ) { - $disableChild += 1; - } } if($childrenPageIds && $disableChild !== $totalChild && $this->getdata(['page',$parentPageId,'hideMenuChildren']) === false) { @@ -2122,11 +2116,7 @@ class layout extends common { continue; } $items .= '