diff --git a/CHANGES.md b/CHANGES.md index 9b27808..7db88a9 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -5,6 +5,7 @@ - Thème / bannière : nouvelle option : une bannière animée avec Swiper, - Configuration / connexion : nouvelle option permettant de dévoiler le mot de passe, - Corrections : + - Theme / footer : sélection du template sur une colonne et différents aperçus. ## Version 4.4.02 de Deltacms - Modifications : diff --git a/core/core.php b/core/core.php index b864bac..7c6e0cc 100644 --- a/core/core.php +++ b/core/core.php @@ -120,8 +120,7 @@ class common { 'tippy', 'zwiico', 'imagemap', - 'simplelightbox', - 'swiper' + 'simplelightbox' ], 'view' => '' ]; @@ -1419,21 +1418,26 @@ class common { * Affiche les blocs */ echo '
'; echo ' '; echo ' '; + + if($this->getData(['theme', 'footer', 'textPosition']) === 'hide') { $this->showFooterText(false); } + if($this->getData(['theme', 'footer', 'socialsPosition']) === 'hide') { $this->showSocials(false); } + if($this->getData(['theme', 'footer', 'copyrightPosition']) === 'hide') { $this->showCopyright(false); } + // Fermeture du contenaire echo ''; echo ''; @@ -1442,18 +1446,22 @@ class common { /** * Affiche le texte du footer */ - private function showFooterText() { + private function showFooterText($visibility) { if($footerText = $this->getData(['theme', 'footer', 'text']) OR $this->getUrl(0) === 'theme') { - echo ' '; + $style = ''; + if( $visibility === false ) $style = 'style="display: none;"'; + echo ' '; } } /** * Affiche le copyright */ - private function showCopyright() { + private function showCopyright($visibility) { + $style = ''; + if( $visibility === false ) $style = 'style="display: none;"'; // Ouverture Bloc copyright - $items = '