forked from ZwiiCMS-Team/ZwiiCMS
gallery bug unique gallery
This commit is contained in:
parent
0550e7a8f9
commit
7b01190bcd
@ -878,7 +878,7 @@ class gallery extends common {
|
||||
|
||||
// Sauver la configuration de la galerie
|
||||
$this->setData(['module', $this->getUrl(0), 'config', [
|
||||
'showUniqueGallery' => $this->getinput('galleryOptionShowUniqueGallery', helper::FILTER_BOOLEAN),
|
||||
'showUniqueGallery' => $this->getinput('galleriesOptionShowUniqueGallery', helper::FILTER_BOOLEAN),
|
||||
'backPosition' => $this->getinput('galleryOptionBackPosition', null),
|
||||
'backAlign' => $this->getinput('galleryOptionBackAlign', null)
|
||||
]]);
|
||||
|
@ -18,7 +18,7 @@
|
||||
<h4>Options</h4>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<?php echo template::checkbox('galleriesOptionShowUniqueGallery', true, 'Masquer l\'index des galeries lorsque le module ne contient qu\'une galerie' , [
|
||||
<?php echo template::checkbox('galleriesOptionShowUniqueGallery', true, 'Masquer l\'index des galeries lorsque le module ne contient qu\'une seule galerie' , [
|
||||
'checked' => count($this->getData(['module', $this->getUrl(0), 'content'])) === 1
|
||||
? $this->getData(['module', $this->getUrl(0), 'config', 'showUniqueGallery'])
|
||||
: false,
|
||||
|
Loading…
Reference in New Issue
Block a user