From c54b9d262df500a49621f8319b77117d563f3bb5 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Sat, 13 Nov 2021 08:58:34 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20+=20default?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/include/update.inc.php | 6 ++++++ core/module/install/ressource/defaultdata.php | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/core/include/update.inc.php b/core/include/update.inc.php index de14e258..2022e271 100644 --- a/core/include/update.inc.php +++ b/core/include/update.inc.php @@ -692,6 +692,12 @@ if ($this->getData(['core', 'dataVersion']) < 11200) { $this->setData(['page', $parent, 'shortTitle', $this->getData(['page', $parent, 'title']) ]); } + // Incorporer les nouveaux champs du header et du menu + $this->setData(['theme', 'header', 'feature', 'wallpaper']); + $this->setData(['theme', 'header', 'featureContent', '

Bannière vide

']); + $this->setData(['theme', 'header', 'container', 'container']); + $this->setData(['theme', 'menu', 'container', 'container']); + // Mise à jour $this->setData(['core', 'dataVersion', 11200]); } diff --git a/core/module/install/ressource/defaultdata.php b/core/module/install/ressource/defaultdata.php index 289cff3d..bed64394 100644 --- a/core/module/install/ressource/defaultdata.php +++ b/core/module/install/ressource/defaultdata.php @@ -159,7 +159,8 @@ class init extends common { 'imageContainer' => 'auto', 'tinyHidden' => true, 'feature' => 'wallpaper', - 'featureContent' => '

Bannière vide

' + 'featureContent' => '

Bannière vide

', + 'container' => 'container' ], 'menu' => [ 'backgroundColor' => 'rgba(32, 59, 82, 1)', @@ -181,7 +182,8 @@ class init extends common { 'radius' => '0px', 'memberBar' => true, 'burgerLogo' => '', - 'burgerContent' => 'title' + 'burgerContent' => 'title', + 'container' => 'container' ], 'site' => [ 'backgroundColor' => 'rgba(255, 255, 255, 1)',