diff --git a/CHANGES.md b/CHANGES.md index daa7b907..6c65cd8c 100755 --- a/CHANGES.md +++ b/CHANGES.md @@ -19,6 +19,7 @@ - Choix d'un thème à l'installation. - Livraison de quelques thèmes. - Pied de page, sélection directe d'une page spéciale sans passer par la configuration du site. + - Bannière, masquage de la bannière sur les écrans inférieurs à 768px. - Configuration avancée / journalisation : une nouvelle option de mise en conformité avec la règlementation française qui impose de tronquer les adresses IP enregistrées dans les journaux. 4 options sont proposées : pas de troncage, troncages niveaux 1, 2 et 3. - Module galerie version 3.3, modification de l’initialisation du module. - URL intelligentes, ajout de la redirection vers le protocole HTTPS pour éviter les problèmes d'affichage de la barre d'administration. diff --git a/core/layout/common.css b/core/layout/common.css index 93f5547f..bd6e8b5d 100755 --- a/core/layout/common.css +++ b/core/layout/common.css @@ -1723,7 +1723,7 @@ th.col12 { /* Bannière masquable en petit écran*/ @media screen and (max-width: 768px) { - .smallDisplayNone{ + .bannerDisplay{ display : none; } } diff --git a/core/layout/main.php b/core/layout/main.php index d163f4ee..32f18d6a 100644 --- a/core/layout/main.php +++ b/core/layout/main.php @@ -57,7 +57,7 @@ getData(['theme', 'header', 'position']) === 'body'): ?> -
getData(['theme', 'header', 'smallDisplayHidden']) === true): ?>class="smallDisplayNone"> +
getData(['theme', 'header', 'tinyHidden']) === true): ?>class="bannerDisplay"> showi18n();?> getData(['theme','header','linkHomePage'])){ @@ -116,7 +116,7 @@ if ($this->getData(['theme','header','linkHomePage'])){ echo "" ;} ?>
getData(['theme', 'header', 'position']) === 'hide'): ?>class="displayNone"getData(['theme', 'header', 'smallDisplayHidden']) === true): ?>class="smallDisplayNone"getData(['theme', 'header', 'tinyHidden']) === true): ?>class="bannerDisplay">
false, 'textTransform' => 'none', 'linkHomePage' => true, - 'imageContainer' => 'auto' + 'imageContainer' => 'auto', + 'tinyHidden' => true ], 'menu' => [ 'backgroundColor' => 'rgba(32, 59, 82, 1)', diff --git a/core/module/theme/theme.php b/core/module/theme/theme.php index f895d298..aaf62af8 100644 --- a/core/module/theme/theme.php +++ b/core/module/theme/theme.php @@ -441,7 +441,7 @@ class theme extends common { 'textTransform' => $this->getInput('themeHeaderTextTransform'), 'linkHomePage' => $this->getInput('themeHeaderlinkHomePage',helper::FILTER_BOOLEAN), 'imageContainer' => $this->getInput('themeHeaderImageContainer'), - 'smallDisplayHidden' => $this->getInput('themeHeaderSmallDisplayHidden', helper::FILTER_BOOLEAN) + 'tinyHidden' => $this->getInput('themeHeaderTinyHidden', helper::FILTER_BOOLEAN) ]]); // Modification de la position du menu selon la position de la bannière if ( $this->getData(['theme','header','position']) == 'site' ) diff --git a/core/module/theme/view/header/header.php b/core/module/theme/view/header/header.php index 0c7850f5..da985e0c 100644 --- a/core/module/theme/view/header/header.php +++ b/core/module/theme/view/header/header.php @@ -125,15 +125,21 @@
-
- $this->getData(['theme', 'header', 'margin']) - ]); ?> -
-
- $this->getData(['theme', 'header', 'smallDisplayHidden']) - ]); ?> +
+
+
+ $this->getData(['theme', 'header', 'tinyHidden']) + ]); ?> +
+
+
+
+ $this->getData(['theme', 'header', 'margin']) + ]); ?> +
+