[9.2.0.dev] organisation masque header

This commit is contained in:
fredtempez 2019-07-05 19:59:09 +02:00
parent aa98f00262
commit 389d35af61

View File

@ -13,11 +13,11 @@
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col6"> <div class="col12">
<div class="block"> <div class="block">
<h4>Couleurs</h4> <h4>Couleurs</h4>
<div class="row"> <div class="row">
<div class="col6"> <div class="col4">
<?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.',
@ -25,7 +25,7 @@
'value' => $this->getData(['theme', 'header', 'backgroundColor']) 'value' => $this->getData(['theme', 'header', 'backgroundColor'])
]); ?> ]); ?>
</div> </div>
<div class="col6"> <div class="col4">
<?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.',
@ -36,38 +36,38 @@
</div> </div>
</div> </div>
</div> </div>
<div class="col6"> </div>
<div class="row">
<div class="col12 ">
<div class="block"> <div class="block">
<h4>Image</h4> <h4>Image</h4>
<?php <div class="row">
$imageFile = file_exists(self::FILE_DIR.'source/'.$this->getData(['theme', 'header', 'image'])) ? $this->getData(['theme', 'header', 'image']) : ""; <div class="col8">
echo template::file('themeHeaderImage', [ <?php
'label' => 'Fond', $imageFile = file_exists(self::FILE_DIR.'source/'.$this->getData(['theme', 'header', 'image'])) ?
'type' => 1, $this->getData(['theme', 'header', 'image']) : "";
'value' => $imageFile echo template::file('themeHeaderImage', [
]); ?> 'label' => 'Fond',
'type' => 1,
'value' => $imageFile
]); ?>
</div>
</div>
<div id="themeHeaderImageOptions" class="displayNone"> <div id="themeHeaderImageOptions" class="displayNone">
<div class="row"> <div class="row">
<div class="col6"> <div class="col4">
<?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="col4">
<?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 class="col4">
<div class="row">
<div class="col6">
<?php echo template::checkbox('themeHeaderTextHide', true, 'Cacher le titre du site', [
'checked' => $this->getData(['theme', 'header', 'textHide'])
]); ?>
</div>
<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']),
@ -78,6 +78,13 @@
]); ?> ]); ?>
</div> </div>
</div> </div>
<div class="row">
<div class="col12">
<?php echo template::checkbox('themeHeaderTextHide', true, 'Cacher le titre du site', [
'checked' => $this->getData(['theme', 'header', 'textHide'])
]); ?>
</div>
</div>
</div> </div>
</div> </div>
</div> </div>