1408 commentaires

This commit is contained in:
Fred Tempez 2024-01-17 18:25:09 +01:00
parent 4d2bd1c34d
commit 91c6c0347a

View File

@ -628,7 +628,7 @@ class theme extends common
// Toutes les fontes installées sont chargées // Toutes les fontes installées sont chargées
$this->setFonts('all'); $this->setFonts('all');
// Polices liées au thème // Polices liées au thème admin
$admin = $this->getData(['admin']); $admin = $this->getData(['admin']);
$fonts['Admin Titre (admin)'] = $this->getData(['admin', 'fontTitle']); $fonts['Admin Titre (admin)'] = $this->getData(['admin', 'fontTitle']);
$fonts['Admin Texte (admin)'] = $this->getData(['admin', 'fontText']); $fonts['Admin Texte (admin)'] = $this->getData(['admin', 'fontText']);
@ -656,11 +656,12 @@ class theme extends common
foreach ($f as $type => $typeValue) { foreach ($f as $type => $typeValue) {
if (is_array($typeValue)) { if (is_array($typeValue)) {
foreach ($typeValue as $fontId => $fontValue) { foreach ($typeValue as $fontId => $fontValue) {
// Recherche les correrspondances // Recherche les correspondances
$result = array_filter($fonts, function($value) use ($fontId) { $result = array_filter($fonts, function($value) use ($fontId) {
return $value == $fontId; return $value == $fontId;
}); });
$keyResults = array_keys($result); $keyResults = array_keys($result);
// Préparation du tableau
self::$fontsDetail[] = [ self::$fontsDetail[] = [
$fontId, $fontId,
'<span style="font-family:' . $f[$type][$fontId]['font-family'] . '">' . $f[$type][$fontId]['name'] . '</span>', '<span style="font-family:' . $f[$type][$fontId]['font-family'] . '">' . $f[$type][$fontId]['name'] . '</span>',