2018-04-02 08:29:19 +02:00
|
|
|
<?php echo template::formOpen('themeMenuForm'); ?>
|
2019-06-27 21:10:50 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="col2">
|
|
|
|
<?php echo template::button('themeMenuBack', [
|
2018-04-02 08:29:19 +02:00
|
|
|
'class' => 'buttonGrey',
|
|
|
|
'href' => helper::baseUrl() . 'theme',
|
|
|
|
'ico' => 'left',
|
|
|
|
'value' => 'Retour'
|
|
|
|
]); ?>
|
2019-06-27 21:10:50 +02:00
|
|
|
</div>
|
|
|
|
<div class="col2 offset8">
|
|
|
|
<?php echo template::submit('themeMenuSubmit'); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
2019-12-06 18:51:33 +01:00
|
|
|
<div class="col12">
|
2019-06-27 21:10:50 +02:00
|
|
|
<div class="block">
|
|
|
|
<h4>Couleur</h4>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::text('themeMenuBackgroundColor', [
|
2018-04-02 08:29:19 +02:00
|
|
|
'class' => 'colorPicker',
|
2019-05-02 13:21:48 +02:00
|
|
|
'help' => 'Le curseur horizontal règle le niveau de transparence.',
|
2018-04-02 08:29:19 +02:00
|
|
|
'label' => 'Fond',
|
|
|
|
'value' => $this->getData(['theme', 'menu', 'backgroundColor'])
|
|
|
|
]); ?>
|
2019-06-27 21:10:50 +02:00
|
|
|
</div>
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::text('themeMenuTextColor', [
|
2018-04-02 08:29:19 +02:00
|
|
|
'class' => 'colorPicker',
|
2019-05-02 13:21:48 +02:00
|
|
|
'help' => 'Le curseur horizontal règle le niveau de transparence.',
|
2018-04-02 08:29:19 +02:00
|
|
|
'label' => 'Texte',
|
|
|
|
'value' => $this->getData(['theme', 'menu', 'textColor'])
|
|
|
|
]); ?>
|
2019-06-27 21:10:50 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-29 15:31:37 +01:00
|
|
|
<div class="row">
|
2019-11-29 16:09:28 +01:00
|
|
|
<div class="col6">
|
2019-12-06 18:51:33 +01:00
|
|
|
<?php
|
2019-12-10 15:38:37 +01:00
|
|
|
echo template::checkbox('themeMenuActiveColorAuto', true, 'Page sélectionnée, couleur de fond automatique ', [
|
2019-12-06 18:51:33 +01:00
|
|
|
'checked' => is_null($this->getData(['theme', 'menu', 'activeColor'])) ? true : $this->getData(['theme', 'menu', 'activeColorAuto']),
|
2019-11-29 16:09:28 +01:00
|
|
|
'help' => 'La couleur de fond de la page active peut être définie automatique ou selon une couleur définie, comme par exemple celle de fond des pages.'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
2019-11-29 15:31:37 +01:00
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::text('themeMenuActiveColor', [
|
|
|
|
'class' => 'colorPicker',
|
2019-12-10 15:38:37 +01:00
|
|
|
'help' => 'Couleur de fond de la page sélectionnée dans le menu.<br>Le curseur horizontal règle le niveau de transparence.',
|
|
|
|
'label' => 'Fond',
|
2019-11-29 15:31:37 +01:00
|
|
|
'value' => $this->getData(['theme', 'menu', 'activeColor'])
|
|
|
|
]); ?>
|
2019-11-29 16:09:28 +01:00
|
|
|
</div>
|
2019-11-29 15:31:37 +01:00
|
|
|
</div>
|
2019-06-27 21:10:50 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-12-06 18:51:33 +01:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
2019-06-27 21:10:50 +02:00
|
|
|
<div class="block">
|
2019-12-10 17:36:13 +01:00
|
|
|
<h4>Contenus</h4>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::checkbox('themeMenuLoginLink', true, 'Lien de connexion', [
|
|
|
|
'checked' => $this->getData(['theme', 'menu', 'loginLink'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::checkbox('themeMenuBurgerTitle', true, 'Titre du site dans le menu réduit', [
|
|
|
|
'checked' => $this->getData(['theme', 'menu', 'burgerTitle']),
|
|
|
|
'help' => 'Le menu burger remplace le menu complet lorsque la largeur de l\'écran n\'est pas suffisante.'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-06-27 21:10:50 +02:00
|
|
|
</div>
|
2019-06-27 12:01:16 +02:00
|
|
|
</div>
|
2019-06-27 21:10:50 +02:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
|
|
|
<div class="block">
|
|
|
|
<h4>Mise en forme du texte</h4>
|
|
|
|
<div class="row">
|
2019-11-29 16:44:24 +01:00
|
|
|
<div class="col6">
|
2019-06-27 21:10:50 +02:00
|
|
|
<?php echo template::select('themeMenuFont', $module::$fonts, [
|
2018-12-09 00:52:05 +01:00
|
|
|
'label' => 'Police',
|
2020-02-18 15:20:21 +01:00
|
|
|
'selected' => $this->getData(['theme', 'menu', 'font']),
|
|
|
|
'fonts' => true
|
2018-12-09 00:52:05 +01:00
|
|
|
]); ?>
|
2019-06-27 21:10:50 +02:00
|
|
|
</div>
|
2019-11-29 16:44:24 +01:00
|
|
|
<div class="col6">
|
2019-06-27 21:10:50 +02:00
|
|
|
<?php echo template::select('themeMenuFontSize', $module::$menuFontSizes, [
|
2018-12-09 00:52:05 +01:00
|
|
|
'label' => 'Taille',
|
2019-03-20 18:25:17 +01:00
|
|
|
'help' => 'Proportionnelle à celle définie dans le site',
|
2018-12-09 00:52:05 +01:00
|
|
|
'selected' => $this->getData(['theme', 'menu', 'fontSize'])
|
2019-06-27 21:10:50 +02:00
|
|
|
]); ?>
|
|
|
|
</div>
|
2019-11-29 16:44:24 +01:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col6">
|
2019-06-27 21:10:50 +02:00
|
|
|
<?php echo template::select('themeMenuFontWeight', $module::$fontWeights, [
|
2019-03-20 20:05:03 +01:00
|
|
|
'label' => 'Style',
|
|
|
|
'selected' => $this->getData(['theme', 'menu', 'fontWeight'])
|
|
|
|
]); ?>
|
2019-06-27 21:10:50 +02:00
|
|
|
</div>
|
2019-11-29 16:44:24 +01:00
|
|
|
<div class="col6">
|
2019-06-27 21:10:50 +02:00
|
|
|
<?php echo template::select('themeMenuTextTransform', $module::$textTransforms, [
|
2019-03-20 20:05:03 +01:00
|
|
|
'label' => 'Casse',
|
|
|
|
'selected' => $this->getData(['theme', 'menu', 'textTransform'])
|
|
|
|
]); ?>
|
2019-06-27 21:10:50 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
|
|
|
<div class="block">
|
|
|
|
<h4>Configuration</h4>
|
|
|
|
<div class="row">
|
2019-11-29 16:09:28 +01:00
|
|
|
<div class="col6">
|
2019-06-27 21:10:50 +02:00
|
|
|
<?php
|
2019-11-29 16:09:28 +01:00
|
|
|
if ( $this->getData(['theme', 'header', 'position']) == "site")
|
|
|
|
{ echo template::select('themeMenuPosition', $module::$menuPositionsSite, [
|
|
|
|
'label' => 'Position',
|
|
|
|
'selected' => $this->getData(['theme', 'menu', 'position'])
|
|
|
|
]);
|
|
|
|
}else{
|
|
|
|
echo template::select('themeMenuPosition', $module::$menuPositionsBody, [
|
|
|
|
'label' => 'Position',
|
|
|
|
'selected' => $this->getData(['theme', 'menu', 'position'])
|
|
|
|
]); }
|
|
|
|
?>
|
2019-06-27 21:10:50 +02:00
|
|
|
</div>
|
2019-11-29 16:09:28 +01:00
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::select('themeMenuRadius', $module::$menuRadius, [
|
|
|
|
'label' => 'Bords arrondis',
|
2019-12-10 15:38:37 +01:00
|
|
|
'selected' => $this->getData(['theme', 'menu', 'radius']),
|
|
|
|
'help' => 'Autour de la page sélectionnée'
|
2019-11-29 16:09:28 +01:00
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col6">
|
2019-06-27 21:10:50 +02:00
|
|
|
<?php echo template::select('themeMenuHeight', $module::$menuHeights, [
|
2018-04-02 08:29:19 +02:00
|
|
|
'label' => 'Hauteur',
|
|
|
|
'selected' => $this->getData(['theme', 'menu', 'height'])
|
|
|
|
]); ?>
|
2019-06-27 21:10:50 +02:00
|
|
|
</div>
|
2019-11-29 16:09:28 +01:00
|
|
|
<div class="col6">
|
2019-06-27 21:10:50 +02:00
|
|
|
<?php echo template::select('themeMenuTextAlign', $module::$aligns, [
|
2018-04-02 08:29:19 +02:00
|
|
|
'label' => 'Alignement du contenu',
|
|
|
|
'selected' => $this->getData(['theme', 'menu', 'textAlign'])
|
|
|
|
]); ?>
|
2019-06-27 21:10:50 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="themeMenuPositionOptions" class="displayNone">
|
|
|
|
<?php echo template::checkbox('themeMenuMargin', true, 'Aligner le menu avec le contenu', [
|
2018-04-07 23:31:15 +02:00
|
|
|
'checked' => $this->getData(['theme', 'menu', 'margin'])
|
|
|
|
]); ?>
|
2019-06-27 21:10:50 +02:00
|
|
|
</div>
|
|
|
|
<div id="themeMenuPositionFixed" class="displayNone">
|
|
|
|
<?php echo template::checkbox('themeMenuFixed', true, 'Menu fixe', [
|
2019-01-24 14:26:54 +01:00
|
|
|
'checked' => $this->getData(['theme', 'menu', 'fixed'])
|
|
|
|
]); ?>
|
2019-06-27 21:10:50 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-05-02 13:21:48 +02:00
|
|
|
<?php echo template::formClose(); ?>
|