From c2dd9c7f99496799d42573f90f290aab551ad7b0 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Fri, 5 Jan 2024 20:30:57 +0100 Subject: [PATCH] charge les fontes avant tout + fontedit readonly --- core/layout/blank.php | 6 +++--- core/layout/light.php | 6 +++--- core/layout/main.php | 6 +++--- core/module/theme/view/fontEdit/fontEdit.php | 5 +++-- 4 files changed, 12 insertions(+), 11 deletions(-) diff --git a/core/layout/blank.php b/core/layout/blank.php index 0713285..a967336 100644 --- a/core/layout/blank.php +++ b/core/layout/blank.php @@ -12,13 +12,13 @@ showVendor(); ?> showStyle(); ?> showFonts(); ?> + + + - - - showContent(); ?> diff --git a/core/layout/light.php b/core/layout/light.php index b639f42..9796059 100644 --- a/core/layout/light.php +++ b/core/layout/light.php @@ -12,13 +12,13 @@ showVendor(); ?> showStyle(); ?> showFonts(); ?> + + + - - - showNotification(); ?> diff --git a/core/layout/main.php b/core/layout/main.php index 796c04a..517bdce 100644 --- a/core/layout/main.php +++ b/core/layout/main.php @@ -13,12 +13,12 @@ showFavicon(); ?> showVendor(); ?> showFonts(); ?> - - - + + + getData(['page', $this->getUrl(0), 'moduleId']) === 'blog' or $this->getData(['page', $this->getUrl(0), 'moduleId']) === 'news') diff --git a/core/module/theme/view/fontEdit/fontEdit.php b/core/module/theme/view/fontEdit/fontEdit.php index 3767aa9..99b082d 100644 --- a/core/module/theme/view/fontEdit/fontEdit.php +++ b/core/module/theme/view/fontEdit/fontEdit.php @@ -44,7 +44,8 @@ 'off', 'label' => 'Identifiant (sans espace ni majuscule)', - 'value' => $this->getUrl(3) + 'value' => $this->getUrl(3), + 'readonly' => true ]); ?>
@@ -69,7 +70,7 @@ 'Fichier de fonte (Format WOFF)', 'value' => $this->getUrl(2) === 'files' ? $this->getData(['font', $this->getUrl(2), $this->getUrl(3), 'resource']) : '', - 'disabled' => true + 'readonly' => true ]); ?>