diff --git a/core/core.php b/core/core.php index 07767582..8b8e78d8 100644 --- a/core/core.php +++ b/core/core.php @@ -1817,18 +1817,43 @@ class layout extends common { /** * Affiche le contenu de la barre gauche - * @param page chargée + * */ public function showBarContentLeft() { - echo $this->core->output['contentLeft']; + // Détermine si le menu est présent + if ($this->getData(['page',$this->getData(['page',$this->getUrl(0),'barLeft']),'displayMenu']) === 'none') { + // Pas de menu + echo $this->core->output['contentLeft']; + } else { + // $mark contient 0 le menu est positionné à la fin du contenu + $contentLeft = $this->core->output['contentLeft']; + $mark = strrpos($contentLeft,'[]') !== false ? strrpos($contentLeft,'[]') : strlen($contentLeft); + echo substr($contentLeft,0,$mark); + echo '
'; + echo substr($contentRight,$mark+2,strlen($contentRight)); + } } /** diff --git a/core/layout/main.php b/core/layout/main.php index 8c2f0627..fc1d5fc4 100755 --- a/core/layout/main.php +++ b/core/layout/main.php @@ -169,19 +169,7 @@