Disposition footer

This commit is contained in:
fredtempez 2021-10-28 16:41:10 +02:00
parent 412098f6b7
commit d1e65d1bd9

View File

@ -1,97 +1,99 @@
<?php echo template::formOpen('themeBodyForm'); ?> <?php echo template::formOpen('themeBodyForm'); ?>
<div class="row"> <div class="row">
<div class="col2"> <div class="col2">
<?php echo template::button('themeBodyBack', [ <?php echo template::button('themeBodyBack', [
'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('themeBodySubmit'); ?> <?php echo template::submit('themeBodySubmit'); ?>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
<h4>Couleurs</h4>
<div class="row">
<div class="col6">
<?php echo template::text('themeBodyBackgroundColor', [
'class' => 'colorPicker',
'help' => 'Couleur visible en l\'absence d\'une image.<br />Le curseur horizontal règle le niveau de transparence.',
'label' => 'Arrière-plan',
'value' => $this->getData(['theme', 'body', 'backgroundColor'])
]); ?>
</div>
</div>
<div class="row">
<div class="col6">
<?php echo template::text('themeBodyToTopBackground', [
'class' => 'colorPicker',
'help' => 'Le curseur horizontal règle le niveau de transparence.',
'label' => 'Fond icône haut de page',
'value' => $this->getData(['theme', 'body', 'toTopbackgroundColor'])
]); ?>
</div>
<div class="col6">
<?php echo template::text('themeBodyToTopColor', [
'class' => 'colorPicker',
'help' => 'Le curseur horizontal règle le niveau de transparence.',
'label' => 'Icône haut de page',
'value' => $this->getData(['theme', 'body', 'toTopColor'])
]); ?>
</div>
</div>
</div> </div>
</div> </div>
<div class="row"> </div>
<div class="col6"> <div class="row">
<div class="block"> <div class="col12">
<h4>Couleurs</h4> <div class="block">
<h4>Image</h4>
<div class="row">
<div class="col12">
<?php
$imageFile = file_exists(self::FILE_DIR.'source/'.$this->getData(['theme', 'body', 'image'])) ? $this->getData(['theme', 'body', 'image']) : "";
echo template::file('themeBodyImage', [
'help' => 'Sélectionner une image',
'label' => 'Fond',
'type' => 1,
'value' => $imageFile
]); ?>
</div>
</div>
<div id="themeBodyImageOptions" class="displayNone">
<div class="row"> <div class="row">
<div class="col12"> <div class="col6">
<?php echo template::text('themeBodyBackgroundColor', [ <?php echo template::select('themeBodyImageRepeat', $module::$repeats, [
'class' => 'colorPicker', 'label' => 'Répétition',
'help' => 'Couleur visible en l\'absence d\'une image.<br />Le curseur horizontal règle le niveau de transparence.', 'selected' => $this->getData(['theme', 'body', 'imageRepeat'])
'label' => 'Arrière-plan', ]); ?>
'value' => $this->getData(['theme', 'body', 'backgroundColor']) </div>
<div class="col6">
<?php echo template::select('themeBodyImagePosition', $module::$imagePositions, [
'label' => 'Position',
'selected' => $this->getData(['theme', 'body', 'imagePosition'])
]); ?> ]); ?>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col6"> <div class="col6">
<?php echo template::text('themeBodyToTopBackground', [ <?php echo template::select('themeBodyImageAttachment', $module::$attachments, [
'class' => 'colorPicker', 'label' => 'Défilement',
'help' => 'Le curseur horizontal règle le niveau de transparence.', 'selected' => $this->getData(['theme', 'body', 'imageAttachment'])
'label' => 'Fond icône haut de page',
'value' => $this->getData(['theme', 'body', 'toTopbackgroundColor'])
]); ?> ]); ?>
</div> </div>
<div class="col6"> <div class="col6">
<?php echo template::text('themeBodyToTopColor', [ <?php echo template::select('themeBodyImageSize', $module::$bodySizes, [
'class' => 'colorPicker', 'label' => 'Taille',
'help' => 'Le curseur horizontal règle le niveau de transparence.', 'selected' => $this->getData(['theme', 'body', 'imageSize'])
'label' => 'Icône haut de page',
'value' => $this->getData(['theme', 'body', 'toTopColor'])
]); ?> ]); ?>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div class="col6">
<div class="block">
<h4>Image</h4>
<div class="row">
<div class="col12">
<?php
$imageFile = file_exists(self::FILE_DIR.'source/'.$this->getData(['theme', 'body', 'image'])) ? $this->getData(['theme', 'body', 'image']) : "";
echo template::file('themeBodyImage', [
'help' => 'Sélectionner une image',
'label' => 'Fond',
'type' => 1,
'value' => $imageFile
]); ?>
</div>
</div>
<div id="themeBodyImageOptions" class="displayNone">
<div class="row">
<div class="col6">
<?php echo template::select('themeBodyImageRepeat', $module::$repeats, [
'label' => 'Répétition',
'selected' => $this->getData(['theme', 'body', 'imageRepeat'])
]); ?>
</div>
<div class="col6">
<?php echo template::select('themeBodyImagePosition', $module::$imagePositions, [
'label' => 'Position',
'selected' => $this->getData(['theme', 'body', 'imagePosition'])
]); ?>
</div>
</div>
<div class="row">
<div class="col6">
<?php echo template::select('themeBodyImageAttachment', $module::$attachments, [
'label' => 'Défilement',
'selected' => $this->getData(['theme', 'body', 'imageAttachment'])
]); ?>
</div>
<div class="col6">
<?php echo template::select('themeBodyImageSize', $module::$bodySizes, [
'label' => 'Taille',
'selected' => $this->getData(['theme', 'body', 'imageSize'])
]); ?>
</div>
</div>
</div>
</div>
</div>
</div> </div>
</div>
<?php echo template::formClose(); ?> <?php echo template::formClose(); ?>