ZwiiCMS/module/gallery/view/config/config.php

88 lines
3.3 KiB
PHP
Raw Normal View History

2020-04-01 13:43:15 +02:00
<?php echo template::formOpen('galleryConfigForm'); ?>
<div class="row">
<div class="col2">
2020-04-01 13:43:15 +02:00
<?php echo template::button('galleryConfigBack', [
'href' => helper::baseUrl() . 'page/edit/' . $this->getUrl(0),
'ico' => 'left',
'value' => 'Retour'
2020-04-01 13:43:15 +02:00
]); ?>
</div>
<div class="col2 offset8">
2020-04-17 19:02:04 +02:00
<?php echo template::button('galleryConfigBack', [
2020-04-18 16:33:48 +02:00
'href' => helper::baseUrl() . $this->getUrl(0) . '/theme/' . $_SESSION['csrf'],
'value' => template::ico('brush','right') . 'Thème'
2020-04-17 19:02:04 +02:00
]); ?>
2020-11-04 09:15:08 +01:00
</div>
2020-03-27 15:06:35 +01:00
</div>
2020-04-01 13:43:15 +02:00
<div class="row">
<div class="col12">
<div class="block">
2020-04-08 21:10:13 +02:00
<h4>Ajouter une galerie</h4>
2020-04-01 13:43:15 +02:00
<div class="row">
<div class="col6">
2020-04-01 13:43:15 +02:00
<?php echo template::text('galleryConfigName', [
'label' => 'Nom'
]); ?>
</div>
<div class="col5">
2020-04-01 13:43:15 +02:00
<?php echo template::hidden('galleryConfigDirectoryOld', [
'noDirty' => true // Désactivé à cause des modifications en ajax
]); ?>
<?php echo template::select('galleryConfigDirectory', [], [
'label' => 'Dossier cible',
'noDirty' => true // Désactivé à cause des modifications en ajax
]); ?>
</div>
<div class="col1 verticalAlignBottom">
<?php echo template::submit('galleryConfigSubmit', [
'ico' => '',
2020-04-08 22:22:40 +02:00
'value' => template::ico('plus'),
'class' => 'gallerySubmit'
2020-04-01 13:43:15 +02:00
]); ?>
</div>
</div>
<div class="row">
<div class="col3">
<?php echo template::select('galleryConfigSort', $module::$sort, [
'selected' => $this->getData(['module', $this->getUrl(0), 'content', $this->getUrl(2), 'config', 'sort']),
'label' => 'Tri des images',
'help' => 'Tri manuel : déplacez le images dans le tableau ci-dessous. L\'ordre est sauvegardé automatiquement.'
]); ?>
</div>
<div class="col7 verticalAlignBottom">
<div class="row">
<div class="col12">
<?php echo template::checkbox('galleryConfigFullscreen', true, 'Mode plein écran automatique' , [
'checked' => $this->getData(['module', $this->getUrl(0), 'content', $this->getUrl(2), 'config', 'fullScreen']),
'help' => 'A l\'ouverture de la galerie, la première image est affichée en plein écran.'
]); ?>
</div>
</div>
<div class="row">
<div class="col12">
<?php echo template::checkbox('galleryConfigShowPageContent', true, 'Afficher le contenu de la page dans les galeries' , [
'checked' => $this->getData(['module', $this->getUrl(0), 'content', $this->getUrl(2), 'config', 'showPageContent']),
'help' => 'Le contenu de la page est toujours affiché dans la liste des galeries. Quand une seule galerie est disponible, il est possible de l\'afficher directement, cette option est utile dans ce cas précis.'
]); ?>
</div>
</div>
</div>
</div>
2020-04-01 13:43:15 +02:00
</div>
</div>
2020-03-27 15:06:35 +01:00
</div>
2020-11-04 09:15:08 +01:00
<?php echo template::formClose(); ?>
2020-04-09 22:56:12 +02:00
<div class="row">
<div class="col12">
2022-03-24 08:18:15 +01:00
<?php if($module::$galleries): ?>
<?php echo template::table([1, 4, 5, 1, 1], $module::$galleries, ['','Nom', 'Dossier cible', '', ''], ['id' => 'galleryTable'],$module::$galleriesId); ?>
<?php echo template::hidden('galleryConfigFilterResponse'); ?>
<?php else: ?>
<?php echo template::speech('Aucune galerie.'); ?>
<?php endif; ?>
2020-04-09 22:56:12 +02:00
</div>
<div class="moduleVersion">Version
2021-02-09 18:04:24 +01:00
<?php echo $module::VERSION; ?>
2018-04-02 08:29:19 +02:00
</div>
2020-04-09 22:56:12 +02:00
</div>