From 99fa0b0b91a4db656ce1301d495968bb0a5a1db7 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Tue, 5 Mar 2019 14:14:40 +0100 Subject: [PATCH] [9.0.01] hauteur du footer hors site --- core/core.php | 1 + core/module/theme/theme.php | 8 ++++---- core/module/theme/view/footer/footer.js.php | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/core/core.php b/core/core.php index 6c68fe3f..c839cf0b 100644 --- a/core/core.php +++ b/core/core.php @@ -1266,6 +1266,7 @@ class core extends common { $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{margin:' . $this->getData(['theme', 'footer', 'height']) . ' 0}'; + $css .= 'footer .container-large > div{margin:' . $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 2a9c36c0..edc28695 100755 --- a/core/module/theme/theme.php +++ b/core/module/theme/theme.php @@ -79,10 +79,10 @@ class theme extends common { ]; public static $footerHeights = [ '0px' => 'Très petite', - '5px' => 'Petite', - '10px' => 'Moyenne', - '15px' => 'Grande', - '20px' => 'Très grande' + '10px' => 'Petite', + '20px' => 'Moyenne', + '35px' => 'Grande', + '40px' => 'Très grande' ]; public static $footerPositions = [ 'hide' => 'Cachée', diff --git a/core/module/theme/view/footer/footer.js.php b/core/module/theme/view/footer/footer.js.php index 1479bc47..4b837cbf 100755 --- a/core/module/theme/view/footer/footer.js.php +++ b/core/module/theme/view/footer/footer.js.php @@ -22,9 +22,9 @@ $("input, select").on("change", function() { css += "footer a{color:" + textColor + "}"; // Hauteur du pied de page css += "footer .container > div{margin:" + $("#themeFooterHeight").val() + " 0}"; - css += "footer .container > div{padding:0}"; + //css += "footer .container > div{padding:0}"; css += "footer .container-large > div{margin:" + $("#themeFooterHeight").val() + " 0}"; - css += "footer .container-large > div{padding:0}"; + //css += "footer .container-large > div{padding:0}"; // Alignement du contenu css += "#footerSocials{text-align:" + $("#themeFooterSocialsAlign").val() + "}"; css += "#footerText{text-align:" + $("#themeFooterTextAlign").val() + "}";