68 lines
2.0 KiB
PHP
68 lines
2.0 KiB
PHP
<?php echo template::formOpen('themeEditFonts'); ?>
|
|
|
|
<div class="row">
|
|
<div class="col2">
|
|
<?php echo template::button('themeFontsBack', [
|
|
'class' => 'buttonGrey',
|
|
'href' => helper::baseUrl() . 'theme/fonts',
|
|
'ico' => 'left',
|
|
'value' => 'Retour'
|
|
]); ?>
|
|
</div>
|
|
<div class="col2">
|
|
<?php echo template::button('themeSiteHelp', [
|
|
'href' => 'https://doc.deltacms.fr/polices',
|
|
'target' => '_blank',
|
|
'ico' => 'help',
|
|
'value' => 'Aide',
|
|
'class' => 'buttonHelp'
|
|
]); ?>
|
|
</div>
|
|
<div class="col2 offset6">
|
|
<?php echo template::submit('editFontSubmit'); ?>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="block">
|
|
<h4>Paramètres de la police </h4>
|
|
<div class="row">
|
|
<div class="col4">
|
|
<?php echo template::text('nameEditFont', [
|
|
'value' => $this->getData(['fonts', $this->getUrl(2),'name']),
|
|
'label' => 'Nom de la police sélectionnée',
|
|
'readonly' => true,
|
|
'help' => 'Valeur non modifiable'
|
|
]); ?>
|
|
</div>
|
|
<div class="col4">
|
|
<?php echo template::select('typeEditFont', $module::$typeAddFont, [
|
|
'label' => 'Liaison avec un fichier de police',
|
|
'selected' => $this->getData(['fonts', $this->getUrl(2),'type']),
|
|
'help' => 'Le fichier de police est envoyé, ou pas, depuis un dépôt local'
|
|
]); ?>
|
|
</div>
|
|
<div class="col4">
|
|
<!-- Sélection d'un fichier font -->
|
|
<?php $key = array_search( $this->getData(['fonts', $this->getUrl(2),'file']), $module::$fontFiles);
|
|
echo template::select('fileEditFont', $module::$fontFiles, [
|
|
'selected' => $key,
|
|
'help' => 'Vous devez au préalable téléverser le fichier de police, ttf, woff, otf, eot ou woff2 dans le dossier fonts avec le gestionnaire de fichiers.',
|
|
'label' => 'Sélection d\'une police'
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
|
|
<div class="col4">
|
|
<?php echo template::text('licenseEditFont', [
|
|
'value' => $this->getData(['fonts', $this->getUrl(2),'license']),
|
|
'label' => 'License',
|
|
'help' => 'Type de license de la police'
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php echo template::formClose(); ?>
|
|
|
|
|