forked from ZwiiCMS-Team/ZwiiCMS
Gallery 2.26 largeur proportionnelle
This commit is contained in:
parent
83d614c4e2
commit
4975fa74c4
@ -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',
|
||||
|
@ -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'])
|
||||
]); ?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user