From de791a977abcb1f50cd246c6911109aeb2e9746e Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Tue, 4 Feb 2020 13:17:38 +0100 Subject: [PATCH] [9.2.17] Petites corrections --- core/core.php | 3 ++- core/module/theme/view/footer/footer.js.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/core.php b/core/core.php index ae879af0..07f192ed 100644 --- a/core/core.php +++ b/core/core.php @@ -1215,7 +1215,8 @@ class core extends common { $css .= '#footerText > p {text-align:' . $this->getData(['theme', 'footer', 'textAlign']) . '}'; $css .= '#footerCopyright{text-align:' . $this->getData(['theme', 'footer', 'copyrightAlign']) . '}'; // Marge supplémentaire lorsque le pied de page est fixe - if ( $this->getData(['theme', 'footer', 'fixed']) === true) { + if ( $this->getData(['theme', 'footer', 'fixed']) === true && + $this->getData(['theme', 'footer', 'position']) === 'body') { $css .= "@media (min-width: 769px) { #site {margin-bottom: 100px;} }"; $css .= "@media (max-width: 768px) { #site {margin-bottom: 150px;} }"; } diff --git a/core/module/theme/view/footer/footer.js.php b/core/module/theme/view/footer/footer.js.php index efae4905..22d07823 100755 --- a/core/module/theme/view/footer/footer.js.php +++ b/core/module/theme/view/footer/footer.js.php @@ -214,7 +214,7 @@ $("#themeFooterPosition").on("change", function() { } else { $("#themeFooterPositionFixed").slideUp(function() { - $("#themeFooterPositionFixed").prop("checked", false).trigger("change"); + $("#themeFooterFixed").prop("checked", false).trigger("change"); }); } }).trigger("change");