configuration en petit écran bannière masquée

This commit is contained in:
Deltacms 2023-04-14 09:01:08 +02:00
parent 9984542d3b
commit c4de4716a7
3 changed files with 86 additions and 117 deletions

View File

@ -4,9 +4,10 @@
- Modifications :
- Thème / Gestion : possibilité de saisir un nom lors de la sauvegarde ou de l'export d'un thème,
- Masquage des commentaires dans le layout,
- Thème / bannière : sur petit écran possibilité de configurer la bannière même quand elle est masquée en petit écran,
- Corrections :
- Thème / menu : problème de défilement du menu sur petit écran quand il était hors du site et fixe,
- Thème / menu : erreur qui modifiait l'order des blocs en petit écran,
- Thème / menu / configuration : erreur qui modifiait l'ordre d'affichage des blocs en petit écran,
## Version 4.4.06 de Deltacms
- Modifications :

View File

@ -52,11 +52,15 @@ $("<a>")
* Affiche les zones cachées
*/
$("#themeShowAll").on("click", function() {
$("header.displayNone, nav.displayNone, footer.displayNone").slideToggle();
if( $(window).width() >= 800 ){
$("header.displayNone, nav.displayNone, footer.displayNone").slideToggle();
} else {
$("header.displayNone, nav.displayNone, footer.displayNone, header.bannerDisplay").slideToggle();
}
});
/**
* Simule un survole du site lors du survole de la section
* Simule un survol du site lors du survol de la section
*/
$("section")
.on("mouseover", function() {
@ -64,4 +68,25 @@ $("section")
})
.on("mouseleave", function() {
$("#themeOverlaySite.themeOverlayTriggerHover").removeClass("themeOverlayTriggerHover");
});
});
/**
* Affiche le bouton zones cachées en grand écran et en petit écran
*/
var tinyHidden = <?php echo $this->getData(['theme', 'header', 'tinyHidden']); ?> ;
<?php
include('./core/module/theme/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_theme.php');
if( $this->getData(['theme', 'header', 'position']) === 'hide'
OR $this->getData(['theme', 'menu', 'position']) === 'hide'
OR $this->getData(['theme', 'footer', 'position']) === 'hide' ) { ?>
$(".showAll").css("display","block");
$(".speechBubble").text(" <?php echo $text['core_theme_view']['index'][0]; ?> ");
<?php } else { ?>
if( $(window).width() >= 800 || !tinyHidden){
$(".showAll").css("display","none");
$(".speechBubble").text(" <?php echo $text['core_theme_view']['index'][8]; ?> ");
} else {
$(".showAll").css("display","block");
$(".speechBubble").text(" <?php echo $text['core_theme_view']['index'][0]; ?> ");
}
<?php } ?>

View File

@ -2,122 +2,65 @@
// Lexique
include('./core/module/theme/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_theme.php');
if(
$this->getData(['theme', 'header', 'position']) === 'hide'
OR $this->getData(['theme', 'menu', 'position']) === 'hide'
OR $this->getData(['theme', 'footer', 'position']) === 'hide'
): ?>
<?php echo template::speech($text['core_theme_view']['index'][0]); ?>
<div class="row">
<div class="col2 offset3">
<?php echo template::button('themeBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl(false),
'ico' => 'home',
'value' => $text['core_theme_view']['index'][1]
]); ?>
</div>
<div class="col2">
<?php echo template::button('themeHelp', [
'href' => 'https://doc.deltacms.fr/theme-2',
'target' => '_blank',
'ico' => 'help',
'value' => $text['core_theme_view']['index'][2],
'class' => 'buttonHelp'
]); ?>
</div>
<div class="col2">
<?php echo template::button('themeShowAll', [
'ico' => 'eye',
'value' => $text['core_theme_view']['index'][3]
]); ?>
</div>
echo template::speech($text['core_theme_view']['index'][8]); ?>
<div class="row">
<div class="col2 offset4">
<?php echo template::button('themeBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl(false),
'ico' => 'home',
'value' => $text['core_theme_view']['index'][1]
]); ?>
</div>
<div class="row">
<div class="col2 offset3">
<?php echo template::button('themeManage', [
'ico' => 'cogs',
'href' => helper::baseUrl() . $this->getUrl(0) . '/manage',
'value' => $text['core_theme_view']['index'][4]
]); ?>
</div>
<div class="col2">
<?php echo template::button('themeAdmin', [
'ico' => 'brush',
'href' => helper::baseUrl() . $this->getUrl(0) . '/admin',
'value' => $text['core_theme_view']['index'][5]
]); ?>
<div class="col2">
<?php echo template::button('themeHelp', [
'href' => 'https://doc.deltacms.fr/theme-2',
'target' => '_blank',
'ico' => 'help',
'value' => $text['core_theme_view']['index'][2],
'class' => 'buttonHelp'
]); ?>
</div>
</div>
<div class="row showAll">
<div class="col2 offset5">
<?php echo template::button('themeShowAll', [
'ico' => 'eye',
'value' => $text['core_theme_view']['index'][3]
]); ?>
</div>
</div>
<div class="row">
<div class="col2 offset3">
<?php echo template::button('themeManage', [
'ico' => 'cogs',
'href' => helper::baseUrl() . $this->getUrl(0) . '/manage',
'value' => $text['core_theme_view']['index'][4]
]); ?>
</div>
<div class="col2">
<?php echo template::button('themeAdmin', [
'ico' => 'brush',
'href' => helper::baseUrl() . $this->getUrl(0) . '/admin',
'value' => $text['core_theme_view']['index'][5]
]); ?>
</div>
<div class="col2">
<?php echo template::button('themeAdvanced', [
'ico' => 'code',
'href' => helper::baseUrl() . $this->getUrl(0) . '/advanced',
'value' => $text['core_theme_view']['index'][6]
]); ?>
</div>
</div>
<div class="row">
<div class="col2 offset5">
<?php echo template::button('themeFonts', [
'ico' => 'pencil',
'href' => helper::baseUrl() . $this->getUrl(0) . '/fonts',
'value' => $text['core_theme_view']['index'][7]
]); ?>
</div>
<div class="col2">
<?php echo template::button('themeAdvanced', [
'ico' => 'code',
'href' => helper::baseUrl() . $this->getUrl(0) . '/advanced',
'value' => $text['core_theme_view']['index'][6]
]); ?>
</div>
<?php else: ?>
<?php echo template::speech($text['core_theme_view']['index'][8]); ?>
<div class="row">
<div class="col2 offset4">
<?php echo template::button('themeBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl(false),
'ico' => 'home',
'value' => $text['core_theme_view']['index'][1]
]); ?>
</div>
<div class="col2">
<?php echo template::button('themeHelp', [
'href' => 'https://doc.deltacms.fr/theme-2',
'target' => '_blank',
'ico' => 'help',
'value' => $text['core_theme_view']['index'][2],
'class' => 'buttonHelp'
]); ?>
</div>
</div>
<div class="row">
<div class="col2 offset5">
<?php echo template::button('themeFonts', [
'ico' => 'pencil',
'href' => helper::baseUrl() . $this->getUrl(0) . '/fonts',
'value' => $text['core_theme_view']['index'][7]
]); ?>
</div>
<div class="row">
<div class="col2 offset3">
<?php echo template::button('themeManage', [
'ico' => 'cogs',
'href' => helper::baseUrl() . $this->getUrl(0) . '/manage',
'value' => $text['core_theme_view']['index'][4]
]); ?>
</div>
<div class="col2">
<?php echo template::button('themeAdmin', [
'ico' => 'brush',
'href' => helper::baseUrl() . $this->getUrl(0) . '/admin',
'value' => $text['core_theme_view']['index'][5]
]); ?>
</div>
</div>
<div class="col2">
<?php echo template::button('themeAdvanced', [
'ico' => 'code',
'href' => helper::baseUrl() . $this->getUrl(0) . '/advanced',
'value' => $text['core_theme_view']['index'][6]
]); ?>
</div>
</div>
<div class="row">
<div class="col2 offset5">
<?php echo template::button('themeFonts', [
'ico' => 'pencil',
'href' => helper::baseUrl() . $this->getUrl(0) . '/fonts',
'value' => $text['core_theme_view']['index'][7]
]); ?>
</div>
</div>
<?php endif; ?>