Alignement des select

This commit is contained in:
Fred Tempez 2020-08-22 18:26:08 +02:00
parent a5441402c0
commit a6a46fea76

View File

@ -148,7 +148,6 @@
<h4>Configuration des blocs</h4> <h4>Configuration des blocs</h4>
<div class="row"> <div class="row">
<div class="col4"> <div class="col4">
<?php $footerBlockPosition = is_null($this->getData(['theme', 'footer', 'template'])) ? $module::$footerblocks[3] : $module::$footerblocks [$this->getData(['theme', 'footer', 'template'])] ;?> <?php $footerBlockPosition = is_null($this->getData(['theme', 'footer', 'template'])) ? $module::$footerblocks[3] : $module::$footerblocks [$this->getData(['theme', 'footer', 'template'])] ;?>
<?php echo template::select('themeFooterTemplate', $module::$footerTemplate, [ <?php echo template::select('themeFooterTemplate', $module::$footerTemplate, [
'label' => 'Disposition', 'label' => 'Disposition',
@ -171,40 +170,64 @@
<div class="row"> <div class="row">
<div class="col4"> <div class="col4">
<p><strong>Contenu personnalisé</strong></p> <p><strong>Contenu personnalisé</strong></p>
<div class="row">
<div class="col12">
<?php echo template::select('themeFooterTextPosition', $footerBlockPosition, [ <?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'
]); ?> ]); ?>
</div>
</div>
<div class="row">
<div class="col12">
<?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>
</div>
<div class="col4"> <div class="col4">
<p><strong>Réseaux sociaux</strong></p> <p><strong>Réseaux sociaux</strong></p>
<div class="row">
<div class="col12">
<?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'
]); ?> ]); ?>
</div>
</div>
<div class="row">
<div class="col12">
<?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>
</div>
<div class="col4"> <div class="col4">
<p><strong>Informations</strong></p> <p><strong>Informations</strong></p>
<div class="row">
<div class="col12">
<?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'
]); ?> ]); ?>
</div>
</div>
<div class="row">
<div class="col12">
<?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>
</div>
<div class="col6"> <div class="col6">
<div id="themeFooterPositionOptions"> <div id="themeFooterPositionOptions">
<?php echo template::checkbox('themeFooterMargin', true, 'Alignement avec le contenu', [ <?php echo template::checkbox('themeFooterMargin', true, 'Alignement avec le contenu', [