ZwiiCMS/core/module/theme/view/header/header.php

166 lines
6.5 KiB
PHP
Raw Normal View History

2018-04-02 08:29:19 +02:00
<?php echo template::formOpen('themeHeaderForm'); ?>
2019-06-27 21:10:50 +02:00
<div class="row">
<div class="col2">
<?php echo template::button('themeHeaderBack', [
2018-04-02 08:29:19 +02:00
'class' => 'buttonGrey',
'href' => helper::baseUrl() . 'theme',
'ico' => 'left',
'value' => 'Retour'
]); ?>
2019-06-27 21:10:50 +02:00
</div>
<div class="col2 offset8">
<?php echo template::submit('themeHeaderSubmit'); ?>
</div>
</div>
<div class="row">
<div class="col4">
2019-06-27 21:10:50 +02:00
<div class="block">
<h4>Couleurs</h4>
<div class="row">
<div class="col12">
2019-06-27 21:10:50 +02:00
<?php echo template::text('themeHeaderBackgroundColor', [
2018-04-02 08:29:19 +02:00
'class' => 'colorPicker',
2019-05-02 13:21:48 +02:00
'help' => 'Le curseur horizontal règle le niveau de transparence.',
2018-04-02 08:29:19 +02:00
'label' => 'Fond',
'value' => $this->getData(['theme', 'header', 'backgroundColor'])
]); ?>
2019-06-27 21:10:50 +02:00
</div>
</div>
<div class="row">
<div class="col12">
2019-06-27 21:10:50 +02:00
<?php echo template::text('themeHeaderTextColor', [
2018-04-02 08:29:19 +02:00
'class' => 'colorPicker',
2019-05-02 13:21:48 +02:00
'help' => 'Le curseur horizontal règle le niveau de transparence.',
2018-04-02 08:29:19 +02:00
'label' => 'Texte',
'value' => $this->getData(['theme', 'header', 'textColor'])
]); ?>
2019-06-27 21:10:50 +02:00
</div>
</div>
</div>
</div>
<div class="col8">
2019-06-27 21:10:50 +02:00
<div class="block">
<h4>Image</h4>
2019-07-05 19:59:09 +02:00
<div class="row">
<div class="col12">
2019-07-05 19:59:09 +02:00
<?php
$imageFile = file_exists(self::FILE_DIR.'source/'.$this->getData(['theme', 'header', 'image'])) ?
$this->getData(['theme', 'header', 'image']) : "";
echo template::file('themeHeaderImage', [
'label' => 'Fond',
'type' => 1,
'value' => $imageFile
]); ?>
</div>
</div>
2019-06-27 21:10:50 +02:00
<div id="themeHeaderImageOptions" class="displayNone">
<div class="row">
2019-07-05 19:59:09 +02:00
<div class="col4">
2019-06-27 21:10:50 +02:00
<?php echo template::select('themeHeaderImageRepeat', $module::$repeats, [
2018-04-02 08:29:19 +02:00
'label' => 'Répétition',
'selected' => $this->getData(['theme', 'header', 'imageRepeat'])
]); ?>
2019-06-27 21:10:50 +02:00
</div>
2019-07-05 19:59:09 +02:00
<div class="col4">
2019-06-27 21:10:50 +02:00
<?php echo template::select('themeHeaderImagePosition', $module::$imagePositions, [
2018-04-02 08:29:19 +02:00
'label' => 'Position',
'selected' => $this->getData(['theme', 'header', 'imagePosition'])
]); ?>
2019-06-27 21:10:50 +02:00
</div>
2019-07-05 19:59:09 +02:00
<div class="col4">
2019-06-27 21:10:50 +02:00
<?php echo template::select('themeHeaderImageContainer', $module::$headerWide, [
2019-03-19 05:24:45 +01:00
'label' => 'Adaptation',
2019-11-09 15:36:14 +01:00
'selected' => $this->getData(['theme', 'header', 'imageContainer'])
]); ?>
2019-06-27 21:10:50 +02:00
</div>
</div>
2019-07-05 19:59:09 +02:00
<div class="row">
<div class="col4">
2019-11-10 21:02:28 +01:00
<?php echo template::checkbox('themeHeaderTextHide', true, 'Masquer le titre du site', [
2019-07-05 19:59:09 +02:00
'checked' => $this->getData(['theme', 'header', 'textHide'])
]); ?>
</div>
<div id="themeHeaderShow" class="col4">
2019-11-09 19:03:03 +01:00
<?php echo template::checkbox('themeHeaderlinkHomePage', true, 'Bannière cliquable', [
'checked' => $this->getData(['theme', 'header', 'linkHomePage'])
]); ?>
</div>
<div class="col4">
<em>(largeur:<span id="themeHeaderImageWidth"></span> ; hauteur:<span id="themeHeaderImageHeight"></span>)</em>
</div>
2019-07-05 19:59:09 +02:00
</div>
2019-06-27 21:10:50 +02:00
</div>
</div>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
<h4>Configuration</h4>
<div class="row">
<div class="col4">
<?php echo template::select('themeHeaderPosition', $module::$headerPositions, [
2018-04-02 08:29:19 +02:00
'label' => 'Position',
'selected' => $this->getData(['theme', 'header', 'position'])
]); ?>
2019-06-27 21:10:50 +02:00
</div>
<div class="col4">
<?php echo template::select('themeHeaderHeight', $module::$headerHeights, [
2018-04-02 08:29:19 +02:00
'label' => 'Hauteur',
'selected' => $this->getData(['theme', 'header', 'height']),
'help' => "Quelque soit la taille de la bannière, la hauteur maximale autorisée est de 600 pixels."
2018-04-02 08:29:19 +02:00
]); ?>
2019-06-27 21:10:50 +02:00
</div>
<div class="col4">
<?php echo template::select('themeHeaderTextAlign', $module::$aligns, [
2018-04-02 08:29:19 +02:00
'label' => 'Alignement du contenu',
'selected' => $this->getData(['theme', 'header', 'textAlign'])
]); ?>
2019-06-27 21:10:50 +02:00
</div>
</div>
<div id="themeHeaderPositionOptions" class="displayNone">
<?php echo template::checkbox('themeHeaderMargin', true, 'Aligner la bannière avec le contenu', [
2018-04-02 08:29:19 +02:00
'checked' => $this->getData(['theme', 'header', 'margin'])
]); ?>
2019-06-27 21:10:50 +02:00
</div>
2018-04-02 08:29:19 +02:00
2019-06-27 21:10:50 +02:00
</div>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
<h4>Mise en forme du texte</h4>
<div class="row">
<div class="col3">
<?php echo template::select('themeHeaderFont', $module::$fonts, [
2019-05-06 21:53:00 +02:00
'label' => 'Police',
'selected' => $this->getData(['theme', 'header', 'font'])
]); ?>
2019-06-27 21:10:50 +02:00
</div>
<div class="col3">
<?php echo template::select('themeHeaderFontSize', $module::$headerFontSizes, [
2019-05-06 21:53:00 +02:00
'label' => 'Taille',
'help' => 'Proportionnelle à celle définie dans le site.',
'selected' => $this->getData(['theme', 'header', 'fontSize'])
]); ?>
2019-06-27 21:10:50 +02:00
</div>
<div class="col3">
<?php echo template::select('themeHeaderFontWeight', $module::$fontWeights, [
2019-05-06 21:53:00 +02:00
'label' => 'Style',
'selected' => $this->getData(['theme', 'header', 'fontWeight'])
]); ?>
2019-06-27 21:10:50 +02:00
</div>
<div class="col3">
<?php echo template::select('themeHeaderTextTransform', $module::$textTransforms, [
2019-05-06 21:53:00 +02:00
'label' => 'Casse',
'selected' => $this->getData(['theme', 'header', 'textTransform'])
]); ?>
2019-06-27 21:10:50 +02:00
</div>
</div>
</div>
</div>
</div>
2018-04-02 08:29:19 +02:00
<?php echo template::formClose(); ?>