2018-04-02 08:29:19 +02:00
|
|
|
<?php echo template::formOpen('themeMenuForm'); ?>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col2">
|
|
|
|
<?php echo template::button('themeMenuBack', [
|
|
|
|
'class' => 'buttonGrey',
|
|
|
|
'href' => helper::baseUrl() . 'theme',
|
|
|
|
'ico' => 'left',
|
|
|
|
'value' => 'Retour'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col2 offset8">
|
|
|
|
<?php echo template::submit('themeMenuSubmit'); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col6">
|
|
|
|
<div class="block">
|
|
|
|
<h4>Couleur</h4>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::text('themeMenuBackgroundColor', [
|
|
|
|
'class' => 'colorPicker',
|
2019-03-20 18:25:17 +01: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'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::text('themeMenuTextColor', [
|
|
|
|
'class' => 'colorPicker',
|
2019-03-20 18:25:17 +01: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'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col6">
|
2019-03-20 18:25:17 +01:00
|
|
|
<div class="block">
|
|
|
|
<h4>Contenu</h4>
|
|
|
|
<?php echo template::checkbox('themeMenuLoginLink', true, 'Lien de connexion', [
|
|
|
|
'checked' => $this->getData(['theme', 'menu', 'loginLink']),
|
|
|
|
'help' => 'Visible seulement sur cette page et lorsque vous n\'êtes pas connecté (non recommandé).'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
2018-04-02 08:29:19 +02:00
|
|
|
<div class="block">
|
|
|
|
<h4>Mise en forme du texte</h4>
|
|
|
|
<div class="row">
|
2019-03-20 20:05:03 +01:00
|
|
|
<div class="col3">
|
|
|
|
<?php echo template::select('themeMenuFont', $module::$fonts, [
|
2018-12-09 00:52:05 +01:00
|
|
|
'label' => 'Police',
|
|
|
|
'selected' => $this->getData(['theme', 'menu', 'font'])
|
|
|
|
]); ?>
|
2019-03-20 20:05:03 +01:00
|
|
|
</div>
|
2019-03-20 18:25:17 +01:00
|
|
|
<div class="col3">
|
2019-03-20 20:05:03 +01: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-03-20 20:05:03 +01:00
|
|
|
]); ?>
|
2018-12-09 00:52:05 +01:00
|
|
|
</div>
|
2019-03-20 20:05:03 +01:00
|
|
|
<div class="col3">
|
|
|
|
<?php echo template::select('themeMenuFontWeight', $module::$fontWeights, [
|
|
|
|
'label' => 'Style',
|
|
|
|
'selected' => $this->getData(['theme', 'menu', 'fontWeight'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col3">
|
|
|
|
<?php echo template::select('themeMenuTextTransform', $module::$textTransforms, [
|
|
|
|
'label' => 'Casse',
|
|
|
|
'selected' => $this->getData(['theme', 'menu', 'textTransform'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
2019-03-20 18:25:17 +01:00
|
|
|
</div>
|
|
|
|
<div>
|
2018-04-02 08:29:19 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
|
|
|
<div class="block">
|
|
|
|
<h4>Configuration</h4>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col4">
|
2018-08-31 22:35:39 +02:00
|
|
|
<?php
|
|
|
|
if ( $this->getData(['theme', 'header', 'position']) == "site")
|
|
|
|
{ echo template::select('themeMenuPosition', $module::$menuPositionsSite, [
|
2018-04-02 08:29:19 +02:00
|
|
|
'label' => 'Position',
|
|
|
|
'selected' => $this->getData(['theme', 'menu', 'position'])
|
2018-08-31 22:35:39 +02:00
|
|
|
]);
|
|
|
|
}else{
|
|
|
|
echo template::select('themeMenuPosition', $module::$menuPositionsBody, [
|
|
|
|
'label' => 'Position',
|
|
|
|
'selected' => $this->getData(['theme', 'menu', 'position'])
|
|
|
|
]); }
|
|
|
|
?>
|
2018-04-02 08:29:19 +02:00
|
|
|
</div>
|
|
|
|
<div class="col4">
|
|
|
|
<?php echo template::select('themeMenuHeight', $module::$menuHeights, [
|
|
|
|
'label' => 'Hauteur',
|
|
|
|
'selected' => $this->getData(['theme', 'menu', 'height'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col4">
|
|
|
|
<?php echo template::select('themeMenuTextAlign', $module::$aligns, [
|
|
|
|
'label' => 'Alignement du contenu',
|
|
|
|
'selected' => $this->getData(['theme', 'menu', 'textAlign'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="themeMenuPositionOptions" class="displayNone">
|
2018-04-07 23:31:15 +02:00
|
|
|
<?php echo template::checkbox('themeMenuMargin', true, 'Aligner le menu avec le contenu', [
|
|
|
|
'checked' => $this->getData(['theme', 'menu', 'margin'])
|
|
|
|
]); ?>
|
2018-04-02 08:29:19 +02:00
|
|
|
</div>
|
2019-01-24 14:26:54 +01:00
|
|
|
<div id="themeMenuPositionFixed" class="displayNone">
|
|
|
|
<?php echo template::checkbox('themeMenuFixed', true, 'Menu fixe', [
|
|
|
|
'checked' => $this->getData(['theme', 'menu', 'fixed'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
|
2018-04-07 23:31:15 +02:00
|
|
|
</div>
|
2018-04-02 08:29:19 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?php echo template::formClose(); ?>
|