diff --git a/core/layout/common.css b/core/layout/common.css index 254fd481..64ae620d 100755 --- a/core/layout/common.css +++ b/core/layout/common.css @@ -563,9 +563,11 @@ ul .menuSideChild, li .menuSideChild { section { min-height: 450px; } + section #sectionTitle { margin-top: 0; } + .userLogin, .updateForm { min-height: 0px; } @@ -598,6 +600,16 @@ footer { margin: 0; } +.footerbodyFixed { + position: fixed; + bottom: 0; + left: 0; + width: 100%; + z-index:50; + background-color: inherit; + padding: inherit; +} + #footersiteRight, #footersiteLeft, #footersiteCenter, #footerbodyRight, #footerbodyLeft, #footerbodyCenter { vertical-align: middle; diff --git a/core/layout/main.php b/core/layout/main.php index 79f0e187..e233d7e7 100755 --- a/core/layout/main.php +++ b/core/layout/main.php @@ -212,7 +212,10 @@ ) ) { $position = 'site'; } else { $position = 'body'; - echo ''; + if ( $this->getData(['theme', 'footer', 'fixed']) === true) { + $positionFixed = 'footerbodyFixed'; + } + echo ''; } ?> @@ -221,7 +224,7 @@ if ($position === 'site'): ?>
-
+
getData(['theme', 'footer', 'template'])) { diff --git a/core/module/theme/theme.php b/core/module/theme/theme.php index fbfd68ad..67f5594b 100755 --- a/core/module/theme/theme.php +++ b/core/module/theme/theme.php @@ -317,6 +317,7 @@ class theme extends common { 'loginLink' => $this->getInput('themeFooterLoginLink'), 'margin' => $this->getInput('themeFooterMargin', helper::FILTER_BOOLEAN), 'position' => $this->getInput('themeFooterPosition'), + 'fixed' => $this->getInput('themeFooterFixed', helper::FILTER_BOOLEAN), 'socialsAlign' => $this->getInput('themeFooterSocialsAlign'), 'text' => $this->getInput('themeFooterText', null), 'textAlign' => $this->getInput('themeFooterTextAlign'), diff --git a/core/module/theme/view/footer/footer.js.php b/core/module/theme/view/footer/footer.js.php index 759d23fb..efae4905 100755 --- a/core/module/theme/view/footer/footer.js.php +++ b/core/module/theme/view/footer/footer.js.php @@ -207,7 +207,17 @@ $("#themeFooterCopyrightPosition").on("change", function() { } } }).trigger("change"); - +// Affiche / Cache les options du footer fixe +$("#themeFooterPosition").on("change", function() { + if($(this).val() === 'body') { + $("#themeFooterPositionFixed").slideDown(); + } + else { + $("#themeFooterPositionFixed").slideUp(function() { + $("#themeFooterPositionFixed").prop("checked", false).trigger("change"); + }); + } +}).trigger("change"); // Lien de connexion $("#themeFooterLoginLink").on("change", function() { diff --git a/core/module/theme/view/footer/footer.php b/core/module/theme/view/footer/footer.php index aa4795d8..59336e94 100755 --- a/core/module/theme/view/footer/footer.php +++ b/core/module/theme/view/footer/footer.php @@ -196,7 +196,14 @@ 'checked' => $this->getData(['theme', 'footer', 'margin']) ]); ?>
-
+
+
+
+ $this->getData(['theme', 'footer', 'fixed']) + ]); ?> +
+
diff --git a/core/module/theme/view/index/index.css b/core/module/theme/view/index/index.css index 80115822..e0ceb6a5 100755 --- a/core/module/theme/view/index/index.css +++ b/core/module/theme/view/index/index.css @@ -19,6 +19,10 @@ footer { position: relative; z-index: 10; } +.footerbodyFixed { + position: relative; + z-index: 5; +} nav li ul { display: none; }