2022-04-01 14:14:36 +02:00
< ? php echo template :: formOpen ( 'galleriesOptionForm' ); ?>
2022-03-28 18:57:06 +02:00
< div class = " row " >
2022-04-01 14:45:47 +02:00
< div class = " col1 " >
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' ,
2022-04-01 14:45:47 +02:00
'value' => template :: ico ( 'left' ),
'class' => 'buttonGrey'
2022-03-28 18:57:06 +02:00
]); ?>
</ div >
2022-04-01 14:45:47 +02:00
< div class = " col2 offset9 " >
2022-04-01 14:14:36 +02:00
< ? php echo template :: submit ( 'galleriesOptionSubmit' ); ?>
2022-03-28 18:57:06 +02:00
</ div >
</ div >
2022-04-02 18:13:55 +02:00
< ? php if ( $module :: $formOptionSelect === 'galleries' ) : ?>
2022-03-28 18:57:06 +02:00
< div class = " row " >
< div class = " col12 " >
< div class = " block " >
2023-02-16 21:42:38 +01:00
< h4 >< ? php echo helper :: translate ( 'Paramètres' ); ?> </h4>
2022-03-28 18:57:06 +02:00
< div class = " row " >
2022-03-31 20:07:52 +02:00
< div class = " col12 " >
2022-05-19 18:47:49 +02:00
< ? php echo template :: checkbox ( 'galleriesOptionShowUniqueGallery' , true , 'Masquer l\'index des galeries lorsque le module ne contient qu\'une seule galerie' , [
2022-03-28 18:57:06 +02:00
'checked' => count ( $this -> getData ([ 'module' , $this -> getUrl ( 0 ), 'content' ])) === 1
2022-03-31 20:07:52 +02:00
? $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 " >
2022-03-31 20:07:52 +02:00
< 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 >
2022-04-02 18:13:55 +02:00
< ? php elseif ( $module :: $formOptionSelect === 'gallery' ) : ?>
< div class = " row " >
< div class = " col12 " >
< div class = " block " >
2023-02-14 08:26:45 +01:00
< h4 >< ? php echo helper :: translate ( 'Paramètres' ); ?> </h4>
2022-04-02 18:13:55 +02:00
< div class = " row " >
< div class = " col6 " >
< ? php echo template :: text ( 'galleryEditName' , [
'label' => 'Nom' ,
2022-04-04 16:36:59 +02:00
'value' => $this -> getData ([ 'module' , $this -> getUrl ( 0 ), 'content' , $this -> getUrl ( 3 ), 'config' , 'name' ])
2022-04-02 18:13:55 +02:00
]); ?>
</ div >
< div class = " col6 " >
2023-02-06 20:11:31 +01:00
< div class = " displayNone " >
2022-04-05 13:46:44 +02:00
< ? php echo template :: hidden ( 'galleryEditDirectoryOld' , [
'value' => $this -> getData ([ 'module' , $this -> getUrl ( 0 ), 'content' , $this -> getUrl ( 3 ), 'config' , 'directory' ]),
'noDirty' => true // Désactivé à cause des modifications en ajax
]); ?>
</ div >
< ? php echo template :: select ( 'galleryEditDirectory' , [], [
'label' => 'Dossier cible' ,
'noDirty' => true // Désactivé à cause des modifications en ajax
]); ?>
2022-04-02 18:13:55 +02:00
</ div >
</ div >
< div class = " row " >
< div class = " col3 " >
< ? php echo template :: select ( 'galleryEditSort' , $module :: $sort , [
2022-04-04 16:36:59 +02:00
'selected' => $this -> getData ([ 'module' , $this -> getUrl ( 0 ), 'content' , $this -> getUrl ( 3 ), 'config' , 'sort' ]),
2022-04-02 18:13:55 +02:00
'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 ( 'galleryEditFullscreen' , true , 'Mode plein écran automatique' , [
2022-04-04 16:36:59 +02:00
'checked' => $this -> getData ([ 'module' , $this -> getUrl ( 0 ), 'content' , $this -> getUrl ( 3 ), 'config' , 'fullScreen' ]),
2022-04-02 18:13:55 +02:00
'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 ( 'galleryEditShowPageContent' , true , 'Afficher le contenu de la page avec la galerie' , [
2022-04-04 16:36:59 +02:00
'checked' => $this -> getData ([ 'module' , $this -> getUrl ( 0 ), 'content' , $this -> getUrl ( 3 ), 'config' , 'showPageContent' ]),
2022-04-02 18:13:55 +02:00
'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 >
</ div >
</ div >
</ div >
< ? php endif ; ?>
2022-03-28 18:57:06 +02:00
< ? php echo template :: formClose (); ?>
< div class = " row " >
< div class = " col12 " >
< div class = " moduleVersion " > Version n°
< ? php echo $module :: VERSION ; ?>
</ div >
</ div >
</ div >