diff --git a/core/layout/main.php b/core/layout/main.php index ed82b794..a4265e1b 100755 --- a/core/layout/main.php +++ b/core/layout/main.php @@ -32,7 +32,6 @@ getData(['theme', 'header', 'position']) === 'body'): ?> - getData(['theme','header','linkHome'])){ echo "" ;} ?> @@ -116,14 +115,14 @@ getData(['page',$this->getUrl(0),'blocks'])); // Initialiser $blockleft=$blockright=""; switch (sizeof($blocks)) { case 1 : // une colonne - $content = 'col'. $blocks[0] ; + $content = 'col'. $blocks[0] ; break; case 2 : // 2 blocks if ($blocks[0] < $blocks[1]) { // détermine la position de la colonne @@ -138,15 +137,19 @@ $blockleft = 'col' . $blocks[0]; $content = 'col' . $blocks[1]; $blockright = 'col' . $blocks[2]; - } - ?> -
+ } + + if (sizeof($blocks) === 1 ) { + ?>
showContent();?>
-
getData(['page','blockLeft','content']);?>
-
showContent(); ?>
-
getData(['page','blockRight','content']);?>
-
-
+
getData(['page','blockLeft','content']);?>
+
showContent(); ?>
+
getData(['page','blockRight','content']);?>
+ + + getData(['theme', 'footer', 'position']) === 'site'