Defaultdata + var name + layout header setup

This commit is contained in:
Fred Tempez 2021-10-24 16:43:47 +02:00
parent 90c422ed54
commit d8cb766519
6 changed files with 22 additions and 14 deletions

View File

@ -19,6 +19,7 @@
- Choix d'un thème à l'installation. - Choix d'un thème à l'installation.
- Livraison de quelques thèmes. - Livraison de quelques thèmes.
- Pied de page, sélection directe d'une page spéciale sans passer par la configuration du site. - 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. - 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 linitialisation du module. - Module galerie version 3.3, modification de linitialisation du module.
- URL intelligentes, ajout de la redirection vers le protocole HTTPS pour éviter les problèmes d'affichage de la barre d'administration. - URL intelligentes, ajout de la redirection vers le protocole HTTPS pour éviter les problèmes d'affichage de la barre d'administration.

View File

@ -1723,7 +1723,7 @@ th.col12 {
/* Bannière masquable en petit écran*/ /* Bannière masquable en petit écran*/
@media screen and (max-width: 768px) { @media screen and (max-width: 768px) {
.smallDisplayNone{ .bannerDisplay{
display : none; display : none;
} }
} }

View File

@ -57,7 +57,7 @@
<?php endif; ?> <?php endif; ?>
<?php if($this->getData(['theme', 'header', 'position']) === 'body'): ?> <?php if($this->getData(['theme', 'header', 'position']) === 'body'): ?>
<!-- Bannière dans le fond du site --> <!-- Bannière dans le fond du site -->
<header <?php if($this->getData(['theme', 'header', 'smallDisplayHidden']) === true): ?>class="smallDisplayNone"<?php endif;?>> <header <?php if($this->getData(['theme', 'header', 'tinyHidden']) === true): ?>class="bannerDisplay"<?php endif;?>>
<?php //$this->showi18n();?> <?php //$this->showi18n();?>
<?php <?php
if ($this->getData(['theme','header','linkHomePage'])){ if ($this->getData(['theme','header','linkHomePage'])){
@ -116,7 +116,7 @@
if ($this->getData(['theme','header','linkHomePage'])){ if ($this->getData(['theme','header','linkHomePage'])){
echo "<a href='" . helper::baseUrl(false) . "'>" ;} ?> echo "<a href='" . helper::baseUrl(false) . "'>" ;} ?>
<header <?php if($this->getData(['theme', 'header', 'position']) === 'hide'): ?>class="displayNone"<?php endif; <header <?php if($this->getData(['theme', 'header', 'position']) === 'hide'): ?>class="displayNone"<?php endif;
if($this->getData(['theme', 'header', 'smallDisplayHidden']) === true): ?>class="smallDisplayNone"<?php endif; if($this->getData(['theme', 'header', 'tinyHidden']) === true): ?>class="bannerDisplay"<?php endif;
?>> ?>>
<div id="headerContainer" class="container"> <div id="headerContainer" class="container">
<?php if( <?php if(

View File

@ -154,7 +154,8 @@ class init extends common {
'textHide' => false, 'textHide' => false,
'textTransform' => 'none', 'textTransform' => 'none',
'linkHomePage' => true, 'linkHomePage' => true,
'imageContainer' => 'auto' 'imageContainer' => 'auto',
'tinyHidden' => true
], ],
'menu' => [ 'menu' => [
'backgroundColor' => 'rgba(32, 59, 82, 1)', 'backgroundColor' => 'rgba(32, 59, 82, 1)',

View File

@ -441,7 +441,7 @@ class theme extends common {
'textTransform' => $this->getInput('themeHeaderTextTransform'), 'textTransform' => $this->getInput('themeHeaderTextTransform'),
'linkHomePage' => $this->getInput('themeHeaderlinkHomePage',helper::FILTER_BOOLEAN), 'linkHomePage' => $this->getInput('themeHeaderlinkHomePage',helper::FILTER_BOOLEAN),
'imageContainer' => $this->getInput('themeHeaderImageContainer'), '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 // Modification de la position du menu selon la position de la bannière
if ( $this->getData(['theme','header','position']) == 'site' ) if ( $this->getData(['theme','header','position']) == 'site' )

View File

@ -125,15 +125,21 @@
</div> </div>
</div> </div>
<div id="themeHeaderPositionOptions" class="displayNone"> <div class="row">
<?php echo template::checkbox('themeHeaderMargin', true, 'Aligner la bannière avec le contenu', [ <div class="col6">
'checked' => $this->getData(['theme', 'header', 'margin']) <div id="themeHeaderSmallDisplay" class="displayNone">
]); ?> <?php echo template::checkbox('themeHeaderTinyHidden', true, 'Masquer la bannière en écran réduit', [
</div> 'checked' => $this->getData(['theme', 'header', 'tinyHidden'])
<div id="themeHeaderSmallDisplay" class="displayNone"> ]); ?>
<?php echo template::checkbox('themeHeaderSmallDisplayHidden', true, 'Masquer la bannière en écran réduit', [ </div>
'checked' => $this->getData(['theme', 'header', 'smallDisplayHidden']) </div>
]); ?> <div class="col6">
<div id="themeHeaderPositionOptions" class="displayNone">
<?php echo template::checkbox('themeHeaderMargin', true, 'Aligner la bannière avec le contenu', [
'checked' => $this->getData(['theme', 'header', 'margin'])
]); ?>
</div>
</div>
</div> </div>
</div> </div>
</div> </div>