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

134 lines
6.2 KiB
PHP
Raw Normal View History

2020-04-17 19:02:04 +02:00
<?php echo template::formOpen('galleryThemeForm'); ?>
<div class="row">
2022-04-01 14:45:47 +02:00
<div class="col1">
<?php echo template::button('galleryThemeBack', [
2022-04-01 14:45:47 +02:00
'class' => 'buttonGrey',
'href' => helper::baseUrl() . $this->getUrl(0) . '/config',
2022-04-01 14:45:47 +02:00
'value' => template::ico('left')
]); ?>
</div>
2022-04-01 14:45:47 +02:00
<div class="col2 offset9">
<?php echo template::submit('galleryThemeBack'); ?>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
2023-01-19 14:53:09 +01:00
<h4><?php echo helper::translate('Vignettes');?></h4>
2020-04-17 19:02:04 +02:00
<div class="row">
2020-04-19 14:58:38 +02:00
<div class="col3">
<?php echo template::select('galleryThemeThumbWidth', $module::$galleryThemeSizeWidth, [
'label' => 'Largeur',
'selected' => $this->getData(['module', $this->getUrl(0), 'theme','thumbWidth'])
2020-06-16 12:43:54 +02:00
]); ?>
2020-04-17 19:02:04 +02:00
</div>
2020-04-19 14:58:38 +02:00
<div class="col3">
<?php echo template::select('galleryThemeThumbHeight', $module::$galleryThemeSizeHeight, [
'label' => 'Hauteur',
'selected' => $this->getData(['module', $this->getUrl(0), 'theme','thumbHeight'])
]); ?>
</div>
<div class="col4">
<?php echo template::select('galleryThemeThumbAlign', $module::$galleryThemeFlexAlign, [
'label' => 'Alignement',
'selected' => $this->getData(['module', $this->getUrl(0), 'theme','thumbAlign'])
]); ?>
</div>
<div class="col2">
<?php echo template::select('galleryThemeThumbMargin', $module::$galleryThemeMargin, [
'label' => 'Marge',
'selected' => $this->getData(['module', $this->getUrl(0), 'theme','thumbMargin'])
]); ?>
</div>
</div>
<div class="row">
<div class="col4">
<?php echo template::select('galleryThemeThumbBorder', $module::$galleryThemeBorder, [
'label' => 'Bordure',
'selected' => $this->getData(['module', $this->getUrl(0), 'theme','thumbBorder'])
]); ?>
</div>
<div class="col4">
<?php echo template::text('galleryThemeThumbBorderColor', [
2020-04-17 19:02:04 +02:00
'class' => 'colorPicker',
2020-06-16 12:43:54 +02:00
'help' => 'Le curseur horizontal règle le niveau de transparence.',
'label' => 'Couleur de la bordure',
'value' => $this->getData(['module', $this->getUrl(0), 'theme','thumbBorderColor'])
2020-06-16 12:43:54 +02:00
]); ?>
</div>
<div class="col4">
<?php echo template::select('galleryThemeThumbRadius', $module::$galleryThemeRadius, [
'label' => 'Arrondi des angles',
'selected' => $this->getData(['module', $this->getUrl(0), 'theme','thumbRadius'])
2020-04-18 19:18:34 +02:00
]); ?>
</div>
</div>
<div class="row">
<div class="col4">
<?php echo template::select('galleryThemeThumbShadows', $module::$galleryThemeShadows, [
'label' => 'Ombre',
'selected' => $this->getData(['module', $this->getUrl(0), 'theme','thumbShadows'])
]); ?>
</div>
<div class="col4">
<?php echo template::text('galleryThemeThumbShadowsColor', [
'class' => 'colorPicker',
'help' => 'Le curseur horizontal règle le niveau de transparence.',
'label' => 'Couleur de l\'ombre',
'value' => $this->getData(['module', $this->getUrl(0), 'theme','thumbShadowsColor'])
2020-04-19 14:58:38 +02:00
]); ?>
2020-04-17 19:02:04 +02:00
</div>
<div class="col4">
<?php echo template::select('galleryThemeThumbOpacity', $module::$galleryThemeOpacity, [
'label' => 'Opacité au survol',
'selected' => $this->getData(['module', $this->getUrl(0), 'theme','thumbOpacity'])
]); ?>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
2023-01-19 14:53:09 +01:00
<h4><?php echo helper::translate('Légendes');?></h4>
<div class="row">
<div class="col3">
<?php echo template::text('galleryThemeLegendTextColor', [
'class' => 'colorPicker',
'help' => 'Le curseur horizontal règle le niveau de transparence.',
'label' => 'Texte',
'value' => $this->getData(['module', $this->getUrl(0), 'theme','legendTextColor'])
]); ?>
</div>
<div class="col3">
<?php echo template::text('galleryThemeLegendBgColor', [
'class' => 'colorPicker',
'help' => 'Le curseur horizontal règle le niveau de transparence.',
2022-10-02 10:59:42 +02:00
'label' => 'Arrière plan',
'value' => $this->getData(['module', $this->getUrl(0), 'theme','legendBgColor'])
]); ?>
</div>
<div class="col3">
<?php echo template::select('galleryThemeLegendHeight', $module::$galleryThemeLegendHeight, [
'label' => 'Hauteur',
'selected' => $this->getData(['module', $this->getUrl(0), 'theme','legendHeight'])
]); ?>
</div>
<div class="col3">
<?php echo template::select('galleryThemeLegendAlign', $module::$galleryThemeAlign, [
'label' => 'Alignement',
'selected' => $this->getData(['module', $this->getUrl(0), 'theme','legendAlign'])
]); ?>
2020-04-17 19:02:04 +02:00
</div>
</div>
</div>
</div>
2020-06-16 12:43:54 +02:00
<?php echo template::formClose(); ?>
2020-04-17 19:02:04 +02:00
<div class="row">
<div class="col12">
<div class="moduleVersion">Version
2021-02-09 18:04:24 +01:00
<?php echo $module::VERSION; ?>
2020-04-17 19:02:04 +02:00
</div>
</div>
2020-06-16 12:43:54 +02:00
</div>