diff --git a/module/gallery/gallery.php b/module/gallery/gallery.php index 87a4d05b..b96bace8 100644 --- a/module/gallery/gallery.php +++ b/module/gallery/gallery.php @@ -387,10 +387,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 276a98d0..568a0c88 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 161c1781..84c67eb8 100644 --- a/module/gallery/view/edit/edit.php +++ b/module/gallery/view/edit/edit.php @@ -14,15 +14,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 @@ -32,39 +32,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°