[9.2.00.dev] beautify and correct code

This commit is contained in:
fredtempez 2019-06-27 21:10:50 +02:00
parent c9461c6857
commit 72c65e8cf2
3 changed files with 282 additions and 281 deletions

View File

@ -1,202 +1,201 @@
<?php echo template::formOpen('themeFooterForm'); ?> <?php echo template::formOpen('themeFooterForm'); ?>
<div class="row"> <div class="row">
<div class="col2"> <div class="col2">
<?php echo template::button('themeFooterBack', [ <?php echo template::button('themeFooterBack', [
'class' => 'buttonGrey', 'class' => 'buttonGrey',
'href' => helper::baseUrl() . 'theme', 'href' => helper::baseUrl() . 'theme',
'ico' => 'left', 'ico' => 'left',
'value' => 'Retour' 'value' => 'Retour'
]); ?> ]); ?>
</div> </div>
<div class="col2 offset8"> <div class="col2 offset8">
<?php echo template::submit('themeFooterSubmit'); ?> <?php echo template::submit('themeFooterSubmit'); ?>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col6"> <div class="col6">
<div class="block"> <div class="block">
<h4>Couleurs</h4> <h4>Couleurs</h4>
<div class="row"> <div class="row">
<div class="col6"> <div class="col6">
<?php echo template::text('themeFooterBackgroundColor', [ <?php echo template::text('themeFooterBackgroundColor', [
'class' => 'colorPicker', 'class' => 'colorPicker',
'label' => 'Fond', 'label' => 'Fond',
'value' => $this->getData(['theme', 'footer', 'backgroundColor']) 'value' => $this->getData(['theme', 'footer', 'backgroundColor'])
]); ?> ]); ?>
</div> </div>
<div class="col6"> <div class="col6">
<?php echo template::text('themeFooterTextColor', [ <?php echo template::text('themeFooterTextColor', [
'class' => 'colorPicker', 'class' => 'colorPicker',
'label' => 'Texte', 'label' => 'Texte',
'value' => $this->getData(['theme', 'footer', 'textColor']) 'value' => $this->getData(['theme', 'footer', 'textColor'])
]); ?> ]); ?>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div class="col6"> <div class="col6">
<div class="block"> <div class="block">
<h4>Contenu Copyright</h4> <h4>Contenu Copyright</h4>
<div class="row"> <div class="row">
<div class="col6"> <div class="col6">
<div class="row"> <div class="row">
<?php echo template::checkbox('themefooterDisplayCopyright', true, 'Mention "Motorisé par"', [ <?php echo template::checkbox('themefooterDisplayCopyright', true, 'Mention "Motorisé par"', [
'checked' => $this->getData(['theme', 'footer','displayCopyright']) 'checked' => $this->getData(['theme', 'footer','displayCopyright'])
]); ?> ]); ?>
</div> </div>
<div class="row"> <div class="row">
<?php echo template::checkbox('themefooterDisplayVersion', true, 'Numéro de version', [ <?php echo template::checkbox('themefooterDisplayVersion', true, 'Numéro de version', [
'checked' => $this->getData(['theme', 'footer','displayVersion']) 'checked' => $this->getData(['theme', 'footer','displayVersion'])
]); ?> ]); ?>
</div>
</div> </div>
<div class="col6"> </div>
<div class="row"> <div class="col6">
<?php echo template::checkbox('themefooterDisplaySiteMap', true, 'Plan du site', [ <div class="row">
<?php echo template::checkbox('themefooterDisplaySiteMap', true, 'Plan du site', [
'checked' => $this->getData(['theme', 'footer', 'displaySiteMap']), 'checked' => $this->getData(['theme', 'footer', 'displaySiteMap']),
'help' => 'Un plan du site permet un meilleur référencement.' 'help' => 'Un plan du site permet un meilleur référencement.'
]); ?> ]); ?>
</div> </div>
<div class="row"> <div class="row">
<?php echo template::checkbox('themeFooterLoginLink', true, 'Lien de connexion', [ <?php echo template::checkbox('themeFooterLoginLink', true, 'Lien de connexion', [
'checked' => $this->getData(['theme', 'footer', 'loginLink']) 'checked' => $this->getData(['theme', 'footer', 'loginLink'])
]); ?> ]); ?>
</div>
</div> </div>
<div class="col12"> </div>
<div class="row"> <div class="col12">
<?php <div class="row">
<?php
echo template::checkbox('themeFooterDisplayLegal', true, 'Mentions légales', [ echo template::checkbox('themeFooterDisplayLegal', true, 'Mentions légales', [
'checked' => $this->getData(['config', 'legalPageId']) === '' ? false : $this->getData(['theme', 'footer', 'displayLegal']), 'checked' => $this->getData(['config', 'legalPageId']) === '' ? false : $this->getData(['theme', 'footer', 'displayLegal']),
]); ?> ]); ?>
</div> </div>
<div class="col12"> <div class="col12">
<em>Le paramétrage des mentions légales s'effectue dans la configuration du site.</em> <em>Le paramétrage des mentions légales s'effectue dans la configuration du site.</em>
</div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div class="row"> </div>
<div class="col12"> <div class="row">
<div class="block"> <div class="col12">
<h4>Contenu personnalisé</h4> <div class="block">
<?php echo template::textarea('themeFooterText', [ <h4>Contenu personnalisé</h4>
<?php echo template::textarea('themeFooterText', [
'label' => '<strong>Texte ou HTML personnalisé :</strong>', 'label' => '<strong>Texte ou HTML personnalisé :</strong>',
'value' => $this->getData(['theme', 'footer', 'text']), 'value' => $this->getData(['theme', 'footer', 'text']),
'class' => 'editorWysiwyg' 'class' => 'editorWysiwyg'
]); ?> ]); ?>
</div> </div>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col12"> <div class="col12">
<div class="block"> <div class="block">
<h4>Mise en forme du texte</h4> <h4>Mise en forme du texte</h4>
<div class="row"> <div class="row">
<div class="col3"> <div class="col3">
<?php echo template::select('themeFooterFont', $module::$fonts, [ <?php echo template::select('themeFooterFont', $module::$fonts, [
'label' => 'Police', 'label' => 'Police',
'selected' => $this->getData(['theme', 'footer', 'font']) 'selected' => $this->getData(['theme', 'footer', 'font'])
]); ?> ]); ?>
</div> </div>
<div class="col3"> <div class="col3">
<?php echo template::select('themeFooterFontSize', $module::$footerFontSizes, [ <?php echo template::select('themeFooterFontSize', $module::$footerFontSizes, [
'label' => 'Taille', 'label' => 'Taille',
'help' => 'Proportionnelle à celle définie dans le site.', 'help' => 'Proportionnelle à celle définie dans le site.',
'selected' => $this->getData(['theme', 'footer', 'fontSize']) 'selected' => $this->getData(['theme', 'footer', 'fontSize'])
]); ?> ]); ?>
</div> </div>
<div class="col3"> <div class="col3">
<?php echo template::select('themeFooterFontWeight', $module::$fontWeights, [ <?php echo template::select('themeFooterFontWeight', $module::$fontWeights, [
'label' => 'Style', 'label' => 'Style',
'selected' => $this->getData(['theme', 'footer', 'fontWeight']) 'selected' => $this->getData(['theme', 'footer', 'fontWeight'])
]); ?> ]); ?>
</div> </div>
<div class="col3"> <div class="col3">
<?php echo template::select('themeFooterTextTransform', $module::$textTransforms, [ <?php echo template::select('themeFooterTextTransform', $module::$textTransforms, [
'label' => 'Casse', 'label' => 'Casse',
'selected' => $this->getData(['theme', 'footer', 'textTransform']) 'selected' => $this->getData(['theme', 'footer', 'textTransform'])
]); ?> ]); ?>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col12"> <div class="col12">
<div class="block"> <div class="block">
<h4>Configuration</h4> <h4>Configuration</h4>
<div class="row"> <div class="row">
<div class="col4"> <div class="col4">
<?php $footerBlockPosition = $module::$footerblocks [$this->getData(['theme', 'footer', 'template'])]; ?> <?php $footerBlockPosition = $module::$footerblocks [$this->getData(['theme', 'footer', 'template'])]; ?>
<?php echo template::select('themeFooterTemplate', $module::$footerTemplate, [ <?php echo template::select('themeFooterTemplate', $module::$footerTemplate, [
'label' => 'Gabarits de mise en page', 'label' => 'Gabarits de mise en page',
'selected' => $this->getData(['theme', 'footer', 'template']) 'selected' => $this->getData(['theme', 'footer', 'template'])
]); ?> ]); ?>
</div> </div>
<div class="col4"> <div class="col4">
<?php echo template::select('themeFooterPosition', $module::$footerPositions, [ <?php echo template::select('themeFooterPosition', $module::$footerPositions, [
'label' => 'Position', 'label' => 'Position',
'selected' => $this->getData(['theme', 'footer', 'position']) 'selected' => $this->getData(['theme', 'footer', 'position'])
]); ?> ]); ?>
</div> </div>
<div class="col4"> <div class="col4">
<?php echo template::select('themeFooterHeight', $module::$footerHeights, [ <?php echo template::select('themeFooterHeight', $module::$footerHeights, [
'label' => 'Marges verticales', 'label' => 'Marges verticales',
'selected' => $this->getData(['theme', 'footer', 'height']), 'selected' => $this->getData(['theme', 'footer', 'height']),
'help' => 'La hauteur du pied de page est dynmamique selon le contenu.Ces marges sont ajoutées au-dessus et en-dessous.' 'help' => 'La hauteur du pied de page est dynmamique selon le contenu.Ces marges sont ajoutées au-dessus et en-dessous.'
]); ?> ]); ?>
</div>
</div> </div>
<div class="row"> </div>
<div class="col4"> <div class="row">
<p><strong>Contenu personnalisé</strong></p> <div class="col4">
<?php echo template::select('themeFooterTextPosition', $footerBlockPosition, [ <p><strong>Contenu personnalisé</strong></p>
<?php echo template::select('themeFooterTextPosition', $footerBlockPosition, [
'label' => 'Emplacement', 'label' => 'Emplacement',
'selected' => $this->getData(['theme', 'footer', 'textPosition']), 'selected' => $this->getData(['theme', 'footer', 'textPosition']),
'class' => 'themeFooterContent' 'class' => 'themeFooterContent'
]); ?> ]); ?>
<?php echo template::select('themeFooterTextAlign', $module::$aligns, [ <?php echo template::select('themeFooterTextAlign', $module::$aligns, [
'label' => 'Alignement', 'label' => 'Alignement',
'selected' => $this->getData(['theme', 'footer', 'textAlign']) 'selected' => $this->getData(['theme', 'footer', 'textAlign'])
]); ?> ]); ?>
</div> </div>
<div class="col4"> <div class="col4">
<p><strong>Réseaux sociaux</strong></p> <p><strong>Réseaux sociaux</strong></p>
<?php echo template::select('themeFooterSocialsPosition', $footerBlockPosition, [ <?php echo template::select('themeFooterSocialsPosition', $footerBlockPosition, [
'label' => 'Emplacement', 'label' => 'Emplacement',
'selected' => $this->getData(['theme', 'footer', 'socialsPosition']), 'selected' => $this->getData(['theme', 'footer', 'socialsPosition']),
'class' => 'themeFooterContent' 'class' => 'themeFooterContent'
]); ?> ]); ?>
<?php echo template::select('themeFooterSocialsAlign', $module::$aligns, [ <?php echo template::select('themeFooterSocialsAlign', $module::$aligns, [
'label' => 'Alignement', 'label' => 'Alignement',
'selected' => $this->getData(['theme', 'footer', 'socialsAlign']) 'selected' => $this->getData(['theme', 'footer', 'socialsAlign'])
]); ?> ]); ?>
</div> </div>
<div class="col4"> <div class="col4">
<p><strong>Info et copyright</strong></p> <p><strong>Info et copyright</strong></p>
<?php echo template::select('themeFooterCopyrightPosition', $footerBlockPosition, [ <?php echo template::select('themeFooterCopyrightPosition', $footerBlockPosition, [
'label' => 'Emplacement', 'label' => 'Emplacement',
'selected' => $this->getData(['theme', 'footer', 'copyrightPosition']), 'selected' => $this->getData(['theme', 'footer', 'copyrightPosition']),
'class' => 'themeFooterContent' 'class' => 'themeFooterContent'
]); ?> ]); ?>
<?php echo template::select('themeFooterCopyrightAlign', $module::$aligns, [ <?php echo template::select('themeFooterCopyrightAlign', $module::$aligns, [
'label' => 'Alignement', 'label' => 'Alignement',
'selected' => $this->getData(['theme', 'footer', 'copyrightAlign']) 'selected' => $this->getData(['theme', 'footer', 'copyrightAlign'])
]); ?> ]); ?>
</div> </div>
<div class="col6"> <div class="col6">
<div id="themeFooterPositionOptions" class="displayNone"> <div id="themeFooterPositionOptions" class="displayNone">
<?php echo template::checkbox('themeFooterMargin', true, 'Aligner le bas de page avec le contenu', [ <?php echo template::checkbox('themeFooterMargin', true, 'Aligner le bas de page avec le contenu', [
'checked' => $this->getData(['theme', 'footer', 'margin']) 'checked' => $this->getData(['theme', 'footer', 'margin'])
]); ?> ]); ?>
</div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div>
<?php echo template::formClose(); ?> <?php echo template::formClose(); ?>

View File

@ -1,74 +1,74 @@
<?php echo template::formOpen('themeHeaderForm'); ?> <?php echo template::formOpen('themeHeaderForm'); ?>
<div class="row"> <div class="row">
<div class="col2"> <div class="col2">
<?php echo template::button('themeHeaderBack', [ <?php echo template::button('themeHeaderBack', [
'class' => 'buttonGrey', 'class' => 'buttonGrey',
'href' => helper::baseUrl() . 'theme', 'href' => helper::baseUrl() . 'theme',
'ico' => 'left', 'ico' => 'left',
'value' => 'Retour' 'value' => 'Retour'
]); ?> ]); ?>
</div> </div>
<div class="col2 offset8"> <div class="col2 offset8">
<?php echo template::submit('themeHeaderSubmit'); ?> <?php echo template::submit('themeHeaderSubmit'); ?>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col6"> <div class="col6">
<div class="block"> <div class="block">
<h4>Couleurs</h4> <h4>Couleurs</h4>
<div class="row"> <div class="row">
<div class="col6"> <div class="col6">
<?php echo template::text('themeHeaderBackgroundColor', [ <?php echo template::text('themeHeaderBackgroundColor', [
'class' => 'colorPicker', 'class' => 'colorPicker',
'help' => 'Le curseur horizontal règle le niveau de transparence.', 'help' => 'Le curseur horizontal règle le niveau de transparence.',
'label' => 'Fond', 'label' => 'Fond',
'value' => $this->getData(['theme', 'header', 'backgroundColor']) 'value' => $this->getData(['theme', 'header', 'backgroundColor'])
]); ?> ]); ?>
</div> </div>
<div class="col6"> <div class="col6">
<?php echo template::text('themeHeaderTextColor', [ <?php echo template::text('themeHeaderTextColor', [
'class' => 'colorPicker', 'class' => 'colorPicker',
'help' => 'Le curseur horizontal règle le niveau de transparence.', 'help' => 'Le curseur horizontal règle le niveau de transparence.',
'label' => 'Texte', 'label' => 'Texte',
'value' => $this->getData(['theme', 'header', 'textColor']) 'value' => $this->getData(['theme', 'header', 'textColor'])
]); ?> ]); ?>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div class="col6"> <div class="col6">
<div class="block"> <div class="block">
<h4>Image</h4> <h4>Image</h4>
<?php <?php
$imageFile = file_exists(self::FILE_DIR.'source/'.$this->getData(['theme', 'header', 'image'])) ? $this->getData(['theme', 'header', 'image']) : ""; $imageFile = file_exists(self::FILE_DIR.'source/'.$this->getData(['theme', 'header', 'image'])) ? $this->getData(['theme', 'header', 'image']) : "";
echo template::file('themeHeaderImage', [ echo template::file('themeHeaderImage', [
'label' => 'Fond', 'label' => 'Fond',
'type' => 1, 'type' => 1,
'value' => $imageFile 'value' => $imageFile
]); ?> ]); ?>
<div id="themeHeaderImageOptions" class="displayNone"> <div id="themeHeaderImageOptions" class="displayNone">
<div class="row"> <div class="row">
<div class="col6"> <div class="col6">
<?php echo template::select('themeHeaderImageRepeat', $module::$repeats, [ <?php echo template::select('themeHeaderImageRepeat', $module::$repeats, [
'label' => 'Répétition', 'label' => 'Répétition',
'selected' => $this->getData(['theme', 'header', 'imageRepeat']) 'selected' => $this->getData(['theme', 'header', 'imageRepeat'])
]); ?> ]); ?>
</div> </div>
<div class="col6"> <div class="col6">
<?php echo template::select('themeHeaderImagePosition', $module::$imagePositions, [ <?php echo template::select('themeHeaderImagePosition', $module::$imagePositions, [
'label' => 'Position', 'label' => 'Position',
'selected' => $this->getData(['theme', 'header', 'imagePosition']) 'selected' => $this->getData(['theme', 'header', 'imagePosition'])
]); ?> ]); ?>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col6"> <div class="col6">
<?php echo template::checkbox('themeHeaderTextHide', true, 'Cacher le titre du site', [ <?php echo template::checkbox('themeHeaderTextHide', true, 'Cacher le titre du site', [
'checked' => $this->getData(['theme', 'header', 'textHide']) 'checked' => $this->getData(['theme', 'header', 'textHide'])
]); ?> ]); ?>
</div> </div>
<div class="col6"> <div class="col6">
<?php echo template::select('themeHeaderImageContainer', $module::$headerWide, [ <?php echo template::select('themeHeaderImageContainer', $module::$headerWide, [
'label' => 'Adaptation', 'label' => 'Adaptation',
'selected' => $this->getData(['theme', 'header', 'imageContainer']), 'selected' => $this->getData(['theme', 'header', 'imageContainer']),
'help' => 'Responsive (cover) : rogne une image trop grande sans la déformer - 'help' => 'Responsive (cover) : rogne une image trop grande sans la déformer -
@ -76,83 +76,83 @@
<br><br>Pour une bannière full responsive, sélectionnez aussi Hauteur -> Responsive. <br><br>Pour une bannière full responsive, sélectionnez aussi Hauteur -> Responsive.
<br>Dans ce cas le titre est indisponible.' <br>Dans ce cas le titre est indisponible.'
]); ?> ]); ?>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col12"> <div class="col12">
<div class="block"> <div class="block">
<h4>Configuration</h4> <h4>Configuration</h4>
<div class="row"> <div class="row">
<div class="col4"> <div class="col4">
<?php echo template::select('themeHeaderPosition', $module::$headerPositions, [ <?php echo template::select('themeHeaderPosition', $module::$headerPositions, [
'label' => 'Position', 'label' => 'Position',
'selected' => $this->getData(['theme', 'header', 'position']) 'selected' => $this->getData(['theme', 'header', 'position'])
]); ?> ]); ?>
</div> </div>
<div class="col4"> <div class="col4">
<?php echo template::select('themeHeaderHeight', $module::$headerHeights, [ <?php echo template::select('themeHeaderHeight', $module::$headerHeights, [
'label' => 'Hauteur', 'label' => 'Hauteur',
'selected' => $this->getData(['theme', 'header', 'height']) 'selected' => $this->getData(['theme', 'header', 'height'])
]); ?> ]); ?>
</div> </div>
<div class="col4"> <div class="col4">
<?php echo template::select('themeHeaderTextAlign', $module::$aligns, [ <?php echo template::select('themeHeaderTextAlign', $module::$aligns, [
'label' => 'Alignement du contenu', 'label' => 'Alignement du contenu',
'selected' => $this->getData(['theme', 'header', 'textAlign']) 'selected' => $this->getData(['theme', 'header', 'textAlign'])
]); ?> ]); ?>
</div> </div>
</div> </div>
<div id="themeHeaderShow" class="displayNone"> <div id="themeHeaderShow" class="displayNone">
<?php echo template::checkbox('themeHeaderlinkHome', true, 'Bannière cliquable', [ <?php echo template::checkbox('themeHeaderlinkHome', true, 'Bannière cliquable', [
'checked' => $this->getData(['theme', 'header', 'linkHome']) 'checked' => $this->getData(['theme', 'header', 'linkHome'])
]); ?> ]); ?>
</div> </div>
<div id="themeHeaderPositionOptions" class="displayNone"> <div id="themeHeaderPositionOptions" class="displayNone">
<?php echo template::checkbox('themeHeaderMargin', true, 'Aligner la bannière avec le contenu', [ <?php echo template::checkbox('themeHeaderMargin', true, 'Aligner la bannière avec le contenu', [
'checked' => $this->getData(['theme', 'header', 'margin']) 'checked' => $this->getData(['theme', 'header', 'margin'])
]); ?> ]); ?>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col12"> <div class="col12">
<div class="block"> <div class="block">
<h4>Mise en forme du texte</h4> <h4>Mise en forme du texte</h4>
<div class="row"> <div class="row">
<div class="col3"> <div class="col3">
<?php echo template::select('themeHeaderFont', $module::$fonts, [ <?php echo template::select('themeHeaderFont', $module::$fonts, [
'label' => 'Police', 'label' => 'Police',
'selected' => $this->getData(['theme', 'header', 'font']) 'selected' => $this->getData(['theme', 'header', 'font'])
]); ?> ]); ?>
</div> </div>
<div class="col3"> <div class="col3">
<?php echo template::select('themeHeaderFontSize', $module::$headerFontSizes, [ <?php echo template::select('themeHeaderFontSize', $module::$headerFontSizes, [
'label' => 'Taille', 'label' => 'Taille',
'help' => 'Proportionnelle à celle définie dans le site.', 'help' => 'Proportionnelle à celle définie dans le site.',
'selected' => $this->getData(['theme', 'header', 'fontSize']) 'selected' => $this->getData(['theme', 'header', 'fontSize'])
]); ?> ]); ?>
</div> </div>
<div class="col3"> <div class="col3">
<?php echo template::select('themeHeaderFontWeight', $module::$fontWeights, [ <?php echo template::select('themeHeaderFontWeight', $module::$fontWeights, [
'label' => 'Style', 'label' => 'Style',
'selected' => $this->getData(['theme', 'header', 'fontWeight']) 'selected' => $this->getData(['theme', 'header', 'fontWeight'])
]); ?> ]); ?>
</div> </div>
<div class="col3"> <div class="col3">
<?php echo template::select('themeHeaderTextTransform', $module::$textTransforms, [ <?php echo template::select('themeHeaderTextTransform', $module::$textTransforms, [
'label' => 'Casse', 'label' => 'Casse',
'selected' => $this->getData(['theme', 'header', 'textTransform']) 'selected' => $this->getData(['theme', 'header', 'textTransform'])
]); ?> ]); ?>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<?php echo template::formClose(); ?> <?php echo template::formClose(); ?>

View File

@ -1,91 +1,91 @@
<?php echo template::formOpen('themeMenuForm'); ?> <?php echo template::formOpen('themeMenuForm'); ?>
<div class="row"> <div class="row">
<div class="col2"> <div class="col2">
<?php echo template::button('themeMenuBack', [ <?php echo template::button('themeMenuBack', [
'class' => 'buttonGrey', 'class' => 'buttonGrey',
'href' => helper::baseUrl() . 'theme', 'href' => helper::baseUrl() . 'theme',
'ico' => 'left', 'ico' => 'left',
'value' => 'Retour' 'value' => 'Retour'
]); ?> ]); ?>
</div> </div>
<div class="col2 offset8"> <div class="col2 offset8">
<?php echo template::submit('themeMenuSubmit'); ?> <?php echo template::submit('themeMenuSubmit'); ?>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col8"> <div class="col8">
<div class="block"> <div class="block">
<h4>Couleur</h4> <h4>Couleur</h4>
<div class="row"> <div class="row">
<div class="col6"> <div class="col6">
<?php echo template::text('themeMenuBackgroundColor', [ <?php echo template::text('themeMenuBackgroundColor', [
'class' => 'colorPicker', 'class' => 'colorPicker',
'help' => 'Le curseur horizontal règle le niveau de transparence.', 'help' => 'Le curseur horizontal règle le niveau de transparence.',
'label' => 'Fond', 'label' => 'Fond',
'value' => $this->getData(['theme', 'menu', 'backgroundColor']) 'value' => $this->getData(['theme', 'menu', 'backgroundColor'])
]); ?> ]); ?>
</div> </div>
<div class="col6"> <div class="col6">
<?php echo template::text('themeMenuTextColor', [ <?php echo template::text('themeMenuTextColor', [
'class' => 'colorPicker', 'class' => 'colorPicker',
'help' => 'Le curseur horizontal règle le niveau de transparence.', 'help' => 'Le curseur horizontal règle le niveau de transparence.',
'label' => 'Texte', 'label' => 'Texte',
'value' => $this->getData(['theme', 'menu', 'textColor']) 'value' => $this->getData(['theme', 'menu', 'textColor'])
]); ?> ]); ?>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div class="col4"> <div class="col4">
<div class="block"> <div class="block">
<h4>Contenu</h4> <h4>Contenu</h4>
<?php echo template::checkbox('themeMenuLoginLink', true, 'Lien de connexion', [ <?php echo template::checkbox('themeMenuLoginLink', true, 'Lien de connexion', [
'checked' => $this->getData(['theme', 'menu', 'loginLink']) 'checked' => $this->getData(['theme', 'menu', 'loginLink'])
]); ?> ]); ?>
</div> </div>
</div>
</div> </div>
<div class="row"> </div>
<div class="col12"> <div class="row">
<div class="block"> <div class="col12">
<h4>Mise en forme du texte</h4> <div class="block">
<div class="row"> <h4>Mise en forme du texte</h4>
<div class="col3"> <div class="row">
<?php echo template::select('themeMenuFont', $module::$fonts, [ <div class="col3">
<?php echo template::select('themeMenuFont', $module::$fonts, [
'label' => 'Police', 'label' => 'Police',
'selected' => $this->getData(['theme', 'menu', 'font']) 'selected' => $this->getData(['theme', 'menu', 'font'])
]); ?> ]); ?>
</div> </div>
<div class="col3"> <div class="col3">
<?php echo template::select('themeMenuFontSize', $module::$menuFontSizes, [ <?php echo template::select('themeMenuFontSize', $module::$menuFontSizes, [
'label' => 'Taille', 'label' => 'Taille',
'help' => 'Proportionnelle à celle définie dans le site', 'help' => 'Proportionnelle à celle définie dans le site',
'selected' => $this->getData(['theme', 'menu', 'fontSize']) 'selected' => $this->getData(['theme', 'menu', 'fontSize'])
]); ?> ]); ?>
</div> </div>
<div class="col3"> <div class="col3">
<?php echo template::select('themeMenuFontWeight', $module::$fontWeights, [ <?php echo template::select('themeMenuFontWeight', $module::$fontWeights, [
'label' => 'Style', 'label' => 'Style',
'selected' => $this->getData(['theme', 'menu', 'fontWeight']) 'selected' => $this->getData(['theme', 'menu', 'fontWeight'])
]); ?> ]); ?>
</div> </div>
<div class="col3"> <div class="col3">
<?php echo template::select('themeMenuTextTransform', $module::$textTransforms, [ <?php echo template::select('themeMenuTextTransform', $module::$textTransforms, [
'label' => 'Casse', 'label' => 'Casse',
'selected' => $this->getData(['theme', 'menu', 'textTransform']) 'selected' => $this->getData(['theme', 'menu', 'textTransform'])
]); ?> ]); ?>
</div> </div>
</div> </div>
<div> <div>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col12"> <div class="col12">
<div class="block"> <div class="block">
<h4>Configuration</h4> <h4>Configuration</h4>
<div class="row"> <div class="row">
<div class="col4"> <div class="col4">
<?php <?php
if ( $this->getData(['theme', 'header', 'position']) == "site") if ( $this->getData(['theme', 'header', 'position']) == "site")
{ echo template::select('themeMenuPosition', $module::$menuPositionsSite, [ { echo template::select('themeMenuPosition', $module::$menuPositionsSite, [
'label' => 'Position', 'label' => 'Position',
@ -96,33 +96,35 @@
'label' => 'Position', 'label' => 'Position',
'selected' => $this->getData(['theme', 'menu', 'position']) 'selected' => $this->getData(['theme', 'menu', 'position'])
]); } ]); }
?> ?>
</div> </div>
<div class="col4"> <div class="col4">
<?php echo template::select('themeMenuHeight', $module::$menuHeights, [ <?php echo template::select('themeMenuHeight', $module::$menuHeights, [
'label' => 'Hauteur', 'label' => 'Hauteur',
'selected' => $this->getData(['theme', 'menu', 'height']) 'selected' => $this->getData(['theme', 'menu', 'height'])
]); ?> ]); ?>
</div> </div>
<div class="col4"> <div class="col4">
<?php echo template::select('themeMenuTextAlign', $module::$aligns, [ <?php echo template::select('themeMenuTextAlign', $module::$aligns, [
'label' => 'Alignement du contenu', 'label' => 'Alignement du contenu',
'selected' => $this->getData(['theme', 'menu', 'textAlign']) 'selected' => $this->getData(['theme', 'menu', 'textAlign'])
]); ?> ]); ?>
</div> </div>
</div> </div>
<div id="themeMenuPositionOptions" class="displayNone"> <div id="themeMenuPositionOptions" class="displayNone">
<?php echo template::checkbox('themeMenuMargin', true, 'Aligner le menu avec le contenu', [ <?php echo template::checkbox('themeMenuMargin', true, 'Aligner le menu avec le contenu', [
'checked' => $this->getData(['theme', 'menu', 'margin']) 'checked' => $this->getData(['theme', 'menu', 'margin'])
]); ?> ]); ?>
</div> </div>
<div id="themeMenuPositionFixed" class="displayNone"> <div id="themeMenuPositionFixed" class="displayNone">
<?php echo template::checkbox('themeMenuFixed', true, 'Menu fixe', [ <?php echo template::checkbox('themeMenuFixed', true, 'Menu fixe', [
'checked' => $this->getData(['theme', 'menu', 'fixed']) 'checked' => $this->getData(['theme', 'menu', 'fixed'])
]); ?> ]); ?>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div>
</div>
<?php echo template::formClose(); ?> <?php echo template::formClose(); ?>