From 050d646a5004c213f3ea482dd0969ef95a47f682 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Tue, 4 Feb 2020 16:51:28 +0100 Subject: [PATCH] =?UTF-8?q?[9.2.18]=20Pied=20de=20page=20-=20options=20des?= =?UTF-8?q?=20mentions=20l=C3=A9gales?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGES.md | 1 + core/module/config/config.php | 5 ----- core/module/theme/view/footer/footer.php | 4 +++- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 5b37d01e..aab754ca 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -8,6 +8,7 @@ - Image du fond (body), options responsive cover et contain. - Réseaux sociaux, icône Youtube chaîne ou utilisateur. - Pied de page, position fixe dans le site. + - Pied de page, option d'affichage des mentions légales disponible uniquement si une page est sélectionnée. ## version 9.2.17 - Correction : diff --git a/core/module/config/config.php b/core/module/config/config.php index eeea656c..17462a68 100755 --- a/core/module/config/config.php +++ b/core/module/config/config.php @@ -279,11 +279,6 @@ class config extends common { public function index() { // Soumission du formulaire if($this->isPost()) { - if ($this->getInput('configLegalCheck', helper::FILTER_BOOLEAN) === true ) { - $legalPageId = $this->getInput('configLegalPageId', helper::FILTER_ID); - } else { - $legalPageId = ''; - } $this->setData([ 'config', [ diff --git a/core/module/theme/view/footer/footer.php b/core/module/theme/view/footer/footer.php index 59336e94..839389a1 100755 --- a/core/module/theme/view/footer/footer.php +++ b/core/module/theme/view/footer/footer.php @@ -52,7 +52,9 @@
$this->getData(['config', 'legalPageId']) === '' ? false : $this->getData(['theme', 'footer', 'displayLegal']), + 'checked' => (bool) empty($this->getData(['config', 'legalPageId'])) ? false : $this->getData(['theme', 'footer', 'displayLegal']), + 'disabled' => (bool) empty($this->getData(['config', 'legalPageId'])) ? true : false, + 'help' => (bool) empty($this->getData(['config', 'legalPageId'])) ? 'Pour activer cette option, sélectionnez la page contenant les mentions légales dans la gestion du site' : '' ]); ?>