From aa46570acb512bf0928df15c3ce4df71ae67872c Mon Sep 17 00:00:00 2001 From: fredtempez Date: Fri, 3 May 2019 15:28:04 +0200 Subject: [PATCH] barre_menu_position --- core/core.php | 18 +++++++++++++++++- core/layout/main.php | 22 ++++------------------ 2 files changed, 21 insertions(+), 19 deletions(-) diff --git a/core/core.php b/core/core.php index c6538433..72cbcb12 100644 --- a/core/core.php +++ b/core/core.php @@ -1820,7 +1820,23 @@ class layout extends common { * @param page chargée */ public function showBarContentLeft() { - echo $this->core->output['contentLeft']; + // Position du marqueur + + if ($this->getData(['page',$this->getData(['page',$this->getUrl(0),'barLeft']),'displayMenu']) === 'none') { + // Pas de menu + echo $this->core->output['contentLeft']; + } else { + // On recherche la position du menu + $mark = strpos('[]',$this->core->output['contentLeft']); + // pas de marqueur menu après le texte + if ($mark === 0 ) { + echo $this->core->output['contentLeft']; + echo '