diff --git a/core/core.php b/core/core.php index 6a60ff3b..17cebcf3 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.042'; + const ZWII_VERSION = '10.0.041'; const ZWII_UPDATE_CHANNEL = "v10"; public static $actions = []; diff --git a/core/vendor/simplelightbox/init.js b/core/vendor/simplelightbox/init.js index b673dc3a..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