commentaire et polices par défaut

This commit is contained in:
fredtempez 2022-03-08 15:22:22 +01:00
parent 3d243e3463
commit 66faa596dd
3 changed files with 15 additions and 17 deletions

View File

@ -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']); $localFonts = $this->getData(['fonts', 'files']);
$fontFile = ''; $fontFile = '';
foreach ($fonts as $fontId) { foreach ($fonts as $fontId) {
@ -2348,7 +2347,6 @@ class core extends common {
/** /**
* Fontes installées localement * Fontes installées localement
*/ */
// Validité du format
if ( !empty($localFonts) if ( !empty($localFonts)
) { ) {
foreach ($localFonts as $fontId => $fontName) { foreach ($localFonts as $fontId => $fontName) {

View File

@ -54,11 +54,11 @@ class install extends common {
$userLastname = $this->getInput('installLastname', helper::FILTER_STRING_SHORT, true); $userLastname = $this->getInput('installLastname', helper::FILTER_STRING_SHORT, true);
$userMail = $this->getInput('installMail', helper::FILTER_MAIL, true); $userMail = $this->getInput('installMail', helper::FILTER_MAIL, true);
$userId = $this->getInput('installId', helper::FILTER_ID, true); $userId = $this->getInput('installId', helper::FILTER_ID, true);
// Création de l'utilisateur si les données sont complétées. // Création de l'utilisateur si les données sont complétées.
// success retour de l'enregistrement des données // success retour de l'enregistrement des données
$success = $this->setData([ $success = $this->setData([
'user', 'user',
$userId, $userId,
@ -73,7 +73,7 @@ class install extends common {
'password' => $this->getInput('installPassword', helper::FILTER_PASSWORD, true) 'password' => $this->getInput('installPassword', helper::FILTER_PASSWORD, true)
] ]
]); ]);
// Compte créé, envoi du mail et création des données du site // Compte créé, envoi du mail et création des données du site
if ($success) { // Formulaire complété envoi du mail if ($success) { // Formulaire complété envoi du mail
// Envoie le 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-premier-article', 'userId', $userId]);
$this->setData(['module', 'blog', 'posts', 'mon-deuxieme-article', 'userId', $userId]); $this->setData(['module', 'blog', 'posts', 'mon-deuxieme-article', 'userId', $userId]);
$this->setData(['module', 'blog', 'posts', 'mon-troisieme-article', 'userId', $userId]); $this->setData(['module', 'blog', 'posts', 'mon-troisieme-article', 'userId', $userId]);
} }
// Images exemples livrées dans tous les cas // Images exemples livrées dans tous les cas
try { try {
// Décompression dans le dossier de fichier temporaires // Décompression dans le dossier de fichier temporaires
@ -120,7 +120,7 @@ class install extends common {
// Créer le dossier des fontes // Créer le dossier des fontes
if (!is_dir(self::DATA_DIR . 'fonts')) { if (!is_dir(self::DATA_DIR . 'fonts')) {
mkdir(self::DATA_DIR . 'fonts'); mkdir(self::DATA_DIR . 'fonts');
} }
// Stocker le dossier d'installation // Stocker le dossier d'installation
$this->setData(['core', 'baseUrl', helper::baseUrl(false,false) ]); $this->setData(['core', 'baseUrl', helper::baseUrl(false,false) ]);
// Créer sitemap // Créer sitemap
@ -141,7 +141,7 @@ class install extends common {
} }
$this->copyDir('core/module/install/ressource/themes', self::FILE_DIR . 'source/theme'); $this->copyDir('core/module/install/ressource/themes', self::FILE_DIR . 'source/theme');
unlink(self::FILE_DIR . 'source/theme/themes.json'); unlink(self::FILE_DIR . 'source/theme/themes.json');
// Valeurs en sortie // Valeurs en sortie
$this->addOutput([ $this->addOutput([
'redirect' => helper::baseUrl(false), 'redirect' => helper::baseUrl(false),
@ -154,7 +154,7 @@ class install extends common {
$dataThemes = file_get_contents('core/module/install/ressource/themes/themes.json'); $dataThemes = file_get_contents('core/module/install/ressource/themes/themes.json');
$dataThemes = json_decode($dataThemes, true); $dataThemes = json_decode($dataThemes, true);
self::$themes = helper::arrayCollumn($dataThemes, 'name'); self::$themes = helper::arrayCollumn($dataThemes, 'name');
// Valeurs en sortie // Valeurs en sortie
$this->addOutput([ $this->addOutput([
'display' => self::DISPLAY_LAYOUT_LIGHT, 'display' => self::DISPLAY_LAYOUT_LIGHT,

View File

@ -153,7 +153,7 @@ class init extends common {
], ],
'footer' => [ 'footer' => [
'backgroundColor' => 'rgba(255, 255, 255, 1)', 'backgroundColor' => 'rgba(255, 255, 255, 1)',
'font' => 'open-sans', 'font' => 'georgia',
'fontSize' => '.8em', 'fontSize' => '.8em',
'fontWeight' => 'normal', 'fontWeight' => 'normal',
'height' => '5px', 'height' => '5px',
@ -180,7 +180,7 @@ class init extends common {
], ],
'header' => [ 'header' => [
'backgroundColor' => 'rgba(32, 59, 82, 1)', 'backgroundColor' => 'rgba(32, 59, 82, 1)',
'font' => 'oswald-4', 'font' => 'arial',
'fontSize' => '2em', 'fontSize' => '2em',
'fontWeight' => 'normal', 'fontWeight' => 'normal',
'height' => '150px', 'height' => '150px',
@ -203,7 +203,7 @@ class init extends common {
'menu' => [ 'menu' => [
'backgroundColor' => 'rgba(32, 59, 82, 1)', 'backgroundColor' => 'rgba(32, 59, 82, 1)',
'backgroundColorSub' => 'rgba(32, 59, 82, 1)', 'backgroundColorSub' => 'rgba(32, 59, 82, 1)',
'font' => 'open-sans', 'font' => 'georgia',
'fontSize' => '1em', 'fontSize' => '1em',
'fontWeight' => 'normal', 'fontWeight' => 'normal',
'height' => '15px 10px', 'height' => '15px 10px',
@ -234,13 +234,13 @@ class init extends common {
'borderColor' => 'rgba(236, 239, 241, 1)' 'borderColor' => 'rgba(236, 239, 241, 1)'
], ],
'text' => [ 'text' => [
'font' => 'open-sans', 'font' => 'georgia',
'fontSize' => '13px', 'fontSize' => '13px',
'textColor' => 'rgba(33, 34, 35, 1)', 'textColor' => 'rgba(33, 34, 35, 1)',
'linkColor' => 'rgba(74, 105, 189, 1)' 'linkColor' => 'rgba(74, 105, 189, 1)'
], ],
'title' => [ 'title' => [
'font' => 'oswald-4', 'font' => 'arial',
'fontWeight' => 'normal', 'fontWeight' => 'normal',
'textColor' => 'rgba(74, 105, 189, 1)', 'textColor' => 'rgba(74, 105, 189, 1)',
'textTransform' => 'none' 'textTransform' => 'none'
@ -252,9 +252,9 @@ class init extends common {
], ],
'admin' => [ 'admin' => [
'backgroundColor' => 'rgba(255, 255, 255, 1)', 'backgroundColor' => 'rgba(255, 255, 255, 1)',
'fontText' => 'open-sans', 'fontText' => 'georgia',
'fontSize' => '13px', 'fontSize' => '13px',
'fontTitle' => 'oswald-4', 'fontTitle' => 'arial',
'colorText' => 'rgba(33, 34, 35, 1)', 'colorText' => 'rgba(33, 34, 35, 1)',
'colorTitle' => 'rgba(74, 105, 189, 1)', 'colorTitle' => 'rgba(74, 105, 189, 1)',
'backgroundColorButton' => 'rgba(74, 105, 189, 1)', 'backgroundColorButton' => 'rgba(74, 105, 189, 1)',