From 23c5200aace8c72913a958280a7b97badd0c87d8 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Mon, 7 Feb 2022 10:27:21 +0100 Subject: [PATCH] Importation des polices --- core/core.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/core.php b/core/core.php index e764b036..8baa5512 100644 --- a/core/core.php +++ b/core/core.php @@ -2247,6 +2247,15 @@ class core extends common { } } } + + // Importe les polices personnalisées + $fontsImported = $this->getData(['fonts', 'imported']); + if (is_array($fontsImported) && + !empty ($fontsImported) + ) { + self::$fonts = array_merge(self::$fonts, $fontsImported); + } + // Crée le fichier de personnalisation avancée if(file_exists(self::DATA_DIR.'custom.css') === false) { file_put_contents(self::DATA_DIR.'custom.css', file_get_contents('core/module/theme/resource/custom.css'));