diff --git a/core/core.php b/core/core.php index 4c983266..d6f40cb5 100644 --- a/core/core.php +++ b/core/core.php @@ -1888,24 +1888,27 @@ class layout extends common { * Affiche le copyright */ public function showCopyright() { + // Bloc copyright $items = '
'; $items .= ''; - $items .= ''; - if ($this->getData(['theme','footer','displayCopyright']) === true) { - $items .= 'Motorisé par '; - } - $items .= 'ZwiiCMS'; - //$items .= ''; - $items .= ''; - if ($this->getData(['theme','footer','displayVersion']) === true ) { - $items .= ' '. common::ZWII_VERSION ; - } + // Affichage de motorisé par + $items .= 'getData(['theme','footer','displayCopyright']) === false ? 'class="displayNone"' : ''; + $items .= '>Motorisé par '; + // Toujours affiche le nom du CMS + $items .= ''; + $items .= 'ZwiiCMS'; + $items .= ''; + // Affichage du numéro de version + $items .= 'getData(['theme','footer','displayVersion']) === false ? 'class="displayNone"' : ''; + $items .= '> '. common::ZWII_VERSION ; + $items .= ''; + // Afifchage du lien de connexion + $items .= 'getData(['theme','footer','displaySiteMap']) === false? 'class="displayNone"' : ''; + $items .= '> | Plan du site'; $items .= ''; - $items .= ''; - if ($this->getData(['theme','footer','displaySiteMap']) === true ) { - $items .= ' | Plan du site'; - } if( ( $this->getData(['theme', 'footer', 'loginLink']) @@ -1918,7 +1921,8 @@ class layout extends common { '> | Connexion'; - } + } + // Fermeture du bloc copyright $items .= '
'; echo $items; }