ZwiiCMS/module/gallery/view/option/option.php

62 lines
3.3 KiB
PHP
Raw Normal View History

2022-04-01 14:14:36 +02:00
<?php echo template::formOpen('galleriesOptionForm'); ?>
2022-03-28 18:57:06 +02:00
<div class="row">
<div class="col2">
2022-04-01 14:14:36 +02:00
<?php echo template::button('galleriesOptionBack', [
2022-03-28 18:57:06 +02:00
'href' => helper::baseUrl() . $this->getUrl(0) . '/config',
'value' => template::ico('left')
2022-03-28 18:57:06 +02:00
]); ?>
</div>
<div class="col2 offset8">
2022-04-01 14:14:36 +02:00
<?php echo template::submit('galleriesOptionSubmit'); ?>
2022-03-28 18:57:06 +02:00
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
<h4>Options</h4>
2022-03-28 18:57:06 +02:00
<div class="row">
<div class="col12">
2022-04-01 14:14:36 +02:00
<?php echo template::checkbox('galleriesOptionShowUniqueGallery', true, 'Masquer l\'index des galeries lorsque le module ne contient qu\'une galerie' , [
2022-03-28 18:57:06 +02:00
'checked' => count($this->getData(['module', $this->getUrl(0), 'content'])) === 1
? $this->getData(['module', $this->getUrl(0), 'config', 'showUniqueGallery'])
2022-03-28 18:57:06 +02:00
: false,
'disabled' => count($this->getData(['module', $this->getUrl(0), 'content'])) > 1,
'help' => 'Cette option est active lorsque le module ne contient qu\'une seule galerie, elle permet d\'éviter la page listant toutes les galeries et affiche directement la galerie'
]); ?>
</div>
</div>
2022-03-31 21:57:52 +02:00
<div class="row" id="containerBackOptions">
<div class="col6">
<?php echo template::select('galleryOptionBackPosition', $module::$galleryOptionBackPosition, [
'label' => 'Position du bouton de retour à l\'index des galeries',
'selected' => $this->getData(['module', $this->getUrl(0), 'config', 'showUniqueGallery']) === true
? 'none'
: $this->getData(['module', $this->getUrl(0), 'config','backPosition']),
'disabled' => count($this->getData(['module', $this->getUrl(0), 'content'])) === 1
? $this->getData(['module', $this->getUrl(0), 'config', 'showUniqueGallery'])
: false,
]); ?>
</div>
<div class="col6">
<?php echo template::select('galleryOptionBackAlign', $module::$galleryOptionBackAlign, [
'label' => 'Alignement du bouton de retour',
'selected' => $this->getData(['module', $this->getUrl(0), 'config', 'showUniqueGallery']) === true
? 'none'
: $this->getData(['module', $this->getUrl(0), 'config','backAlign']),
'disabled' => count($this->getData(['module', $this->getUrl(0), 'content'])) === 1
? $this->getData(['module', $this->getUrl(0), 'config', 'showUniqueGallery'])
: false,
]); ?>
</div>
</div>
2022-03-28 18:57:06 +02:00
</div>
</div>
</div>
<?php echo template::formClose(); ?>
<div class="row">
<div class="col12">
<div class="moduleVersion">Version
<?php echo $module::VERSION; ?>
</div>
</div>
</div>