From f5a68d6d4381cbc555cb1c0e624ec3cda894c118 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Mon, 8 Apr 2019 10:18:28 +0200 Subject: [PATCH] [9.0.17] new option version footer --- CHANGES.md | 2 +- core/core.php | 11 ++++++++--- core/module/config/config.php | 3 ++- core/module/config/view/index/index.php | 4 ++++ 4 files changed, 15 insertions(+), 5 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index a65b7e46..373a4e14 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -9,7 +9,7 @@ - Ajustement CSS du pied de page - Harmonisation du contenu des bulles d'aide - Modification : - - Ajout du numéro de version dans le pied de page + - Ajout du numéro de version dans le pied de page activable dans la configuration - Désactivation Aviary dans Responsive FileManager ## Version 9.0.16 diff --git a/core/core.php b/core/core.php index 98a9c74e..55211a4a 100644 --- a/core/core.php +++ b/core/core.php @@ -1705,13 +1705,18 @@ class layout extends common { - /** +/** * Affiche le copyright */ public function showCopyright() { $items = '
'; - $items .= 'Motorisé par Zwii ' . common::ZWII_VERSION . ' '; - $items .= ' | Plan du site'; + $items .= 'Motorisé par Zwii'; + if ($this->getData(['config','displayVersion']) === TRUE) { + $items .= ' ' . common::ZWII_VERSION ; + } + $items .= ''; + + $items .= ' | Plan du site'; if( ( $this->getData(['theme', 'footer', 'loginLink']) diff --git a/core/module/config/config.php b/core/module/config/config.php index 9aee9052..90501e30 100755 --- a/core/module/config/config.php +++ b/core/module/config/config.php @@ -223,7 +223,8 @@ class config extends common { ], 'timezone' => $this->getInput('configTimezone', helper::FILTER_STRING_SHORT, true), 'title' => $this->getInput('configTitle', helper::FILTER_STRING_SHORT, true), - 'itemsperPage' => $this->getInput('itemsperPage', helper::FILTER_INT,true) + 'itemsperPage' => $this->getInput('itemsperPage', helper::FILTER_INT,true), + 'displayVersion' => $this->getInput('configDisplayVersion', helper::FILTER_BOOLEAN) ] ]); if(self::$inputNotices === []) { diff --git a/core/module/config/view/index/index.php b/core/module/config/view/index/index.php index 8687b6b5..ad716ae9 100755 --- a/core/module/config/view/index/index.php +++ b/core/module/config/view/index/index.php @@ -176,6 +176,10 @@ 'label' => 'Fuseau horaire', 'selected' => $this->getData(['config', 'timezone']) ]); ?> + $this->getData(['config', 'displayVersion']), + 'help' => 'Afficher le numéro de version dans le pied de page.' + ]); ?> $this->getData(['config', 'maintenance']), 'help' => 'Le site devient inaccessible sauf pour les administrateurs.'