From 84b8ffffa907ce806cafd02cf7a1fcdedc51dc6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tempez?= Date: Sun, 20 Mar 2022 09:15:06 +0100 Subject: [PATCH] init include fonts in progress --- CHANGES.md | 4 ++++ README.md | 2 +- core/core.php | 16 +++++++++------- core/module/config/view/connect/connect.php | 17 ++++++++--------- core/module/config/view/locale/locale.php | 4 ++-- core/module/config/view/network/network.php | 4 ++-- core/module/config/view/social/social.php | 12 ++++++------ core/module/theme/theme.php | 18 ++++++++++++++++++ 8 files changed, 50 insertions(+), 27 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 69b0a08a..d25527c3 100755 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,9 @@ # Changelog +## Version 11.3.06 +### Corrections : + - Bug d'affichage des blocs de présentation. + - Une fonte Websafe remplace une fonte locale dont le fichier n'est pas disponible. ## Version 11.3.05 ### Correction : diff --git a/README.md b/README.md index a88c8eb5..fac4b9db 100755 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# ZwiiCMS 11.3.05 +# ZwiiCMS 11.3.06 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 7b83ea50..ff6bc037 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.3.05'; + const ZWII_VERSION = '11.3.06'; const ZWII_UPDATE_CHANNEL = "v11"; public static $actions = []; @@ -2339,17 +2339,18 @@ class core extends common { /** * Fontes installées localement */ - // Validité du format if ( !empty($localFonts) ) { foreach ($localFonts as $fontId => $fontName) { // Validité du tableau : - if ( array_key_exists($fontId, self::$fonts) && + if ( array_key_exists($fontId, self::$fonts) || file_exists(self::DATA_DIR . 'fonts/' . $fontName) ) { // Chargement de la police - //$formatFont = explode('.', self::DATA_DIR . 'fonts/' . $fontName); $css .= '@font-face {font-family:"' . self::$fonts[$fontId] . '";'; $css .= 'src: url("' . helper::baseUrl(false) . self::DATA_DIR . 'fonts/' . $fontName . '");}'; + } else { + // Le fichier de font n'est pas disponible, fonte par défaut + $fonts [$fontId] = 'verdana'; } } @@ -2571,17 +2572,18 @@ class core extends common { /** * Fontes installées localement */ - // Validité du format if ( !empty($localFonts) ) { foreach ($localFonts as $fontId => $fontName) { // Validité du tableau : - if ( array_key_exists($fontId, self::$fonts) && + if ( array_key_exists($fontId, self::$fonts) || file_exists(self::DATA_DIR . 'fonts/' . $fontName) ) { // Chargement de la police - //$formatFont = explode('.', self::DATA_DIR . 'fonts/' . $fontName); $css .= '@font-face {font-family:"' . self::$fonts[$fontId] . '";'; $css .= 'src: url("' . helper::baseUrl(false) . self::DATA_DIR . 'fonts/' . $fontName . '");}'; + } else { + // Le fichier de font n'est pas disponible, fonte par défaut + $fonts [$fontId] = 'verdana'; } } diff --git a/core/module/config/view/connect/connect.php b/core/module/config/view/connect/connect.php index a7a5f4f1..d1980853 100644 --- a/core/module/config/view/connect/connect.php +++ b/core/module/config/view/connect/connect.php @@ -11,14 +11,13 @@
- $this->getData(['config', 'connect','captcha']) - ]); ?> - $this->getData(['config', 'connect', 'captchaStrong']), - 'help' => 'Option recommandée pour sécuriser la connexion. S\'applique à tous les captchas du site. Le captcha simple se limite à une addition de nombres de 0 à 10. Le captcha complexe utilise quatre opérations de nombres de 0 à 20. Activation recommandée.' - ]); ?> -
+ $this->getData(['config', 'connect','captcha']) + ]); ?> + $this->getData(['config', 'connect', 'captchaStrong']), + 'help' => 'Option recommandée pour sécuriser la connexion. S\'applique à tous les captchas du site. Le captcha simple se limite à une addition de nombres de 0 à 10. Le captcha complexe utilise quatre opérations de nombres de 0 à 20. Activation recommandée.' + ]); ?>
- + \ No newline at end of file diff --git a/core/module/config/view/locale/locale.php b/core/module/config/view/locale/locale.php index fb8faa85..c71451c9 100644 --- a/core/module/config/view/locale/locale.php +++ b/core/module/config/view/locale/locale.php @@ -23,7 +23,7 @@ - +
'Bouton de validation', 'value' => $this->getData(['locale', 'cookies', 'buttonValidLabel']), 'placeHolder' => 'J\'ai compris' - ]); ?> + ]); ?>
diff --git a/core/module/config/view/network/network.php b/core/module/config/view/network/network.php index 9c7785de..c7524ef3 100644 --- a/core/module/config/view/network/network.php +++ b/core/module/config/view/network/network.php @@ -4,7 +4,7 @@

Paramètres - + @@ -37,7 +37,7 @@
-

SMTP +

SMTP diff --git a/core/module/config/view/social/social.php b/core/module/config/view/social/social.php index aa27d95f..8ef40e88 100644 --- a/core/module/config/view/social/social.php +++ b/core/module/config/view/social/social.php @@ -2,9 +2,9 @@