From 8f9dea9c267d4d80b6ccdd565856728922b6bcc4 Mon Sep 17 00:00:00 2001 From: Deltacms Date: Sun, 18 Dec 2022 12:06:32 +0100 Subject: [PATCH] =?UTF-8?q?banni=C3=A8re=20anim=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGES.md | 5 + README.md | 2 +- core/core.php | 4 +- core/include/update.inc.php | 10 +- core/layout/main.php | 27 +- core/module/install/ressource/defaultdata.php | 10 +- core/module/theme/lang/en/lex_theme.php | 32 +- core/module/theme/lang/fr/lex_theme.php | 36 +- core/module/theme/theme.php | 225 ++++++- core/module/theme/view/header/header.js.php | 44 +- core/module/theme/view/header/header.php | 68 +- core/vendor/swiper/swiper-bundle.min.css | 614 ++++++++++++++++++ core/vendor/swiper/swiper-bundle.min.js | 14 + core/vendor/swiper/swiper_deltacms.css | 26 + 14 files changed, 1076 insertions(+), 41 deletions(-) create mode 100644 core/vendor/swiper/swiper-bundle.min.css create mode 100644 core/vendor/swiper/swiper-bundle.min.js create mode 100644 core/vendor/swiper/swiper_deltacms.css diff --git a/CHANGES.md b/CHANGES.md index f02db35..9eb123b 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,10 @@ # Changelog +## Version 4.4.03 de Deltacms +- Modifications : + - Nouvelle option pour la bannière : une bannière animée avec Swiper +- Corrections : + ## Version 4.4.02 de Deltacms - Modifications : - mise en conformité W3C des blocs utilisés en édition et en administration, diff --git a/README.md b/README.md index 7df596d..c70ed0b 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -# DeltaCMS 4.4.02 +# DeltaCMS 4.4.03 DeltaCMS est un CMS sans base de données (flat-file) qui permet de créer et gérer facilement un site web sans aucune connaissance en programmation. L'administration du site est bilingue anglais ou français, le site peut être rédigé dans une des principales langues européennes. diff --git a/core/core.php b/core/core.php index f56ef38..745d335 100644 --- a/core/core.php +++ b/core/core.php @@ -49,7 +49,7 @@ class common { // Numéro de version const DELTA_UPDATE_URL = 'https://update.deltacms.fr/master/'; - const DELTA_VERSION = '4.4.02'; + const DELTA_VERSION = '4.4.03'; const DELTA_UPDATE_CHANNEL = "v4"; public static $actions = []; @@ -2581,6 +2581,7 @@ class core extends common { $css .= 'input[type="checkbox"]:checked + label::before,.speechBubble{background-color:' . $colors['normal'] . ';color:' . $colors['text'] . ';}'; $css .= '.speechBubble::before {border-color:' . $colors['normal'] . ' transparent transparent transparent;}'; $css .= '.button {background-color:' . $colors['normal'] . ';color:' . $colors['text'] . ';}.button:hover {background-color:' . $colors['darken'] . ';color:' . $colors['text'] . ';}.button:active {background-color:' . $colors['veryDarken'] . ';color:' . $colors['text'] . ';}'; + $css .= '.buttonPreview {background-color:' . $colors['normal'] . '!important;color:' . $colors['text'] . '!important;}.buttonPreview:hover {background-color:' . $colors['darken'] . '!important;color:' . $colors['text'] . '!important;}.buttonPreview:active {background-color:' . $colors['veryDarken'] . '!important;color:' . $colors['text'] . '!important;}'; $colors = helper::colorVariants($this->getData(['admin','backgroundColorButtonGrey'])); $css .= '.button.buttonGrey {background-color: ' . $colors['normal'] . ';color: ' . $colors['text'] . ';}.button.buttonGrey:hover {background-color:' . $colors['darken'] . ';color:' . $colors['text'] . ';}.button.buttonGrey:active {background-color:' . $colors['veryDarken'] . ';color:' . $colors['text'] . ';}'; $colors = helper::colorVariants($this->getData(['admin','backgroundColorButtonRed'])); @@ -2591,6 +2592,7 @@ class core extends common { $css .= '.button.buttonGreen, button[type=submit] {background-color: ' . $colors['normal'] . ';color: ' . $colors['text'] . ';}.button.buttonGreen:hover, button[type=submit]:hover {background-color: ' . $colors['darken'] . ';color: ' . $colors['text'] .';}.button.buttonGreen:active, button[type=submit]:active {background-color: ' . $colors['darken'] . ';color: ' .$colors['text'] .';}'; $colors = helper::colorVariants($this->getData(['admin','backgroundBlockColor'])); $css .= '.block {border: 1px solid ' . $this->getData(['admin','borderBlockColor']) . ';}.block > h4, .blockTitle {background-color: ' . $colors['normal'] . ';color:' . $colors['text'] . ';}'; + // en admin la couleur de fond du block est la couleur de la page admin, on supprime l'ombre et le radius du block définis pour le theme $css .= '.block {border-radius: 0px;box-shadow: none;}.block > h4, .blockTitle {border-radius: 0px;}'; $css .= '.block {background-color: ' . $this->getData(['admin','backgroundColor']) . ';}'; diff --git a/core/include/update.inc.php b/core/include/update.inc.php index 74b43e7..97f4025 100644 --- a/core/include/update.inc.php +++ b/core/include/update.inc.php @@ -91,8 +91,14 @@ if ($this->getData(['core', 'dataVersion']) < 4401) { $this->setData(['core', 'dataVersion', 4401]); } -if ($this->getData(['core', 'dataVersion']) < 4402) { +if ($this->getData(['core', 'dataVersion']) < 4403) { + $this->setData(['theme', 'header', 'swiperImagesDir', '']); + $this->setData(['theme', 'header', 'swiperContent', '']); + $this->setData(['theme', 'header', 'swiperEffects', 'fade']); + $this->setData(['theme', 'header', 'swiperDirection', false]); + $this->setData(['theme', 'header', 'swiperTime', '2000']); + $this->setData(['theme', 'header', 'swiperTransition', '1000']); // Mise à jour - $this->setData(['core', 'dataVersion', 4402]); + $this->setData(['core', 'dataVersion', 4403]); } ?> diff --git a/core/layout/main.php b/core/layout/main.php index 01b38a3..857e9a7 100644 --- a/core/layout/main.php +++ b/core/layout/main.php @@ -17,6 +17,11 @@ if( $this->getInput('DELTA_I18N_SITE') !== '' && $this->getInput('DELTA_I18N_SIT ?> + getData([ 'theme', 'header', 'feature']) === 'swiper') { ?> + + + + getData(['page', $this->getUrl(0), 'moduleId']) === 'blog' @@ -113,8 +118,8 @@ if( $this->getInput('DELTA_I18N_SITE') !== '' && $this->getInput('DELTA_I18N_SIT $headerClass .= $this->getData(['theme', 'header', 'tinyHidden']) ? ' bannerDisplay ' : ''; $headerClass .= $this->getData(['theme', 'header', 'wide']) === 'none' ? '' : 'container'; ?> -
> - getData(['theme','header','feature']) === 'wallpaper' ): ?> +
> + getData(['theme','header','feature']) === 'wallpaper' ) { ?> getData(['theme','header','linkHomePage']) ) ? '' : ''; ?> getData(['theme', 'header', 'textHide']) === false @@ -126,11 +131,14 @@ if( $this->getInput('DELTA_I18N_SITE') !== '' && $this->getInput('DELTA_I18N_SIT   getData(['theme','header','linkHomePage']) ) ? '' : ''; ?> - + getData(['theme','header','feature']) === 'feature') { ?>
getData(['theme','header','featureContent']);?>
- + + + getData(['theme','header','swiperContent']);?> +
@@ -178,7 +186,7 @@ if( $this->getInput('DELTA_I18N_SITE') !== '' && $this->getInput('DELTA_I18N_SIT $headerClass .= $this->getData(['theme', 'header', 'tinyHidden']) ? ' bannerDisplay ' : ''; ?>
> - getData(['theme','header','feature']) === 'wallpaper' ): ?> + getData(['theme','header','feature']) === 'wallpaper' ){ ?> getData(['theme','header','linkHomePage']) ) ? '' : ''; ?> getData(['theme', 'header', 'textHide']) === false @@ -190,11 +198,14 @@ if( $this->getInput('DELTA_I18N_SITE') !== '' && $this->getInput('DELTA_I18N_SIT   getData(['theme','header','linkHomePage']) ) ? '' : ''; ?> - + getData(['theme','header','feature']) === 'feature' ){?>
- getData(['theme','header','featureContent']);?> + getData(['theme','header','featureContent']);?>
- + + + getData(['theme','header','swiperContent']); ?> +
[ - 'dataVersion' => 4402, + 'dataVersion' => 4403, 'lastBackup' => 0, 'lastClearTmp' => 0, 'lastAutoUpdate' => 0, @@ -338,7 +338,13 @@ class init extends common { 'feature' => 'wallpaper', 'featureContent' => '

Bannière vide

', 'width' => 'container', - 'homePageOnly' => false + 'homePageOnly' => false, + 'swiperImagesDir' => '', + 'swiperContent' => '', + 'swiperEffects' => 'fade', + 'swiperDirection' => false, + 'swiperTime' => '2000', + 'swiperTransition' => '1000' ], 'menu' => [ 'backgroundColor' => 'rgba(32, 59, 82, 0.85)', diff --git a/core/module/theme/lang/en/lex_theme.php b/core/module/theme/lang/en/lex_theme.php index b672f64..d5757f2 100644 --- a/core/module/theme/lang/en/lex_theme.php +++ b/core/module/theme/lang/en/lex_theme.php @@ -165,6 +165,16 @@ $text['core_theme_view']['header'][33] = 'Custom content'; $text['core_theme_view']['header'][34] ='Save'; $text['core_theme_view']['header'][35] = "Height of the selected image ("; $text['core_theme_view']['header'][36] = "Banner only visible on the home page"; +$text['core_theme_view']['header'][37] = "Preview"; +$text['core_theme_view']['header'][38] = "Image selection"; +$text['core_theme_view']['header'][39] = "Effect settings"; +$text['core_theme_view']['header'][40] = "Effect type"; +$text['core_theme_view']['header'][41] = "The best is to do some tests, a click on the 'Preview' button is necessary"; +$text['core_theme_view']['header'][42] = "Image display time"; +$text['core_theme_view']['header'][43] = "Display and transition times are cumulative"; +$text['core_theme_view']['header'][44] = "Transition time between 2 images"; +$text['core_theme_view']['header'][45] = "Display and transition times are cumulative"; +$text['core_theme_view']['header'][46] = "Direction, rotation, order of passage reversed"; $text['core_theme_view']['index'][0] = 'Click on an area to access its customisation options. You can also display hidden areas using the button below'; $text['core_theme_view']['index'][1] = 'Home'; $text['core_theme_view']['index'][2] = 'Help'; @@ -388,7 +398,8 @@ $headerPositions = [ ]; $headerFeatures = [ 'wallpaper' => 'Solid colour or wallpaper', - 'feature' => 'Custom content' + 'feature' => 'Custom content', + 'swiper' => 'Animated banner' ]; $imagePositions = [ 'top left' => 'Top left', @@ -401,6 +412,25 @@ $imagePositions = [ 'bottom center' => 'Bottom center', 'bottom right' => 'Bottom right' ]; +$swiperEffects =[ + 'none' => 'Horizontal scrolling', + 'vertical' => 'Scroll vertically', + 'fade' => 'fade', + 'cube' => 'cube effect' +]; +$swiperTime = [ + '100' => '100ms', + '200' => '200ms', + '500' => '500ms', + '1000' => '1s', + '2000' => '2s', + '3000' => '3s', + '4000' => '4s', + '5000' => '5s', + '6000' => '6s', + '8000' => '8s', + '10000' => '10s' +]; $menuFontSizes = [ '.8em' => 'Very small (80%)', '.9em' => 'Small (90%)', diff --git a/core/module/theme/lang/fr/lex_theme.php b/core/module/theme/lang/fr/lex_theme.php index ba0a73e..f581f46 100644 --- a/core/module/theme/lang/fr/lex_theme.php +++ b/core/module/theme/lang/fr/lex_theme.php @@ -162,9 +162,19 @@ $text['core_theme_view']['header'][30] = 'Largeur : '; $text['core_theme_view']['header'][31] = ' | Hauteur : '; $text['core_theme_view']['header'][32] = ' | ratio : '; $text['core_theme_view']['header'][33] = 'Contenu personnalisé'; -$text['core_theme_view']['header'][34] ='Enregistrer'; -$text['core_theme_view']['header'][35] = "Hauteur de l\'image sélectionnée ("; +$text['core_theme_view']['header'][34] = 'Enregistrer'; +$text['core_theme_view']['header'][35] = "Hauteur de l'image sélectionnée ("; $text['core_theme_view']['header'][36] = "Bannière visible uniquement sur la page d'accueil"; +$text['core_theme_view']['header'][37] = "Aperçu"; +$text['core_theme_view']['header'][38] = "Sélection des images"; +$text['core_theme_view']['header'][39] = "Paramétrage des effets"; +$text['core_theme_view']['header'][40] = "Type d'effet"; +$text['core_theme_view']['header'][41] = "Le mieux est de faire des essais, un clic sur le bouton 'Aperçu' est nécessaire"; +$text['core_theme_view']['header'][42] = "Temps d'affichage de l'image"; +$text['core_theme_view']['header'][43] = "Les temps d'affichage et de transition se cumulent"; +$text['core_theme_view']['header'][44] = "Temps de transition entre 2 images"; +$text['core_theme_view']['header'][45] = "Les temps d'affichage et de transition se cumulent"; +$text['core_theme_view']['header'][46] = "Direction, sens de rotation, ordre de passage inversés"; $text['core_theme_view']['index'][0] = 'Cliquez sur une zone afin d\'accéder à ses options de personnalisation. Vous pouvez également afficher les zones cachées à l\'aide du bouton ci-dessous.'; $text['core_theme_view']['index'][1] = 'Accueil'; $text['core_theme_view']['index'][2] = 'Aide'; @@ -387,7 +397,8 @@ $headerPositions = [ ]; $headerFeatures = [ 'wallpaper' => 'Couleur unie ou papier-peint', - 'feature' => 'Contenu personnalisé' + 'feature' => 'Contenu personnalisé', + 'swiper' => 'Bannière animée' ]; $imagePositions = [ 'top left' => 'En haut à gauche', @@ -400,6 +411,25 @@ $imagePositions = [ 'bottom center' => 'En bas au centre', 'bottom right' => 'En bas à droite' ]; +$swiperEffects =[ + 'none' => 'Défilement horizontal', + 'vertical' => 'Défilement vertical', + 'fade' => 'fondu', + 'cube' => 'effet cube' +]; +$swiperTime = [ + '100' => '100ms', + '200' => '200ms', + '500' => '500ms', + '1000' => '1s', + '2000' => '2s', + '3000' => '3s', + '4000' => '4s', + '5000' => '5s', + '6000' => '6s', + '8000' => '8s', + '10000' => '10s' +]; $menuFontSizes = [ '.8em' => 'Très petite (80%)', '.9em' => 'Petite (90%)', diff --git a/core/module/theme/theme.php b/core/module/theme/theme.php index 6cdd26f..c50672a 100644 --- a/core/module/theme/theme.php +++ b/core/module/theme/theme.php @@ -54,6 +54,9 @@ class theme extends common { // Variable pour construire la liste des pages du site public static $pagesList = []; + + //Liste des dossiers avec images + public static $listDirs =[]; /** * Thème des écrans d'administration @@ -425,11 +428,102 @@ class theme extends common { public function header() { // Lexique include('./core/module/theme/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_theme.php'); + // Liste des dossiers dans site/file/source triés et non vides + $filter = ['jpg', 'jpeg', 'png', 'gif', 'tiff', 'ico', 'webp']; + self::$listDirs = helper::scanDir(self::FILE_DIR.'source', $filter); + sort(self::$listDirs); // Soumission du formulaire if($this->isPost()) { $this->setData([ 'theme', 'update', true]); // Modification des URL des images dans la bannière perso $featureContent = $this->getInput('themeHeaderText', null); + // Bannière animée avec swiper + if( $this->getInput('themeHeaderFeature') === 'swiper' ){ + $swiperContent = $this->swiperContent('header'); + /* + // Extraction des images du dossier choisi + $iterator = new DirectoryIterator('./'.self::$listDirs[$this->getInput('themeHeaderDirectory')]); + $imageFile = []; + foreach($iterator as $key=>$fileInfos) { + if($fileInfos->isDot() === false AND $fileInfos->isFile() AND @getimagesize($fileInfos->getPathname())) { + $imageFile[$key] = $fileInfos->getPathname(); + } + } + sort($imageFile); + // Préparation du contenu + $swiperContent = ''; + // Adaptation du css au client pour l'option de défilement vertical + if( $this->getInput('themeHeaderSwiperEffects') === 'vertical'){ + $size = getimagesize($imageFile[0]); + $swiperContent .= ''; + } + $swiperContent .= '
'; + foreach($imageFile as $value ) { + $swiperContent .= '
'; + } + $swiperContent .= '
'; + $swiperContent .= ''; + $swiperContent .= ''; + */ + + + } // $featureContent = str_replace(helper::baseUrl(false,false), './', $featureContent); // Si une image est positionnée, l'arrière en transparent. $this->setData(['theme', 'header', [ @@ -453,7 +547,13 @@ class theme extends common { 'tinyHidden' => $this->getInput('themeHeaderTinyHidden', helper::FILTER_BOOLEAN), 'feature' => $this->getInput('themeHeaderFeature'), 'featureContent' => $featureContent, - 'homePageOnly' => $this->getInput('themeHeaderHomePageOnly', helper::FILTER_BOOLEAN) + 'homePageOnly' => $this->getInput('themeHeaderHomePageOnly', helper::FILTER_BOOLEAN), + 'swiperImagesDir' => self::$listDirs[$this->getInput('themeHeaderDirectory')], + 'swiperContent' => $swiperContent, + 'swiperEffects' => $this->getInput('themeHeaderSwiperEffects'), + 'swiperDirection' => $this->getInput('themeHeaderSwiperDirection', helper::FILTER_BOOLEAN), + 'swiperTime' => $this->getInput('themeHeaderSwiperTime'), + 'swiperTransition' => $this->getInput('themeHeaderSwiperTransition') ]]); // Modification de la position du menu selon la position de la bannière if ( $this->getData(['theme','header','position']) == 'site' ) @@ -486,11 +586,17 @@ class theme extends common { } // Valeurs en sortie - $this->addOutput([ - 'notification' => $text['core_theme']['header'][0], - 'redirect' => helper::baseUrl() . 'theme', - 'state' => true - ]); + if (isset($_POST['themeHeaderSubmit'])){ + $this->addOutput([ + 'notification' => $text['core_theme']['header'][0], + 'redirect' => helper::baseUrl() . 'theme', + 'state' => true + ]); + } else { //Preview + $this->addOutput([ + 'redirect' => helper::baseUrl() . 'theme/header' + ]); + } } self::$fonts = $this->extract('./site/data/fonts.json'); // Valeurs en sortie @@ -656,7 +762,8 @@ class theme extends common { 'blockBorderRadius' => $this->getInput('themeBlockBorderRadius'), 'blockBorderShadow' => $this->getInput('themeBlockBorderShadow') ]]); - + // Si barrière animée nouveau swiperContent + if($this->getData(['theme', 'header', 'feature']) === 'swiper' ) $this->swiperContent('site'); // Valeurs en sortie $this->addOutput([ 'notification' => $text['core_theme']['site'][0], @@ -908,5 +1015,109 @@ class theme extends common { return $fonts; } } + + /* + * Calcul de swiperContent utilisé par site() ou par header() + */ + private function swiperContent( $source ) { + if( $source === 'site' ){ + $dir = $this->getData(['theme', 'header', 'swiperImagesDir' ]); + $effect = $this->getData(['theme', 'header', 'swiperEffects']); + $direction = $this->getData(['theme', 'header', 'swiperDirection']); + $time = $this->getData(['theme', 'header', 'swiperTime']); + $transition = $this->getData(['theme', 'header', 'swiperTransition']); + } + else { + $dir = self::$listDirs[$this->getInput('themeHeaderDirectory')]; + $effect = $this->getInput('themeHeaderSwiperEffects'); + $direction = $this->getInput('themeHeaderSwiperDirection'); + $time = $this->getInput('themeHeaderSwiperTime'); + $transition = $this->getInput('themeHeaderSwiperTransition'); + } + // Extraction des images du dossier choisi + $iterator = new DirectoryIterator('./'.$dir); + $imageFile = []; + foreach($iterator as $key=>$fileInfos) { + if($fileInfos->isDot() === false AND $fileInfos->isFile() AND @getimagesize($fileInfos->getPathname())) { + $imageFile[$key] = $fileInfos->getPathname(); + } + } + sort($imageFile); + // Préparation du contenu + $swiperContent = ''; + // Adaptation du css au client pour l'option de défilement vertical + if( $effect === 'vertical'){ + $size = getimagesize($imageFile[0]); + $swiperContent .= ''; + } + $swiperContent .= '
'; + foreach($imageFile as $value ) { + $swiperContent .= '
'; + } + $swiperContent .= '
'; + $swiperContent .= ''; + $swiperContent .= ''; + if( $source === 'site' ){ + $this->setData(['theme', 'header', 'swiperContent', $swiperContent ]); + } else { + return $swiperContent; + } + } } diff --git a/core/module/theme/view/header/header.js.php b/core/module/theme/view/header/header.js.php index 4ee9cb9..a6a0da2 100644 --- a/core/module/theme/view/header/header.js.php +++ b/core/module/theme/view/header/header.js.php @@ -29,38 +29,45 @@ $(document).ready(function(){ $("input, select").on("change", function() { var css = ""; + // Bannière animée avec Swiper + if ($("#themeHeaderFeature").val() == "swiper") { + // fixe la hauteur à hauteur du contenu + $("#themeHeaderHeight").val("unset"); + // Masque le contenu perso et le papier peint + $("#featureContent").hide(); + $("#themeHeaderTitle").hide(); + } // Contenu perso if ($("#themeHeaderFeature").val() == "feature") { - // $("#themeHeaderHeight").val() unset pour 'Hauteur du contenu', sinon valeur en px css = "header{min-height: 20px; height:" + $("#themeHeaderHeight").val() + "; overflow:hidden; background-position:top; background-repeat: no-repeat; line-height:1.15; background-color:unset; background-image:unset; text-align:unset;}"; $("#featureContent").appendTo("header").show(); $("#themeHeaderTitle").hide(); + $("#headerSwiper").hide(); } // Couleurs, image, alignement et hauteur de la bannière if ($("#themeHeaderFeature").val() == "wallpaper") { - // Masque le contenu perso + // Masque le contenu perso ou la bannière Swiper $("#featureContent").hide(); - - tmpImg.src= "" + "site/file/source/" + $("#themeHeaderImage").val(); - // Déterminer la taille de l'image - tmpImg.onload = function() { - // Informations affichées - $("#themeHeaderImageHeight").html(tmpImg.height + "px"); - $("#themeHeaderImageWidth").html(tmpImg.width + "px"); - $("#themeHeaderImageRatio").html(tmpImg.width / tmpImg.height); - }; - + $("#headerSwiper").hide(); + var headerFont = $("#themeHeaderFont").val(); css = "header{text-align:" + $("#themeHeaderTextAlign").val() + ";"; // Sélection d'une image réalisée if( $("#themeHeaderImage").val() !== ""){ - + tmpImg.src= "" + "site/file/source/" + $("#themeHeaderImage").val(); + // Déterminer la taille de l'image + tmpImg.onload = function() { + // Informations affichées + $("#themeHeaderImageHeight").html(tmpImg.height + "px"); + $("#themeHeaderImageWidth").html(tmpImg.width + "px"); + $("#themeHeaderImageRatio").html(tmpImg.width / tmpImg.height); + }; css += "background-image:url('site/file/source/" + $("#themeHeaderImage").val() + "');background-repeat:" + $("#themeHeaderImageRepeat").val() + ";background-position:" + $("#themeHeaderImagePosition").val() + ";"; css += "background-size:" + $("#themeHeaderImageContainer").val() + ";"; if( $("#themeHeaderHeight").val() !== 'unset'){ @@ -236,11 +243,22 @@ $("#themeHeaderPosition").on("change", function() { $("#themeHeaderFeature").on("change", function() { if($(this).val() === 'wallpaper') { $(".wallpaperContainer").show(); + $(".colorsContainer").show(); $(".featureContainer").hide(); $("#themeHeaderTextColorWrapper").show(); + $(".swiperContainer").hide(); } if($(this).val() === 'feature') { $(".featureContainer").show(); + $(".colorsContainer").show(); + $(".wallpaperContainer").hide(); + $("#themeHeaderTextColorWrapper").hide(); + $(".swiperContainer").hide(); + } + if($(this).val() === 'swiper') { + $(".swiperContainer").show(); + $(".colorsContainer").hide(); + $(".featureContainer").hide(); $(".wallpaperContainer").hide(); $("#themeHeaderTextColorWrapper").hide(); } diff --git a/core/module/theme/view/header/header.php b/core/module/theme/view/header/header.php index 6f70f57..011e9fd 100644 --- a/core/module/theme/view/header/header.php +++ b/core/module/theme/view/header/header.php @@ -1,7 +1,7 @@ getData(['config', 'i18n', 'langAdmin']) . '/lex_theme.php'); -// Passage de la langue d'administration à Tinymce +// Passage de la langue d'administration à Tinymce ?>