From 85b4b178ca50f9070a158d01854bd17d6130a36a Mon Sep 17 00:00:00 2001 From: fredtempez Date: Thu, 31 Oct 2019 22:10:24 +0100 Subject: [PATCH] =?UTF-8?q?[10.0.57.dev]=20nouveau=20i18n=20+=20erreur=20?= =?UTF-8?q?=C3=A9dition=20banni=C3=A8re=20+=20=20alignement=20des=20drapea?= =?UTF-8?q?ux?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core.js.php | 10 +- core/core.php | 11 +- core/layout/common.css | 17 +- core/layout/main.php | 4 +- core/module/i18n/i18n.php | 183 ++++++++++---------- core/module/i18n/view/add/add.php | 41 ----- core/module/i18n/view/index/index.php | 56 +++--- core/module/theme/view/header/header.js.php | 2 +- core/module/theme/view/menu/menu.js.php | 5 +- 9 files changed, 143 insertions(+), 186 deletions(-) delete mode 100644 core/module/i18n/view/add/add.php diff --git a/core/core.js.php b/core/core.js.php index ee6d0e82..adbdb993 100755 --- a/core/core.js.php +++ b/core/core.js.php @@ -253,10 +253,12 @@ core.start = function() { /** * Choix de la langue dans la barre de membre - */ - $("#barFormSelectLanguage").on("change", function(){ - $("#barFormSelectLanguage").submit(); - }); + */ + $("#barSelectLanguage").on("change", function(){ + $(" #barFormSelectLanguage").submit(); + }); + + /** * Champs d'upload de fichiers */ diff --git a/core/core.php b/core/core.php index d5f94073..98d6482f 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.55.dev'; + const ZWII_VERSION = '10.0.57.dev'; public static $actions = []; public static $coreModuleIds = [ @@ -1258,7 +1258,8 @@ class core extends common { $css .= 'nav{margin:0 20px 0}'; } } - //$css .= '#i18nBar {padding:' . $this->getData(['theme', 'menu', 'height']) . ';}'; + $css .= '#i18nBar {padding:' . $this->getData(['theme', 'menu', 'height']) . ';}'; + $css .= '.flag {height: ' . $this->getData(['theme', 'menu', 'fontSize']) . ';}'; $colors = helper::colorVariants($this->getData(['theme', 'menu', 'backgroundColor'])); $css .= 'nav #burgerText {color:' . $colors['text'] . ';font-family:"' . str_replace('+', ' ', $this->getData(['theme', 'menu', 'font'])) . '",sans-serif;' . 'font-weight:' . $this->getData(['theme', 'menu', 'fontWeight']) . ';text-transform:' . $this->getData(['theme', 'menu', 'textTransform']) . '}'; $css .= '#toggle span,#menu a{padding:' . $this->getData(['theme', 'menu', 'height']) .';font-family:"' . str_replace('+', ' ', $this->getData(['theme', 'menu', 'font'])) . '",sans-serif;font-weight:' . $this->getData(['theme', 'menu', 'fontWeight']) . ';font-size:' . $this->getData(['theme', 'menu', 'fontSize']) . ';text-transform:' . $this->getData(['theme', 'menu', 'textTransform']) . '}'; @@ -1277,8 +1278,6 @@ class core extends common { $css .= "footer #footersite > div {padding:0}"; $css .= "footer #footerbody > div {padding:0}"; $css .= '#footerFontText > p {margin-top: 0; margin-bottom: 0;}'; - //$css .= '#footersiteLeft, #footersiteCenter, #footersiteRight {padding:' . $this->getData(['theme', 'footer', 'height']) . ' 0}'; - //$css .= '#footerbodyLeft, #footerbodyCenter, #footerbodyRight {padding:' . $this->getData(['theme', 'footer', 'height']) . ' 0}'; $css .= '#footerSocials{text-align:' . $this->getData(['theme', 'footer', 'socialsAlign']) . '}'; $css .= '#footerText{text-align:' . $this->getData(['theme', 'footer', 'textAlign']) . '}'; $css .= '#footerCopyright{text-align:' . $this->getData(['theme', 'footer', 'copyrightAlign']) . '}'; @@ -2606,8 +2605,8 @@ class layout extends common { // ne pas afficher la barre de langue pour une seule // Sélection des langues installées if (sizeof($this->i18nInstalled()) > 1) { - $leftItems .= '
  • '; - $leftItems .= ''; //onchange="this.form.submit()" foreach ($this->i18nInstalled() as $itemKey => $item) { $leftItems .= '