From 1481cc5aca3276111c882b6f130dc477f1d9cae6 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Fri, 4 Jan 2019 22:08:18 +0100 Subject: [PATCH] =?UTF-8?q?filtrage=20bloc=20dans=20les=20page=20=C3=A0=20?= =?UTF-8?q?=C3=A9diter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/core/core.php b/core/core.php index 3ce62f5d..3d8958dc 100644 --- a/core/core.php +++ b/core/core.php @@ -178,7 +178,7 @@ class common { 'title' => 'Contact' ], 'blockRight' => [ - 'typeMenu' => 'text', + 'typeMenu' => '', 'iconUrl' => '', 'disable' => false, 'content' => '

Bloc à droite du site

', @@ -194,7 +194,7 @@ class common { 'title' => 'blockRight' ], 'blockLeft' => [ - 'typeMenu' => 'text', + 'typeMenu' => '', 'iconUrl' => '', 'disable' => false, 'content' => '

Bloc à gauche du site

', @@ -2032,8 +2032,6 @@ class layout extends common { $targetBlank = $this->getData(['page', $childKey, 'targetBlank']) ? ' target="_blank"' : ''; // Mise en page du sous-item - // Menu Image - if ( $this->getData(['page',$childKey,'disable']) === true AND $this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD') ) @@ -2166,15 +2164,15 @@ class layout extends common { $leftItems .= ''; $currentPageId = $this->getData(['page', $this->getUrl(0)]) ? $this->getUrl(0) : $this->getUrl(2); foreach($this->getHierarchy(null, false) as $parentPageId => $childrenPageIds) { - if ($this->getData(['page', $parentPageId]) === 'blockLeft' - OR $this->getData(['page', $parentPageId]) === 'blockRight') { continue; } + if ($parentPageId === 'blockLeft' + OR $parentPageId === 'blockRight') { continue; } $leftItems .= ''; foreach($childrenPageIds as $childKey) { $leftItems .= ''; } } $leftItems .= ''; - $leftItems .= ''; + $leftItems .= ''; $leftItems .= ''; $leftItems .= '
  • ' . template::ico('plus') . '
  • '; if(