diff --git a/core/module/theme/view/fontAdd/fontAdd.js.php b/core/module/theme/view/fontAdd/fontAdd.js.php index dd53c7cf..ab356c53 100644 --- a/core/module/theme/view/fontAdd/fontAdd.js.php +++ b/core/module/theme/view/fontAdd/fontAdd.js.php @@ -15,7 +15,8 @@ */ $(document).ready(function(){ $('input[name=fontAddFontImported]').prop('checked', true); - $('#fontAddFileWrapper').hide(); + $('input[name=fontAddFontUrl]').prop('checked', false); + $('#containerFontAddUrl').hide(); }); @@ -28,7 +29,8 @@ $("input[name=fontAddFontImported]").on("click", function() { } else { $('input[name=fontAddFontFile]').prop('checked', true); } - $('#fontAddFileWrapper').hide(); + $('#containerFontAddFile').hide(); + $('#containerFontAddUrl').show(); }); $("input[name=fontAddFontFile]").on("click", function() { @@ -37,5 +39,6 @@ $("input[name=fontAddFontFile]").on("click", function() { } else { $('input[name=fontAddFontImported]').prop('checked', true); } - $('#fontAddFileWrapper').show(); + $('#containerFontAddFile').show(); + $('#containerFontAddUrl').hide(); }); diff --git a/core/module/theme/view/fontAdd/fontAdd.php b/core/module/theme/view/fontAdd/fontAdd.php index 9085f503..ebe3daf9 100644 --- a/core/module/theme/view/fontAdd/fontAdd.php +++ b/core/module/theme/view/fontAdd/fontAdd.php @@ -30,14 +30,10 @@

Identité de la fonte

- cdnFonts', [ - 'help' => 'Police utilisée en ligne, se connecter sur cdnFonts pour récupérer les informations nécessaires.' - ]); ?> +
- 'Sélectionnez un fichier de fonte au format WOFF.' - ]); ?> +
@@ -45,23 +41,39 @@ 'off', 'label' => 'Identifiant (sans espace ni majuscule)', - 'placeholder' => 'perry-gothic' + 'placeholder' => 'big-marker-extrude' ]); ?>
'off', - 'label' => 'Nom (Font Family)', - 'placeholder' => 'PerryGothic' + 'label' => 'Nom', + 'placeholder' => 'Big Marker Extrude' ]); ?>
+
+ 'off', + 'label' => 'Famille', + 'placeholder' => "'Big Marker Extrude', sans-serif" + ]); ?> +
+
+
'Fichier de police (Format WOFF)', - 'placeholder' => 'https://fonts.cdnfonts.com/s/7896/PERRYGOT.woff' + 'label' => 'Fichier de fonte (Format WOFF)' + ]); ?> +
+
+
+
+ 'Url du fichier de fonte', + 'placeholder' => 'https://fonts.cdnfonts.com/css/big-marker-extrude' ]); ?>