diff --git a/module/gallery/gallery.php b/module/gallery/gallery.php index 5f10ca43..ce847183 100644 --- a/module/gallery/gallery.php +++ b/module/gallery/gallery.php @@ -385,10 +385,10 @@ class gallery extends common { 'name' => $this->getInput('galleryConfigName'), 'directory' => $this->getInput('galleryConfigDirectory', helper::FILTER_STRING_SHORT, true), 'homePicture' => $homePicture, - 'sort' => self::SORT_ASC, + 'sort' => $this->getInput('galleryConfigSort'), 'position' => count($this->getData(['module', $this->getUrl(0), 'content'])) + 1, - 'fullScreen' => false, - 'showPageContent' => false + 'fullScreen' => $this->getInput('galleryConfigFullscreen', helper::FILTER_BOOLEAN), + 'showPageContent' => $this->getInput('galleryConfigShowPageContent', helper::FILTER_BOOLEAN) ], 'legend' => [], 'positions' => [] diff --git a/module/gallery/view/config/config.php b/module/gallery/view/config/config.php index 434dbca5..516d3a02 100644 --- a/module/gallery/view/config/config.php +++ b/module/gallery/view/config/config.php @@ -42,6 +42,27 @@ ]); ?> +
+
+ $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.' + ]); ?> +
+
+ $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.' + ]); ?> +
+
+ $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.' + ]); ?> +
+
diff --git a/module/gallery/view/edit/edit.php b/module/gallery/view/edit/edit.php index 2b2b4a0d..5b80327d 100644 --- a/module/gallery/view/edit/edit.php +++ b/module/gallery/view/edit/edit.php @@ -15,15 +15,15 @@
-

Paramètre des images

+

Paramètres de la galerie

-
+
'Nom', 'value' => $this->getData(['module', $this->getUrl(0), 'content', $this->getUrl(2), 'config', 'name']) ]); ?>
-
+
$this->getData(['module', $this->getUrl(0), 'content', $this->getUrl(2), 'config', 'directory']), 'noDirty' => true // Désactivé à cause des modifications en ajax @@ -33,39 +33,39 @@ 'noDirty' => true // Désactivé à cause des modifications en ajax ]); ?>
-
+
+
+
$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.' ]); ?>
-
-
-
+
$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.' ]); ?>
-
+
$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.' ]); ?>
-
-
-
-
- - 'galleryTable'], $module::$picturesId ); ?> - - $this->getUrl(2)]); ?> - - - +
+
+ + 'galleryTable'], $module::$picturesId ); ?> + + $this->getUrl(2)]); ?> + + + +
+
Version n°