diff --git a/CHANGES.md b/CHANGES.md index 6ccc6460..a8183c40 100755 --- a/CHANGES.md +++ b/CHANGES.md @@ -8,8 +8,13 @@ - Thème administration : modification de l'appel du code CSS permettant une mise à jour du thème sans vider le cache. - Thème du menu : alignement inopérant ; arrière-plan semi-transparent non uniforme. - Amélioration : + - Thème menu : couleurs du sous menu. - Mise en page du corps des mails de notification. - Paramètres de localisation. +- Modification : + - Changement de noms de classe : + - navLevel1 devient navMain + - navLevel2 devient navSub - Mise à jour : - TinyMCE 4.9.11 diff --git a/core/core.js.php b/core/core.js.php index 9c16b702..8623d83f 100644 --- a/core/core.js.php +++ b/core/core.js.php @@ -392,12 +392,12 @@ $(document).ready(function(){ * Affiche le sous-menu quand il est sticky */ $("nav").mouseenter(function(){ - $("#navfixedlogout .navLevel2").css({ 'pointer-events' : 'auto' }); - $("#navfixedconnected .navLevel2").css({ 'pointer-events' : 'auto' }); + $("#navfixedlogout .navSub").css({ 'pointer-events' : 'auto' }); + $("#navfixedconnected .navSub").css({ 'pointer-events' : 'auto' }); }); $("nav").mouseleave(function(){ - $("#navfixedlogout .navLevel2").css({ 'pointer-events' : 'none' }); - $("#navfixedconnected .navLevel2").css({ 'pointer-events' : 'none' }); + $("#navfixedlogout .navSub").css({ 'pointer-events' : 'none' }); + $("#navfixedconnected .navSub").css({ 'pointer-events' : 'none' }); }); /** diff --git a/core/core.php b/core/core.php index 55a6515a..44d622bf 100644 --- a/core/core.php +++ b/core/core.php @@ -1430,13 +1430,19 @@ class common { if ($this->getData(['core', 'dataVersion']) < 10302) { // Activation par défaut du captcha à la connexion $this->setData(['config', 'connect','captcha', true]); - $this->setData(['core', 'dataVersion', 10302]); + $this->setData(['core', 'dataVersion', 10302]); } // Version 10.3.03 if ($this->getData(['core', 'dataVersion']) < 10303) { // Activation par défaut du captcha à la connexion $this->setData(['config', 'captchaStrong', false]); - $this->setData(['core', 'dataVersion', 10303]); + $this->setData(['core', 'dataVersion', 10303]); + } + // Version 10.3.04 + if ($this->getData(['core', 'dataVersion']) < 10304) { + // Couleur des sous menus + $this->setData(['theme', 'menu', 'backgroundColorSub', $this->getData(['theme', 'menu', 'backgroundColor']) ]); + $this->setData(['core', 'dataVersion', 10304]); } } } @@ -1584,7 +1590,7 @@ class core extends common { $css .= 'header span{color:' . $colors['normal'] . ';font-family:"' . str_replace('+', ' ', $this->getData(['theme', 'header', 'font'])) . '",sans-serif;font-weight:' . $this->getData(['theme', 'header', 'fontWeight']) . ';font-size:' . $this->getData(['theme', 'header', 'fontSize']) . ';text-transform:' . $this->getData(['theme', 'header', 'textTransform']) . '}'; // Menu $colors = helper::colorVariants($this->getData(['theme', 'menu', 'backgroundColor'])); - $css .= 'nav,nav .navLevel2 a{background-color:' . $colors['normal'] . '}'; + $css .= 'nav,nav.navMain a{background-color:' . $colors['normal'] . '}'; $css .= 'nav a,#toggle span,nav a:hover{color:' . $this->getData(['theme', 'menu', 'textColor']) . '}'; $css .= 'nav a:hover{background-color:' . $colors['darken'] . '}'; $css .= 'nav a.active{color:' . $this->getData(['theme','menu','activeTextColor']) . ';}'; @@ -1596,7 +1602,10 @@ class core extends common { $css .= 'nav a.active{color:' . $color2['text'] . '}';*/ } $css .= 'nav #burgerText{color:' . $colors['text'] . '}'; - $css .= 'nav .navLevel1 a.active {border-radius:' . $this->getData(['theme', 'menu', 'radius']) . '}'; + // Sous menu + $colors = helper::colorVariants($this->getData(['theme', 'menu', 'backgroundColorSub'])); + $css .= 'nav .navSub a{background-color:' . $colors['normal'] . '}'; + $css .= 'nav .navMain a.active {border-radius:' . $this->getData(['theme', 'menu', 'radius']) . '}'; $css .= '#menu{text-align:' . $this->getData(['theme', 'menu', 'textAlign']) . '}'; if($this->getData(['theme', 'menu', 'margin'])) { if( @@ -2409,7 +2418,7 @@ class layout extends common { empty($childrenPageIds)) { continue; } - $itemsLeft .= '