diff --git a/CHANGES.md b/CHANGES.md
index c47d612f..c5482602 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -40,6 +40,10 @@
- Modifications préparatoires à la version 10 :
- Lors de l'installation, stockage de l'url de base dans l'éventualité de la restauration d'un backup et de son installation dans une autre arborescence.
- Modification des clés identifiant les légendes du module Gallery : suppression du point de séparation du nom de fichier de l'extension.
+- Corrections :
+ - Thème ; bannière : problème empêchant la bannière d'être cliquable lorsque la hauteur responsive de la bannière était sélectionnée.
+- Mise à jour :
+ - CodeMirror 5.49.2 et modification des modules installés
## version 9.2.09
- Corrections :
diff --git a/core/core.php b/core/core.php
index fd1e5bf9..18fffd64 100644
--- a/core/core.php
+++ b/core/core.php
@@ -31,7 +31,7 @@ class common {
const TEMP_DIR = 'site/tmp/';
// Numéro de version
- const ZWII_VERSION = '10.0.81.dev';
+ const ZWII_VERSION = '10.0.82.dev';
public static $actions = [];
public static $coreModuleIds = [
@@ -1117,6 +1117,18 @@ class common {
// Utile pour l'installation d'un backup sur un autre serveur uniquement sur une V9
// $this->setData(['core', 'baseUrl', str_replace('/','',helper::baseUrl(false,false)) ]);
+
+ // Utile pour l'installation d'un backup sur un autre serveur
+ $this->setData(['core', 'baseUrl', helper::baseUrl(false,false) ]);
+
+ // Suppression d'une option de hauteur de la bannière
+ if ($this->getData(['theme', 'header','height']) === 'none') {
+ $this->setData(['theme', 'header','height','150px']);
+ }
+ // Changer le nom de la clé linkHome -> linkHomePage
+ $this->setdata(['theme','header','linkHomePage',$this->getData(['theme','header','linkHome'])]);
+ $this->deleteData(['theme','header','linkHome']);
+
// Préparation des clés de légendes pour la v10
// Construire une liste plate de parents et d'enfants
foreach ($this->getHierarchy(null,null,null) as $parentKey=>$parentValue) {
diff --git a/core/layout/main.php b/core/layout/main.php
index a6fb2f2b..cb1ae5ea 100755
--- a/core/layout/main.php
+++ b/core/layout/main.php
@@ -55,7 +55,7 @@
@@ -122,7 +126,7 @@
): ?>
getData(['theme','header','linkHome'])){
+ if ($this->getData(['theme','header','linkHomePage'])){
echo "" ;} ?>
getData(['theme','header','linkHome'])){echo "";} ?>
+ if ($this->getData(['theme','header','linkHomePage'])){echo "";} ?>
getData(['theme', 'menu', 'position']) === 'site-second' ||
diff --git a/core/module/install/ressource/defaultdata.php b/core/module/install/ressource/defaultdata.php
index aca3959c..9899b783 100644
--- a/core/module/install/ressource/defaultdata.php
+++ b/core/module/install/ressource/defaultdata.php
@@ -112,7 +112,7 @@ class init extends common {
'textColor' => 'rgba(33, 34, 35, 1)',
'textHide' => true,
'textTransform' => 'none',
- 'linkHome' => true,
+ 'linkHomePage' => true,
'imageContainer' => 'auto'
],
'link' => [
diff --git a/core/module/theme/theme.php b/core/module/theme/theme.php
index 86de76ed..825fef64 100755
--- a/core/module/theme/theme.php
+++ b/core/module/theme/theme.php
@@ -118,7 +118,7 @@ class theme extends common {
'2.4vmax' => 'Très grande (240%)'
];
public static $headerHeights = [
- 'none' => 'Responsive',
+ /* 'none' => 'Hauteur de l\'image',*/
'100px' => 'Très petite (100px) ',
'150px' => 'Petite (150px)',
'200px' => 'Moyenne (200px)',
@@ -220,10 +220,11 @@ class theme extends common {
'100%' => 'Fluide (100%)'
];
public static $headerWide = [
- 'cover' => 'Responsive (cover)',
- 'contain' => 'Responsive (contain)',
'auto auto' => 'Automatique',
- '100% 100%' => 'Image étirée'
+ '100% 100%' => 'Image étirée (100% 100%)',
+ '100% auto' => 'Responsive (100% auto)',
+ 'cover' => 'Responsive (cover)',
+ 'contain' => 'Responsive (contain)'
];
public static $footerTemplate = [
'1' => 'Une seule colonne',
@@ -370,7 +371,7 @@ class theme extends common {
'textAlign' => $this->getInput('themeHeaderTextAlign'),
'textColor' => $this->getInput('themeHeaderTextColor'),
'textHide' => $this->getInput('themeHeaderTextHide', helper::FILTER_BOOLEAN),
- 'linkHome' => $this->getInput('themeHeaderlinkHome',helper::FILTER_BOOLEAN),
+ 'linkHomePage' => $this->getInput('themeHeaderlinkHomePage',helper::FILTER_BOOLEAN),
'imageContainer' => $this->getInput('themeHeaderImageContainer')
]]);
// Modification de la position du menu selon la position de la bannière
diff --git a/core/module/theme/view/header/header.js.php b/core/module/theme/view/header/header.js.php
index b8930620..b35ac25c 100755
--- a/core/module/theme/view/header/header.js.php
+++ b/core/module/theme/view/header/header.js.php
@@ -20,12 +20,11 @@
$("input, select").not("#barSelectLanguage").on("change", function() {
// Récupérer la taille de l'image
+ /*
var tmpImg = new Image();
var url = "" + "site/file/source/" + $("#themeHeaderImage").val();
tmpImg.src= url;
-
- var themeHeaderHeight = $("#themeHeaderHeight").val();
- var themeHeaderImage = $("#themeHeaderImage").val();
+ */
// Import des polices de caractères
var headerFont = $("#themeHeaderFont").val();
@@ -34,40 +33,34 @@ $("input, select").not("#barSelectLanguage").on("change", function() {
// Couleurs, image, alignement et hauteur de la bannière
css += "header{background-color:" + $("#themeHeaderBackgroundColor").val() + ";text-align:" + $("#themeHeaderTextAlign").val() + ";";
- if (themeHeaderImage) {
+ if ($("#themeHeaderImage").val()) {
// Une image est sélectionnée
- css += "background-image:url('site/file/source/" + themeHeaderImage + "');background-repeat:" + $("#themeHeaderImageRepeat").val() + ";background-position:" + $("#themeHeaderImagePosition").val() + ";";
+ css += "background-image:url('site/file/source/" + $("#themeHeaderImage").val() + "');background-repeat:" + $("#themeHeaderImageRepeat").val() + ";background-position:" + $("#themeHeaderImagePosition").val() + ";";
css += "background-size:" + $("#themeHeaderImageContainer").val() + ";";
- if (themeHeaderHeight === "none") {
- // Position responsive
- css += "height: 0; padding-top:" + (tmpImg.height / tmpImg.width ) * 100 + "%}";
- } else {
- // Positions standards
- css += "line-height:" + $("#themeHeaderHeight").val() + ";height:" + themeHeaderHeight + "}";
- }
// Pas d'image sélectionnée
} else {
// Désactiver l'option responsive
css += "background-image:none;";
- $("header .container").show();
- $("themeHeaderTextHide").prop("false");
- if (themeHeaderHeight === "none") {
- $("#themeHeaderHeight option:eq(2)").prop("selected", true);
- css += "line-height: 150px;height: 150px}";
- } else {
- css += "line-height:" + $("#themeHeaderHeight").val() + ";height:" + themeHeaderHeight + "}";
- }
+ //$("header .container").show();
+
}
+ /*if ($("#themeHeaderHeight").val() !== "none") {*/
+ css += "line-height:" + $("#themeHeaderHeight").val() + ";height:" + $("#themeHeaderHeight").val() + "}";
+ /*} else {
+ css += "line-height:" + tmpImg.height + ";height:" + tmpImg.height + "}";
+ }*/
// Taille, couleur, épaisseur et capitalisation du titre de la bannière
css += "header span{color:" + $("#themeHeaderTextColor").val() + ";font-family:'" + headerFont.replace(/\+/g, " ") + "',sans-serif;font-weight:" + $("#themeHeaderFontWeight").val() + ";font-size:" + $("#themeHeaderFontSize").val() + ";text-transform:" + $("#themeHeaderTextTransform").val() + "}";
// Cache le titre de la bannière
+
if($("#themeHeaderTextHide").is(":checked")) {
- $("header .container").hide();
+ $("header #themeHeaderTitle").hide();
}
else {
- $("header .container").show();
+ $("header #themeHeaderTitle").show();
}
+
// Marge
if($("#themeHeaderMargin").is(":checked")) {
if(getData(['theme', 'menu', 'position']) === 'site-first'); ?>) {
@@ -119,6 +112,8 @@ $("input, select").not("#barSelectLanguage").on("change", function() {
.appendTo("head");
}).trigger("change");
+/**
+
$("#themeHeaderHeight").on("change", function() {
if($(this).val() === 'none') {
$("#themeHeaderTextHide").prop("disabled", true);
@@ -127,6 +122,7 @@ $("#themeHeaderHeight").on("change", function() {
$("#themeHeaderTextHide").prop("disabled", false);
}
}).trigger("change");
+*/
// Affiche / Cache les options de l'image du fond
diff --git a/core/module/theme/view/header/header.php b/core/module/theme/view/header/header.php
index 3beabbaf..990d3457 100755
--- a/core/module/theme/view/header/header.php
+++ b/core/module/theme/view/header/header.php
@@ -70,20 +70,21 @@
'Adaptation',
- 'selected' => $this->getData(['theme', 'header', 'imageContainer']),
- 'help' => 'Responsive (cover) : rogne une image trop grande sans la déformer -
- Responsive (contain) : agrandit une image trop petite sans la déformer.
-
Pour une bannière full responsive, sélectionnez aussi Hauteur -> Responsive.
-
Dans ce cas le titre est indisponible.'
+ 'selected' => $this->getData(['theme', 'header', 'imageContainer'])
]); ?>
-
+
$this->getData(['theme', 'header', 'textHide'])
]); ?>
+
@@ -114,11 +115,6 @@
-