Gallery 2.26 largeur proportionnelle

This commit is contained in:
Fred Tempez 2020-06-16 12:43:54 +02:00
parent 83d614c4e2
commit 4975fa74c4
2 changed files with 31 additions and 22 deletions

View File

@ -19,7 +19,7 @@ class gallery extends common {
const SORT_ASC = 'SORT_ASC';
const SORT_DSC = 'SORT_DSC';
const SORT_HAND = 'SORT_HAND';
const GALLERY_VERSION = '2.25';
const GALLERY_VERSION = '2.26';
public static $directories = [];
@ -66,7 +66,16 @@ class gallery extends common {
'right' => 'À droite'
];
public static $galleryThemeSize = [
public static $galleryThemeSizeWidth = [
'9em' => 'Très petite',
'12em' => 'Petite',
'15em' => 'Moyenne',
'18em' => 'Grande',
'21em' => 'Très grande',
'100%' => 'Proportionnelle'
];
public static $galleryThemeSizeHeight = [
'9em' => 'Très petite',
'12em' => 'Petite',
'15em' => 'Moyenne',

View File

@ -18,13 +18,13 @@
<h4>Configuration des vignettes</h4>
<div class="row">
<div class="col3">
<?php echo template::select('galleryThemeThumbWidth', $module::$galleryThemeSize, [
<?php echo template::select('galleryThemeThumbWidth', $module::$galleryThemeSizeWidth, [
'label' => 'Largeur',
'selected' => $this->getData(['theme', $this->getUrl(0),'thumbWidth'])
]); ?>
</div>
<div class="col3">
<?php echo template::select('galleryThemeThumbHeight', $module::$galleryThemeSize, [
<?php echo template::select('galleryThemeThumbHeight', $module::$galleryThemeSizeHeight, [
'label' => 'Hauteur',
'selected' => $this->getData(['theme', $this->getUrl(0),'thumbHeight'])
]); ?>