From 5f9856defe7688b770cee31abaa01650e7e6cd2d Mon Sep 17 00:00:00 2001 From: fredtempez Date: Wed, 16 Jan 2019 20:30:30 +0100 Subject: [PATCH] =?UTF-8?q?Probl=C3=A8me=20dans=20la=20pr=C3=A9senation=20?= =?UTF-8?q?des=20tableaux=20en=20mono=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/layout/main.php | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) 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'