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 " >
2022-03-31 20:07:52 +02:00
< h4 > Options </ h4 >
2022-03-28 18:57:06 +02:00
< div class = " row " >
2022-03-31 20:07:52 +02:00
< 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
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 " >
< h4 > Paramètres de la galerie </ h4 >
< div class = " row " >
< div class = " col6 " >
< ? php echo template :: text ( 'galleryEditName' , [
'label' => 'Nom' ,
'value' => $this -> getData ([ 'module' , $this -> getUrl ( 0 ), 'content' , $this -> getUrl ( 2 ), 'config' , 'name' ])
]); ?>
</ div >
< div class = " col6 " >
< ? php echo template :: hidden ( 'galleryEditDirectoryOld' , [
'value' => $this -> getData ([ 'module' , $this -> getUrl ( 0 ), 'content' , $this -> getUrl ( 2 ), 'config' , 'directory' ]),
'noDirty' => true // Désactivé à cause des modifications en ajax
]); ?>
< ? php echo template :: select ( 'galleryEditDirectory' , [], [
'label' => 'Dossier cible' ,
'noDirty' => true // Désactivé à cause des modifications en ajax
]); ?>
</ div >
</ div >
< div class = " row " >
< div class = " col3 " >
< ? php echo template :: select ( 'galleryEditSort' , $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 ( 'galleryEditFullscreen' , 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 ( 'galleryEditShowPageContent' , true , 'Afficher le contenu de la page avec la galerie' , [
'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 >
</ 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 >