ZwiiCMS/module/gallery/view/theme/theme.php

115 lines
5.4 KiB
PHP
Raw Normal View History

2020-04-17 19:02:04 +02:00
<?php echo template::formOpen('galleryThemeForm'); ?>
<div class="row">
<div class="col2">
<?php echo template::button('galleryThemeBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() . $this->getUrl(0) . '/config',
'ico' => 'left',
'value' => 'Retour'
]); ?>
</div>
<div class="col2 offset8">
<?php echo template::submit('galleryThemeBack'); ?>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
2020-04-18 16:33:48 +02:00
<h4>Configuration des vignettes</h4>
2020-04-17 19:02:04 +02:00
<div class="row">
<div class="col4">
2020-04-18 16:33:48 +02:00
<?php echo template::select('galleryThemeThumbAlign', $module::$galleryThemeFlexAlign, [
2020-04-17 19:02:04 +02:00
'label' => 'Alignement des vignettes sur la page :',
2020-04-18 16:33:48 +02:00
'selected' => $this->getData(['theme', $this->getUrl(0),'thumbAlign'])
2020-04-17 19:02:04 +02:00
]); ?>
</div>
<div class="col4">
<?php echo template::select('galleryThemeThumbWidth', $module::$galleryThemeSize, [
'label' => 'Largeur des vignettes :',
2020-04-18 16:33:48 +02:00
'selected' => $this->getData(['theme', $this->getUrl(0),'thumbWidth'])
2020-04-17 19:02:04 +02:00
]); ?>
</div>
<div class="col4">
<?php echo template::select('galleryThemeThumbHeight', $module::$galleryThemeSize, [
'label' => 'Hauteur des vignettes :',
2020-04-18 16:33:48 +02:00
'selected' => $this->getData(['theme', $this->getUrl(0),'thumbHeight'])
2020-04-17 19:02:04 +02:00
]); ?>
</div>
</div>
<div class="row">
2020-04-18 16:33:48 +02:00
<div class="col3">
2020-04-17 19:02:04 +02:00
<?php echo template::select('galleryThemeThumbMargin', $module::$galleryThemeMargin, [
'label' => 'Marges autour des vignettes :',
2020-04-18 16:33:48 +02:00
'selected' => $this->getData(['theme', $this->getUrl(0),'thumbMargin'])
2020-04-17 19:02:04 +02:00
]); ?>
</div>
2020-04-18 16:33:48 +02:00
<div class="col3">
2020-04-17 19:02:04 +02:00
<?php echo template::select('galleryThemeThumbBorder', $module::$galleryThemeBorder, [
'label' => 'Epaisseur des bordures',
2020-04-18 16:33:48 +02:00
'selected' => $this->getData(['theme', $this->getUrl(0),'thumbBorder'])
2020-04-17 19:02:04 +02:00
]); ?>
</div>
2020-04-18 16:33:48 +02:00
<div class="col3">
<?php echo template::text('galleryThemeThumbBorderColor', [
'class' => 'colorPicker',
'help' => 'Le curseur horizontal règle le niveau de transparence.',
'label' => 'Couleur de la bordure',
'value' => $this->getData(['theme', $this->getUrl(0),'ThumbBorderColor'])
]); ?>
</div>
<div class="col3">
2020-04-17 19:02:04 +02:00
<?php echo template::select('galleryThemeThumbOpacity', $module::$galleryThemeOpacity, [
2020-04-18 16:33:48 +02:00
'label' => 'Opacité au survol',
'selected' => $this->getData(['theme', $this->getUrl(0),'thumbOpacity'])
2020-04-17 19:02:04 +02:00
]); ?>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
2020-04-18 16:33:48 +02:00
<h4>Configuration des légendes</h4>
2020-04-17 19:02:04 +02:00
<div class="row">
<div class="col6">
2020-04-18 16:33:48 +02:00
<?php echo template::select('galleryThemeLegendHeight', $module::$galleryThemeLegendHeight, [
2020-04-17 19:02:04 +02:00
'label' => 'Hauteur des légendes :',
2020-04-18 16:33:48 +02:00
'selected' => $this->getData(['theme', $this->getUrl(0),'legendHeight'])
2020-04-17 19:02:04 +02:00
]); ?>
</div>
<div class="col6">
2020-04-18 16:33:48 +02:00
<?php echo template::select('galleryThemeLegendAlign', $module::$galleryThemeAlign, [
2020-04-17 19:02:04 +02:00
'label' => 'Alignement des légendes dans les vignettes :',
2020-04-18 16:33:48 +02:00
'selected' => $this->getData(['theme', $this->getUrl(0),'legendAlign'])
2020-04-17 19:02:04 +02:00
]); ?>
</div>
</div>
<div class="row">
2020-04-18 16:33:48 +02:00
<div class="col6">
<?php echo template::text('galleryThemeLegendTextColor', [
2020-04-17 19:02:04 +02:00
'class' => 'colorPicker',
'help' => 'Le curseur horizontal règle le niveau de transparence.',
'label' => 'Couleur du texte de légende',
2020-04-18 16:33:48 +02:00
'value' => $this->getData(['theme', $this->getUrl(0),'legendTextColor'])
2020-04-17 19:02:04 +02:00
]); ?>
</div>
2020-04-18 16:33:48 +02:00
<div class="col6">
<?php echo template::text('galleryThemeLegendBgColor', [
2020-04-17 19:02:04 +02:00
'class' => 'colorPicker',
'help' => 'Le curseur horizontal règle le niveau de transparence.',
'label' => 'Couleur du fond de la légende',
2020-04-18 16:33:48 +02:00
'value' => $this->getData(['theme', $this->getUrl(0),'legendBgColor'])
2020-04-17 19:02:04 +02:00
]); ?>
</div>
</div>
</div>
</div>
<?php echo template::formClose(); ?>
<div class="row">
<div class="col12">
<div class="moduleVersion">Version
<?php echo $module::GALLERY_VERSION; ?>
</div>
</div>
</div>