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 @@
- showBarContentLeft(); - // Type de menu affiché - // 0 : aucun - // 1 : menu complet - // 2 : sous-menu de la page parente - if ($this->getData(['page',$this->getData(['page',$this->getUrl(0),'barLeft']),'displayMenu']) !== 'none') { - ?> + showBarContentLeft(); ?>
- showBarContentRight(); - // Type de menu affiché - // 0 : aucun - // 1 : menu complet - // 2 : sous-menu de la page parente - if ($this->getData(['page',$this->getData(['page',$this->getUrl(0),'barRight']),'displayMenu']) !== 'none') { - ?> + showBarContentRight(); ?>
diff --git a/sitemap.xml.gz b/sitemap.xml.gz new file mode 100644 index 00000000..e6f652bb Binary files /dev/null and b/sitemap.xml.gz differ