From 66faa596dd62b95212c1efc5519527cabb0bf067 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Tue, 8 Mar 2022 15:22:22 +0100 Subject: [PATCH] =?UTF-8?q?commentaire=20et=20polices=20par=20d=C3=A9faut?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core.php | 4 +--- core/module/install/install.php | 14 +++++++------- core/module/install/ressource/defaultdata.php | 14 +++++++------- 3 files changed, 15 insertions(+), 17 deletions(-) diff --git a/core/core.php b/core/core.php index d1e969b2..dd8c4054 100644 --- a/core/core.php +++ b/core/core.php @@ -2332,9 +2332,8 @@ class core extends common { } /** - * Chargement des polices en ligne dans un fichier séparé + * Chargement des polices en ligne dans un fichier fonts.html inclus dans main.php */ - // Lire le fichier des fontes locales $localFonts = $this->getData(['fonts', 'files']); $fontFile = ''; foreach ($fonts as $fontId) { @@ -2348,7 +2347,6 @@ class core extends common { /** * Fontes installées localement */ - // Validité du format if ( !empty($localFonts) ) { foreach ($localFonts as $fontId => $fontName) { diff --git a/core/module/install/install.php b/core/module/install/install.php index 365defc2..af854cb8 100644 --- a/core/module/install/install.php +++ b/core/module/install/install.php @@ -54,11 +54,11 @@ class install extends common { $userLastname = $this->getInput('installLastname', helper::FILTER_STRING_SHORT, true); $userMail = $this->getInput('installMail', helper::FILTER_MAIL, true); $userId = $this->getInput('installId', helper::FILTER_ID, true); - + // Création de l'utilisateur si les données sont complétées. // success retour de l'enregistrement des données - + $success = $this->setData([ 'user', $userId, @@ -73,7 +73,7 @@ class install extends common { 'password' => $this->getInput('installPassword', helper::FILTER_PASSWORD, true) ] ]); - + // Compte créé, envoi du mail et création des données du site if ($success) { // Formulaire complété envoi du mail // Envoie le mail @@ -97,7 +97,7 @@ class install extends common { $this->setData(['module', 'blog', 'posts', 'mon-premier-article', 'userId', $userId]); $this->setData(['module', 'blog', 'posts', 'mon-deuxieme-article', 'userId', $userId]); $this->setData(['module', 'blog', 'posts', 'mon-troisieme-article', 'userId', $userId]); - } + } // Images exemples livrées dans tous les cas try { // Décompression dans le dossier de fichier temporaires @@ -120,7 +120,7 @@ class install extends common { // Créer le dossier des fontes if (!is_dir(self::DATA_DIR . 'fonts')) { mkdir(self::DATA_DIR . 'fonts'); - } + } // Stocker le dossier d'installation $this->setData(['core', 'baseUrl', helper::baseUrl(false,false) ]); // Créer sitemap @@ -141,7 +141,7 @@ class install extends common { } $this->copyDir('core/module/install/ressource/themes', self::FILE_DIR . 'source/theme'); unlink(self::FILE_DIR . 'source/theme/themes.json'); - + // Valeurs en sortie $this->addOutput([ 'redirect' => helper::baseUrl(false), @@ -154,7 +154,7 @@ class install extends common { $dataThemes = file_get_contents('core/module/install/ressource/themes/themes.json'); $dataThemes = json_decode($dataThemes, true); self::$themes = helper::arrayCollumn($dataThemes, 'name'); - + // Valeurs en sortie $this->addOutput([ 'display' => self::DISPLAY_LAYOUT_LIGHT, diff --git a/core/module/install/ressource/defaultdata.php b/core/module/install/ressource/defaultdata.php index 8cf73dbd..583eb1e9 100644 --- a/core/module/install/ressource/defaultdata.php +++ b/core/module/install/ressource/defaultdata.php @@ -153,7 +153,7 @@ class init extends common { ], 'footer' => [ 'backgroundColor' => 'rgba(255, 255, 255, 1)', - 'font' => 'open-sans', + 'font' => 'georgia', 'fontSize' => '.8em', 'fontWeight' => 'normal', 'height' => '5px', @@ -180,7 +180,7 @@ class init extends common { ], 'header' => [ 'backgroundColor' => 'rgba(32, 59, 82, 1)', - 'font' => 'oswald-4', + 'font' => 'arial', 'fontSize' => '2em', 'fontWeight' => 'normal', 'height' => '150px', @@ -203,7 +203,7 @@ class init extends common { 'menu' => [ 'backgroundColor' => 'rgba(32, 59, 82, 1)', 'backgroundColorSub' => 'rgba(32, 59, 82, 1)', - 'font' => 'open-sans', + 'font' => 'georgia', 'fontSize' => '1em', 'fontWeight' => 'normal', 'height' => '15px 10px', @@ -234,13 +234,13 @@ class init extends common { 'borderColor' => 'rgba(236, 239, 241, 1)' ], 'text' => [ - 'font' => 'open-sans', + 'font' => 'georgia', 'fontSize' => '13px', 'textColor' => 'rgba(33, 34, 35, 1)', 'linkColor' => 'rgba(74, 105, 189, 1)' ], 'title' => [ - 'font' => 'oswald-4', + 'font' => 'arial', 'fontWeight' => 'normal', 'textColor' => 'rgba(74, 105, 189, 1)', 'textTransform' => 'none' @@ -252,9 +252,9 @@ class init extends common { ], 'admin' => [ 'backgroundColor' => 'rgba(255, 255, 255, 1)', - 'fontText' => 'open-sans', + 'fontText' => 'georgia', 'fontSize' => '13px', - 'fontTitle' => 'oswald-4', + 'fontTitle' => 'arial', 'colorText' => 'rgba(33, 34, 35, 1)', 'colorTitle' => 'rgba(74, 105, 189, 1)', 'backgroundColorButton' => 'rgba(74, 105, 189, 1)',