diff --git a/CHANGES.md b/CHANGES.md index 323068a6..c755cc9f 100755 --- a/CHANGES.md +++ b/CHANGES.md @@ -20,10 +20,15 @@ - Thème : import d'un thème, d'administration impossible. - Thème : import d'un thème, nettoyage du dossier tmp. - 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. + - 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/class/helper.class.php b/core/class/helper.class.php index f14395fc..58613dc0 100644 --- a/core/class/helper.class.php +++ b/core/class/helper.class.php @@ -219,7 +219,8 @@ class helper { 'normal' => 'rgba(' . $rgba[0] . ',' . $rgba[1] . ',' . $rgba[2] . ',' . $rgba[3] . ')', 'darken' => 'rgba(' . max(0, $rgba[0] - 15) . ',' . max(0, $rgba[1] - 15) . ',' . max(0, $rgba[2] - 15) . ',' . $rgba[3] . ')', 'veryDarken' => 'rgba(' . max(0, $rgba[0] - 20) . ',' . max(0, $rgba[1] - 20) . ',' . max(0, $rgba[2] - 20) . ',' . $rgba[3] . ')', - 'text' => self::relativeLuminanceW3C($rgba) > .22 ? "#222" : "#DDD" + 'text' => self::relativeLuminanceW3C($rgba) > .22 ? "#222" : "#DDD", + 'rgb' => 'rgb(' . $rgba[0] . ',' . $rgba[1] . ',' . $rgba[2] . ')' ]; } 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 2e377157..44eeab77 100644 --- a/core/core.php +++ b/core/core.php @@ -1393,6 +1393,18 @@ class common { $this->setData(['config', 'connect','captcha', true]); $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]); + } + // 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]); + } // Version 10.4.00 if ($this->getData(['core', 'dataVersion']) < 10400) { // Ajouter le prénom comme pseudo et le pseudo comme signature @@ -1438,12 +1450,6 @@ class common { } $this->setData(['core', 'dataVersion', 10400]); } - // 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]); - } } } @@ -1590,7 +1596,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 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']) . ';}'; @@ -1602,8 +1608,11 @@ 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']) . '}'; - $css .= '#menuLeft{float:' . $this->getData(['theme', 'menu', 'textAlign']) . '}'; + // 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( $this->getData(['theme', 'menu', 'position']) === 'site-first' @@ -1723,7 +1732,9 @@ class core extends common { exit(); } // Journalisation - $dataLog = strftime('%d/%m/%y',time()) . ';' . strftime('%R',time()) . ';' ; + $dataLog = mb_detect_encoding(strftime('%d/%m/%y',time()), 'UTF-8', true) + ? strftime('%d/%m/%y',time()) . ';' . strftime('%R',time()) . ';' + : utf8_encode(strftime('%d/%m/%y',time())) . ';' . utf8_encode(strftime('%R',time())) . ';' ; $dataLog .= helper::getIp() . ';'; $dataLog .= $this->getUser('id') ? $this->getUser('id') . ';' : 'anonyme' . ';'; $dataLog .= $this->getUrl(); @@ -2413,7 +2424,7 @@ class layout extends common { empty($childrenPageIds)) { continue; } - $itemsLeft .= '