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

39 lines
1.7 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',
'ico' => 'left',
'value' => 'Retour'
]); ?>
</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>Galerie unique</h4>
<div class="row">
<div class="col12 verticalAlignBottom">
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), 'theme', 'showUniqueGallery'])
: 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>
</div>
</div>
</div>
<?php echo template::formClose(); ?>
<div class="row">
<div class="col12">
<div class="moduleVersion">Version
<?php echo $module::VERSION; ?>
</div>
</div>
</div>