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

163 lines
5.7 KiB
PHP
Raw Normal View History

<?php echo template::formOpen('configAdminForm'); ?>
2022-09-29 08:45:59 +02:00
<div class="row">
<div class="col1">
<?php echo template::button('configAdminBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() . 'theme',
'value' => template::ico('left')
]); ?>
</div>
<!--
<div class="col2 offset5">
2020-05-26 00:03:58 +02:00
<?php echo template::button('configAdminTest', [
'value' => 'Bouton Standard'
]); ?>
</div>
-->
2022-09-29 08:45:59 +02:00
<div class="col1 offset8">
<?php echo template::button('configAdminReset', [
'class' => 'buttonRed',
2023-06-20 19:58:29 +02:00
'href' => helper::baseUrl() . 'theme/reset/admin',
2022-09-29 08:45:59 +02:00
'value' => template::ico('cancel'),
'help' => 'Réinitialiser avec le thème par défaut'
]); ?>
</div>
<div class="col2">
<?php echo template::submit('configAdminSubmit', [
'value' => 'Valider',
'ico' => 'check'
]); ?>
</div>
2022-09-29 08:45:59 +02:00
</div>
<div class="row">
<div class="col12">
<div class="block">
2023-10-09 20:32:12 +02:00
<h4><?php echo helper::translate('Paramètres'); ?>
2022-09-29 08:45:59 +02:00
</h4>
<div class="row">
2023-10-09 20:32:12 +02:00
<div class="col3">
<?php echo template::select('adminSiteWidth', $module::$siteWidths, [
'label' => 'Largeur',
'selected' => $this->getData(['admin', 'width'])
]); ?>
</div>
<div class="col3">
2022-09-29 08:45:59 +02:00
<?php echo template::text('adminBackgroundColor', [
'class' => 'colorPicker',
'help' => 'Couleur visible en l\'absence d\'une image.<br />Le curseur horizontal règle le niveau de transparence.',
2022-10-02 10:59:42 +02:00
'label' => 'Arrière plan',
2022-09-29 08:45:59 +02:00
'value' => $this->getData(['admin', 'backgroundColor'])
]); ?>
2020-05-17 07:41:44 +02:00
</div>
2023-10-09 20:32:12 +02:00
<div class="col3">
2022-09-29 08:45:59 +02:00
<?php echo template::text('adminColorTitle', [
'class' => 'colorPicker',
'help' => 'Couleur visible en l\'absence d\'une image.<br />Le curseur horizontal règle le niveau de transparence.',
'label' => 'Titres',
'value' => $this->getData(['admin', 'colorTitle'])
]); ?>
</div>
2023-10-09 20:32:12 +02:00
<div class="col3">
2022-09-29 08:45:59 +02:00
<?php echo template::text('adminColorText', [
'class' => 'colorPicker',
'help' => 'Couleur visible en l\'absence d\'une image.<br />Le curseur horizontal règle le niveau de transparence.',
'label' => 'Texte',
'value' => $this->getData(['admin', 'colorText'])
]); ?>
</div>
</div>
<div class="row">
<div class="col4">
<?php echo template::text('adminBackGroundBlockColor', [
'class' => 'colorPicker',
'help' => 'Couleur visible en l\'absence d\'une image.<br />Le curseur horizontal règle le niveau de transparence. La couleur du texte est automatique.',
2022-10-02 10:59:42 +02:00
'label' => 'Arrière plan des champs',
2022-09-29 08:45:59 +02:00
'value' => $this->getData(['admin', 'backgroundBlockColor'])
]); ?>
</div>
<div class="col4">
<?php echo template::text('adminBorderBlockColor', [
'class' => 'colorPicker',
'help' => 'Couleur visible en l\'absence d\'une image.<br />Le curseur horizontal règle le niveau de transparence.',
'label' => 'Bordure des champs',
'value' => $this->getData(['admin', 'borderBlockColor'])
]); ?>
</div>
2023-10-09 20:32:12 +02:00
<div class="col4">
2022-09-29 08:45:59 +02:00
<?php echo template::text('adminColorHelp', [
'class' => 'colorPicker',
'help' => 'Couleur visible en l\'absence d\'une image.<br />Le curseur horizontal règle le niveau de transparence.',
'label' => 'Bouton Aide',
'value' => $this->getData(['admin', 'backgroundColorButtonHelp'])
]); ?>
</div>
</div>
<div class="row">
<div class="col3">
<?php echo template::text('adminColorGrey', [
'class' => 'colorPicker',
'help' => 'Couleur visible en l\'absence d\'une image.<br />Le curseur horizontal règle le niveau de transparence.',
'label' => 'Bouton retour',
'value' => $this->getData(['admin', 'backgroundColorButtonGrey'])
]); ?>
</div>
<div class="col3">
<?php echo template::text('adminColorButton', [
'class' => 'colorPicker',
'help' => 'Couleur visible en l\'absence d\'une image.<br />Le curseur horizontal règle le niveau de transparence.',
'label' => 'Bouton standard',
'value' => $this->getData(['admin', 'backgroundColorButton'])
]); ?>
</div>
<div class="col3">
<?php echo template::text('adminColorRed', [
'class' => 'colorPicker',
'help' => 'Couleur visible en l\'absence d\'une image.<br />Le curseur horizontal règle le niveau de transparence.',
'label' => 'Bouton effacement',
'value' => $this->getData(['admin', 'backgroundColorButtonRed'])
]); ?>
</div>
<div class="col3">
<?php echo template::text('adminColorGreen', [
'class' => 'colorPicker',
'help' => 'Couleur visible en l\'absence d\'une image.<br />Le curseur horizontal règle le niveau de transparence.',
'label' => 'Bouton validation',
'value' => $this->getData(['admin', 'backgroundColorButtonGreen'])
]); ?>
</div>
</div>
</div>
</div>
2022-09-29 08:45:59 +02:00
</div>
<div class="row">
<div class="col12">
<div class="block">
2022-10-03 18:37:25 +02:00
<h4><?php echo helper::translate('Mise en forme du texte'); ?>
2022-09-29 08:45:59 +02:00
</h4>
<div class="row">
<div class="col4">
<?php echo template::select('adminFontText', $module::$fonts['name'], [
'label' => 'Police du texte',
'selected' => $this->getData(['admin', 'fontText']),
2023-03-01 15:50:41 +01:00
'font' => $module::$fonts['family']
2022-09-29 08:45:59 +02:00
]); ?>
</div>
<div class="col4">
<?php echo template::select('adminFontTextSize', $module::$siteFontSizes, [
'label' => 'Taille',
'selected' => $this->getData(['admin', 'fontSize'])
]); ?>
</div>
<div class="col4">
<?php echo template::select('adminFontTitle', $module::$fonts['name'], [
'label' => 'Police des titres',
'selected' => $this->getData(['admin', 'fontTitle']),
2023-03-01 15:50:41 +01:00
'font' => $module::$fonts['family']
2022-09-29 08:45:59 +02:00
]); ?>
</div>
</div>
</div>
</div>
2022-09-29 08:45:59 +02:00
</div>
</div>
<?php echo template::formClose(); ?>