diff --git a/CHANGES.md b/CHANGES.md index 0323032f..1445c89d 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -21,6 +21,10 @@ - Modification : - Chargement paresseux des images. +## version 9.2.24 +- Correction : + - Mauvaise configuration de SimpleLightBox + ## version 9.2.23 - Nouveautés : - Configuration du réseau : proxy http ou tcp sans authentification. diff --git a/core/core.php b/core/core.php index 229071f8..6a60ff3b 100644 --- a/core/core.php +++ b/core/core.php @@ -33,7 +33,7 @@ class common { const TEMP_DIR = 'site/tmp/'; // Numéro de version - const ZWII_VERSION = '10.0.041.rc'; + const ZWII_VERSION = '10.0.042'; const ZWII_UPDATE_CHANNEL = "v10"; public static $actions = []; diff --git a/core/vendor/simplelightbox/init.js b/core/vendor/simplelightbox/init.js index ef3662f4..60548378 100644 --- a/core/vendor/simplelightbox/init.js +++ b/core/vendor/simplelightbox/init.js @@ -7,7 +7,14 @@ ); // Démarrer le script - //var a = $('.gallery').simpleLightbox({closeText:"×",captionsData:'alt'}); - - + var a = new SimpleLightbox('.gallery', { + closeText:"×", + captionsData:'alt' + }); + var b = new SimpleLightbox('.galleryGalleryPicture', { + captionSelector: "self", + captionType: "data", + captionsData: "caption", + closeText: "×" + }); }); diff --git a/module/gallery/gallery.php b/module/gallery/gallery.php index da6f4a64..f463f634 100644 --- a/module/gallery/gallery.php +++ b/module/gallery/gallery.php @@ -283,9 +283,10 @@ class gallery extends common { $this->addOutput([ 'showBarEditButton' => true, 'title' => $this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'config', 'name']), + /* Désactivé car SLB est actif pour tout le site 'vendor' => [ 'simplelightbox' - ], + ],*/ 'view' => 'gallery' ]); } diff --git a/module/gallery/view/gallery/gallery.js.php b/module/gallery/view/gallery/gallery.js.php index d8da03b9..df402f14 100644 --- a/module/gallery/view/gallery/gallery.js.php +++ b/module/gallery/view/gallery/gallery.js.php @@ -12,10 +12,12 @@ /** * Galerie d'image - */ + * SLB est activé pour tout le site + * $(".galleryGalleryPicture").simpleLightbox({ captionSelector: "self", captionType: "data", captionsData: "caption", closeText: "×" -}); \ No newline at end of file +}); +*/ \ No newline at end of file