diff --git a/CHANGES.md b/CHANGES.md
index c197ce44..08a981f7 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -1,5 +1,11 @@
# ChangeLog
+## Version 9.0.07
+- Correction :
+ - Disparition du menu quand la bannière est masquée
+- Modifications :
+ - Barre d'administration, pages organisées
+
## Version 9.0.06
- Correction :
- Configuration des modes de codemirror
diff --git a/core/core.php b/core/core.php
index 3cc61b08..d395077a 100644
--- a/core/core.php
+++ b/core/core.php
@@ -118,7 +118,7 @@ class common {
'barLeft' => '',
'barRight' => ''
],
- 'cachee' => [
+ 'privee' => [
'typeMenu' => 'text',
'iconUrl' => '',
'disable' => false,
@@ -137,7 +137,7 @@ class common {
'position' => 2,
'group' => self::GROUP_MEMBER,
'targetBlank' => false,
- 'title' => 'Cachée',
+ 'title' => 'Privée',
'block' => '12',
'barLeft' => '',
'barRight' => ''
@@ -1076,7 +1076,6 @@ class common {
* Mises à jour
*/
private function update() {
- echo "pop";
// Version 8.1.0
if($this->getData(['core', 'dataVersion']) < 810) {
$this->setData(['config', 'timezone', 'Europe/Paris']);
@@ -2338,13 +2337,38 @@ class layout extends common {
if($this->getUser('group') >= self::GROUP_MODERATOR) {
$leftItems .= '
';
$leftItems .= '' . template::ico('plus') . '';
if(
diff --git a/core/layout/common.css b/core/layout/common.css
index 2a69ece0..73a45abc 100755
--- a/core/layout/common.css
+++ b/core/layout/common.css
@@ -63,6 +63,10 @@ li ul {
margin: 0;
}
+option.inactive {
+ color: darkred;
+}
+
/* Séparateur */
hr {
border: 0;
diff --git a/core/module/page/view/edit/edit.js.php b/core/module/page/view/edit/edit.js.php
index f60ddd4e..4eb3ed0b 100755
--- a/core/module/page/view/edit/edit.js.php
+++ b/core/module/page/view/edit/edit.js.php
@@ -414,6 +414,9 @@ $("#pageEditModuleConfig").on("click", function() {
*/
var hierarchy = getHierarchy()); ?>;
var pages = getData(['page'])); ?>;
+// 9.0.07 corrige une mauvaise sélection d'une page orpheline avec enfant
+var positionInitial = getData(['page',$this->getUrl(2),"position"]); ?>;
+// 9.0.07
$("#pageEditParentPageId").on("change", function() {
var positionDOM = $("#pageEditPosition");
positionDOM.empty().append(
@@ -428,7 +431,7 @@ $("#pageEditParentPageId").on("change", function() {
// Liste des pages sans parents
for(var key in hierarchy) {
if(hierarchy.hasOwnProperty(key)) {
- // Sélectionne la page avant si il s'agit de la page courante
+ // Sélectionne la page avant s'il s'agit de la page courante
if(key === "getUrl(2); ?>") {
positionSelected = positionPrevious;
}
@@ -443,6 +446,11 @@ $("#pageEditParentPageId").on("change", function() {
}
}
}
+ // 9.0.07 corrige une mauvaise sélection d'une page orpheline avec enfant
+ if (positionInitial === 0) {
+ positionSelected = 0;
+ }
+ // 9.0.07
}
// Un page parent est selectionnée
else {
diff --git a/core/module/theme/theme.php b/core/module/theme/theme.php
index 15627c28..bf6b2fba 100755
--- a/core/module/theme/theme.php
+++ b/core/module/theme/theme.php
@@ -323,8 +323,10 @@ class theme extends common {
$position = str_replace ('body','site',$this->getData(['theme','menu','position']));
break;
case 'body' :
- $position = str_replace ('site','body',$this->getData(['theme','menu','position']));
+ $position = str_replace ('site','body',$this->getData(['theme','menu','position']));
break;
+ default:
+ $position = $this->getData(['theme','menu','position']);
}
$this->setData(['theme', 'menu', [
'backgroundColor' => $this->getData(['theme', 'menu', 'backgroundColor']),