[9.2.18] élargir la marge inférieure du site quand le footer est fixe

This commit is contained in:
Fred Tempez 2020-02-04 09:37:32 +01:00
parent bf9709a4f2
commit c22ef52521
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}