ZwiiCMS/core/module/theme/view/fontAdd/fontAdd.php

85 lines
2.4 KiB
PHP
Raw Normal View History

2022-02-08 17:00:08 +01:00
<?php echo template::formOpen('fontAddForm'); ?>
2022-09-29 08:45:59 +02:00
<div class="row">
<div class="col1">
<?php echo template::button('fontAddBack', [
'class' => 'buttonGrey',
2024-01-03 00:03:36 +01:00
'href' => helper::baseUrl() . 'theme/font',
2022-09-29 08:45:59 +02:00
'value' => template::ico('left')
]); ?>
2022-02-08 17:00:08 +01:00
</div>
2022-09-29 08:45:59 +02:00
<div class="col1">
<?php /* echo template::button('fontAddHelp', [
2022-09-29 08:45:59 +02:00
'href' => 'https://doc.zwiicms.fr/fontes#add',
'target' => '_blank',
'value' => template::ico('help'),
'class' => 'buttonHelp'
]); */ ?>
2022-09-29 08:45:59 +02:00
</div>
<div class="col2 offset8">
<?php echo template::submit('fontAddPublish', [
'value' => 'Valider',
'uniqueSubmission' => true
]); ?>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
2022-10-03 18:37:25 +02:00
<h4><?php echo helper::translate('Identité de la fonte'); ?>
2022-09-29 08:45:59 +02:00
</h4>
<div class="row">
<div class="col6">
<?php echo template::checkbox('fontAddFontImported', true, 'Fonte en ligne', [
'checked' => true
]); ?>
</div>
<div class="col6">
<?php echo template::checkbox('fontAddFontFile', true, 'Fonte installée', []); ?>
2022-02-09 16:17:56 +01:00
</div>
2022-09-29 08:45:59 +02:00
</div>
<div class="row">
<div class="col6">
<?php echo template::text('fontAddFontId', [
'autocomplete' => 'off',
'label' => 'Identifiant (sans espace ni majuscule)',
'placeholder' => 'big-marker-extrude'
2022-02-08 17:00:08 +01:00
2022-09-29 08:45:59 +02:00
]); ?>
</div>
<div class="col6">
<?php echo template::text('fontAddFontName', [
'autocomplete' => 'off',
'label' => 'Nom',
'placeholder' => 'Big Marker Extrude'
]); ?>
2022-02-08 17:00:08 +01:00
</div>
2022-09-29 08:45:59 +02:00
</div>
<div class="row">
<div class="col12">
2022-03-11 11:12:16 +01:00
<?php echo template::text('fontAddFontFamilyName', [
2022-09-29 08:45:59 +02:00
'autocomplete' => 'off',
'label' => 'Famille',
'placeholder' => "'Big Marker Extrude', sans-serif"
]); ?>
2022-03-11 11:12:16 +01:00
</div>
2022-09-29 08:45:59 +02:00
</div>
<div class="row" id="containerFontAddFile">
<div class="col12">
<?php echo template::file('fontAddFile', [
'language' => $this->getData(['user', $this->getUser('id'), 'language']),
2022-09-29 08:45:59 +02:00
'label' => 'Fichier de fonte (Format WOFF)'
]); ?>
2022-03-11 11:12:16 +01:00
</div>
2022-09-29 08:45:59 +02:00
</div>
<div class="row" id="containerFontAddUrl">
<div class="col12">
<?php echo template::text('fontAddUrl', [
'label' => 'Url du fichier de fonte',
'placeholder' => 'https://fonts.cdnfonts.com/css/big-marker-extrude'
]); ?>
2022-02-08 17:00:08 +01:00
</div>
</div>
</div>
</div>
2022-09-29 08:45:59 +02:00
</div>
2022-02-08 17:00:08 +01:00
<?php echo template::formClose(); ?>