From 5c94a306831dc629dfeabed57223d55a04d2ffc2 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Mon, 15 Jul 2019 12:27:41 +0200 Subject: [PATCH] =?UTF-8?q?[9.2.01]=20M=C3=A9thode=20de=20positionnement?= =?UTF-8?q?=20des=20marges?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core.php | 8 ++++++-- core/module/theme/theme.php | 6 +++--- core/module/theme/view/footer/footer.js.php | 9 +++++---- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/core/core.php b/core/core.php index 2d096cea..b47d470c 100644 --- a/core/core.php +++ b/core/core.php @@ -1107,9 +1107,13 @@ class core extends common { $css .= 'footer span{color:' . $this->getData(['theme', 'footer', 'textColor']) . ';font-family:"' . str_replace('+', ' ', $this->getData(['theme', 'footer', 'font'])) . '",sans-serif;font-weight:' . $this->getData(['theme', 'footer', 'fontWeight']) . ';font-size:' . $this->getData(['theme', 'footer', 'fontSize']) . ';text-transform:' . $this->getData(['theme', 'footer', 'textTransform']) . '}'; $css .= 'footer{background-color:' . $colors['normal'] . ';color:' . $this->getData(['theme', 'footer', 'textColor']) . '}'; $css .= 'footer a{color:' . $this->getData(['theme', 'footer', 'textColor']) . '}'; - //$css .= 'footer .container > div {padding:' . $this->getData(['theme', 'footer', 'height']) . ' 0}'; + $css .= 'footer #footersite > div {margin:' . $this->getData(['theme', 'footer', 'height']) . ' 0}'; + $css .= 'footer #footerbody > div {margin:' . $this->getData(['theme', 'footer', 'height']) . ' 0}'; + $css .= "footer #footersite > div {padding:0}"; + $css .= "footer #footerbody > div {padding:0}"; $css .= '#footerFontText > p {margin-top: 0; margin-bottom: 0;}'; - $css .= '#footersiteLeft, #footersiteCenter, #footersiteRight {padding:' . $this->getData(['theme', 'footer', 'height']) . ' 0}'; + //$css .= '#footersiteLeft, #footersiteCenter, #footersiteRight {padding:' . $this->getData(['theme', 'footer', 'height']) . ' 0}'; + //$css .= '#footerbodyLeft, #footerbodyCenter, #footerbodyRight {padding:' . $this->getData(['theme', 'footer', 'height']) . ' 0}'; $css .= '#footerSocials{text-align:' . $this->getData(['theme', 'footer', 'socialsAlign']) . '}'; $css .= '#footerText{text-align:' . $this->getData(['theme', 'footer', 'textAlign']) . '}'; $css .= '#footerCopyright{text-align:' . $this->getData(['theme', 'footer', 'copyrightAlign']) . '}'; diff --git a/core/module/theme/theme.php b/core/module/theme/theme.php index a8c57491..6fc0e49d 100755 --- a/core/module/theme/theme.php +++ b/core/module/theme/theme.php @@ -92,9 +92,9 @@ class theme extends common { 'bold' => 'Gras' ]; public static $footerHeights = [ - '0px' => 'Nulles', - '5px' => 'Petites', - '10px' => 'Moyennes', + '5px' => 'Très petites', + '10px' => 'Petites', + '15px' => 'Moyennes', '20px' => 'Grandes' ]; public static $footerPositions = [ diff --git a/core/module/theme/view/footer/footer.js.php b/core/module/theme/view/footer/footer.js.php index f7d3f356..49ee65c2 100755 --- a/core/module/theme/view/footer/footer.js.php +++ b/core/module/theme/view/footer/footer.js.php @@ -25,10 +25,11 @@ $("input, select").on("change", function() { var css = "footer{background-color:" + colors.normal + ";color:" + textColor + "}"; css += "footer a{color:" + textColor + "}"; // Hauteur du pied de page - css += "#footersiteLeft, #footersiteCenter, #footersiteRight {margin:" + $("#themeFooterHeight").val() + " 0}"; - //css += "footer .container > div{padding:0}"; - //css += "footer .container-large > div{margin:" + $("#themeFooterHeight").val() + " 0}"; - //css += "footer .container-large > div{padding:0}"; + //css += "#footersiteLeft, #footersiteCenter, #footersiteRight, #footerbodyLeft, #footerbodyCenter, #footerbodyRight {margin:" + $("#themeFooterHeight").val() + " 0}"; + css += "footer #footersite > div{padding:0}"; + css += "footer #footersite > div{margin:" + $("#themeFooterHeight").val() + " 0}"; + css += "footer #footerbody > div{margin:" + $("#themeFooterHeight").val() + " 0}"; + css += "footer #footerbody > div{padding:0}"; // Alignement du contenu css += "#footerSocials{text-align:" + $("#themeFooterSocialsAlign").val() + "}"; css += "#footerText{text-align:" + $("#themeFooterTextAlign").val() + "}";