From 2fa77bc4651f0289158d8704c230f8206b21fbaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tempez?= Date: Sun, 6 Feb 2022 11:32:29 +0100 Subject: [PATCH] version --- CHANGES.md | 6 +++++- README.md | 2 +- core/core.php | 18 +++++++++++++----- 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index da812bd5..2cb16613 100755 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,10 +1,14 @@ # Changelog -## Version 11.2.06 +## Version 11.3.00 - Correction : - Thème / site : problème d'aperçu du body. + - Bugs avec les sélecteurs de fontes. - Modification : + - Police de carcatères : + - Changement de fournisseur, CdnFont remplace Google Font. + - Thème / Bannière : ergonomie de l'information sur l'image sélectionnée. ## Version 11.2.05 diff --git a/README.md b/README.md index ba424c5e..f2902060 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# ZwiiCMS 11.2.06 +# ZwiiCMS 11.3.0 Zwii est un CMS sans base de données (flat-file) qui permet de créer et gérer facilement un site web sans aucune connaissance en programmation. diff --git a/core/core.php b/core/core.php index 276c527d..fba7b177 100644 --- a/core/core.php +++ b/core/core.php @@ -45,7 +45,7 @@ class common { // Numéro de version const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/update/raw/branch/master/'; - const ZWII_VERSION = '11.2.06'; + const ZWII_VERSION = '11.3.00'; const ZWII_UPDATE_CHANNEL = "v11"; public static $actions = []; @@ -2265,11 +2265,19 @@ class core extends common { if(empty($cssVersion[1]) OR $cssVersion[1] !== md5(json_encode($this->getData(['theme'])))) { // Version $css = '/*' . md5(json_encode($this->getData(['theme']))) . '*/'; + // Import des polices de caractères - $css .= '@import url("http://fonts.cdnfonts.com/css/' . $this->getData(['theme', 'text', 'font']) . '");'; - $css .= '@import url("http://fonts.cdnfonts.com/css/' . $this->getData(['theme', 'title', 'font']) . '");'; - $css .= '@import url("http://fonts.cdnfonts.com/css/' . $this->getData(['theme', 'header', 'font']) . '");'; - $css .= '@import url("http://fonts.cdnfonts.com/css/' . $this->getData(['theme', 'menu', 'font']) . '");'; + $importFonts = [$this->getData(['theme', 'text', 'font']), + $this->getData(['theme', 'title', 'font']), + $this->getData(['theme', 'header', 'font']), + $this->getData(['theme', 'menu', 'font']), + $this->getData(['theme', 'footer', 'font']) + ]; + $imporFonts = array_unique($importFonts); + foreach ($importFonts as $fontId) { + $css .= '@import url("http://fonts.cdnfonts.com/css/' . $fontId . '");'; + } + // Fond du body $colors = helper::colorVariants($this->getData(['theme', 'body', 'backgroundColor'])); // Body