2018-04-02 08:29:19 +02:00
|
|
|
<?php echo template::formOpen('themeBodyForm'); ?>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col2">
|
|
|
|
<?php echo template::button('themeBodyBack', [
|
|
|
|
'class' => 'buttonGrey',
|
|
|
|
'href' => helper::baseUrl() . 'theme',
|
|
|
|
'ico' => 'left',
|
|
|
|
'value' => 'Retour'
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col2 offset8">
|
|
|
|
<?php echo template::submit('themeBodySubmit'); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col6">
|
|
|
|
<div class="block">
|
|
|
|
<h4>Couleur</h4>
|
|
|
|
<?php echo template::text('themeBodyBackgroundColor', [
|
|
|
|
'class' => 'colorPicker',
|
|
|
|
'label' => 'Fond',
|
|
|
|
'value' => $this->getData(['theme', 'body', 'backgroundColor'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col6">
|
|
|
|
<div class="block">
|
|
|
|
<h4>Image</h4>
|
2019-03-03 18:50:51 +01:00
|
|
|
<?php
|
|
|
|
$imageFile = file_exists('site/file/source/'.$this->getData(['theme', 'body', 'image'])) ? $this->getData(['theme', 'body', 'image']) : "";
|
|
|
|
echo template::file('themeBodyImage', [
|
2018-04-02 08:29:19 +02:00
|
|
|
'label' => 'Fond',
|
|
|
|
'type' => 1,
|
2019-03-03 18:50:51 +01:00
|
|
|
'value' => $imageFile
|
2018-04-02 08:29:19 +02:00
|
|
|
]); ?>
|
|
|
|
<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' => 'Fixation',
|
|
|
|
'selected' => $this->getData(['theme', 'body', 'imageAttachment'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
<div class="col6">
|
|
|
|
<?php echo template::select('themeBodyImageSize', $module::$sizes, [
|
|
|
|
'label' => 'Taille',
|
|
|
|
'selected' => $this->getData(['theme', 'body', 'imageSize'])
|
|
|
|
]); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?php echo template::formClose(); ?>
|