From c22ef52521deccc3707baf98cebcbd8f79d6ec4b Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Tue, 4 Feb 2020 09:37:32 +0100 Subject: [PATCH] =?UTF-8?q?[9.2.18]=20=C3=A9largir=20la=20marge=20inf?= =?UTF-8?q?=C3=A9rieure=20du=20site=20quand=20le=20footer=20est=20fixe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/core.php b/core/core.php index d928b964..4fdff449 100644 --- a/core/core.php +++ b/core/core.php @@ -1214,6 +1214,10 @@ class core extends common { $css .= '#footerSocials{text-align:' . $this->getData(['theme', 'footer', 'socialsAlign']) . '}'; $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) { + $css .= "#site {margin-bottom: 150px;}"; + } // Enregistre la personnalisation file_put_contents(self::DATA_DIR.'theme.css', $css); }