|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
<?php echo template::formOpen('fontAddForm'); ?>
|
|
|
|
|
<?php echo template::formOpen('fontEditForm'); ?>
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col2">
|
|
|
|
|
<?php echo template::button('fontAddBack', [
|
|
|
|
|
<?php echo template::button('fontEditBack', [
|
|
|
|
|
'class' => 'buttonGrey',
|
|
|
|
|
'href' => helper::baseUrl() . 'theme/fonts',
|
|
|
|
|
'ico' => 'left',
|
|
|
|
@ -9,7 +9,7 @@
|
|
|
|
|
]); ?>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col2">
|
|
|
|
|
<?php echo template::button('pageEditHelp', [
|
|
|
|
|
<?php echo template::button('fontEditHelp', [
|
|
|
|
|
'href' => 'https://doc.zwiicms.fr/fontes#add',
|
|
|
|
|
'target' => '_blank',
|
|
|
|
|
'ico' => 'help',
|
|
|
|
@ -18,7 +18,7 @@
|
|
|
|
|
]); ?>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col2 offset6">
|
|
|
|
|
<?php echo template::submit('fontAddPublish', [
|
|
|
|
|
<?php echo template::submit('fontEditPublish', [
|
|
|
|
|
'value' => 'Valider',
|
|
|
|
|
'uniqueSubmission' => true
|
|
|
|
|
]); ?>
|
|
|
|
@ -30,51 +30,67 @@
|
|
|
|
|
<h4>Identité de la fonte</h4>
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col6">
|
|
|
|
|
<?php echo template::checkbox('fontAddFontImported', true, 'Fonte en ligne', []); ?>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col6">
|
|
|
|
|
<?php echo template::checkbox('fontAddFontFile', true,'Fonte installée', []); ?>
|
|
|
|
|
<?php switch ($this->getUrl(2)) {
|
|
|
|
|
case 'imported':
|
|
|
|
|
echo template::checkbox('fontEditFontImported', true, 'Fonte en ligne',[
|
|
|
|
|
'checked' => true
|
|
|
|
|
]);
|
|
|
|
|
break;
|
|
|
|
|
case 'files':
|
|
|
|
|
echo template::checkbox('fontEditFontFile', true,'Fonte installée', [
|
|
|
|
|
'checked' => true
|
|
|
|
|
]);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col6">
|
|
|
|
|
<?php echo template::text('fontAddFontId', [
|
|
|
|
|
<?php echo template::text('fontEditFontId', [
|
|
|
|
|
'autocomplete' => 'off',
|
|
|
|
|
'label' => 'Identifiant (sans espace ni majuscule)',
|
|
|
|
|
'placeholder' => 'big-marker-extrude'
|
|
|
|
|
'value' => $this->getUrl(3)
|
|
|
|
|
|
|
|
|
|
]); ?>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col6">
|
|
|
|
|
<?php echo template::text('fontAddFontName', [
|
|
|
|
|
<?php echo template::text('fontEditFontName', [
|
|
|
|
|
'autocomplete' => 'off',
|
|
|
|
|
'label' => 'Nom',
|
|
|
|
|
'placeholder' => 'Big Marker Extrude'
|
|
|
|
|
'value' => $this->getData(['fonts', $this->getUrl(2), $this->getUrl(3), 'name'])
|
|
|
|
|
]); ?>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col12">
|
|
|
|
|
<?php echo template::text('fontAddFontFamilyName', [
|
|
|
|
|
<?php echo template::text('fontEditFontFamilyName', [
|
|
|
|
|
'autocomplete' => 'off',
|
|
|
|
|
'label' => 'Famille',
|
|
|
|
|
'placeholder' => "'Big Marker Extrude', sans-serif"
|
|
|
|
|
]); ?>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row" id="containerFontAddFile">
|
|
|
|
|
<div class="col12">
|
|
|
|
|
<?php echo template::file('fontAddFile', [
|
|
|
|
|
'label' => 'Fichier de fonte (Format WOFF)'
|
|
|
|
|
'value' => $this->getData(['fonts', $this->getUrl(2), $this->getUrl(3), 'font-family'])
|
|
|
|
|
]); ?>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row" id="containerFontAddUrl">
|
|
|
|
|
<div class="row" id="containerfontEditFile">
|
|
|
|
|
<div class="col12">
|
|
|
|
|
<?php echo template::text('fontAddUrl', [
|
|
|
|
|
'label' => 'Url du fichier de fonte',
|
|
|
|
|
'placeholder' => 'https://fonts.cdnfonts.com/css/big-marker-extrude'
|
|
|
|
|
]); ?>
|
|
|
|
|
<?php switch ($this->getUrl(2)) {
|
|
|
|
|
case 'imported':
|
|
|
|
|
echo template::text('fontEditUrl', [
|
|
|
|
|
'label' => 'Url du fichier de fonte',
|
|
|
|
|
'value' => $this->getData(['fonts', $this->getUrl(2), $this->getUrl(3), 'ressource']),
|
|
|
|
|
'class' => $this->getUrl(2) === 'imported' ? '' : 'noDisplay'
|
|
|
|
|
]);
|
|
|
|
|
break;
|
|
|
|
|
case 'files':
|
|
|
|
|
echo template::file('fontEditFile', [
|
|
|
|
|
'label' => 'Fichier de fonte (Format WOFF)',
|
|
|
|
|
'value' => $this->getData(['fonts', $this->getUrl(2), $this->getUrl(3), 'ressource']),
|
|
|
|
|
'class' => $this->getUrl(2) === 'file' ? '' : 'noDisplay'
|
|
|
|
|
]);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|