From 31b31ce99ecc19fda23dff7d17385d1bab23c502 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Wed, 7 Aug 2024 18:12:18 +0200 Subject: [PATCH] supprime une view --- module/geogallery/view/gallery/gallery.css | 14 ---- module/geogallery/view/gallery/gallery.js.php | 71 ------------------- module/geogallery/view/gallery/gallery.php | 23 ------ 3 files changed, 108 deletions(-) delete mode 100644 module/geogallery/view/gallery/gallery.css delete mode 100644 module/geogallery/view/gallery/gallery.js.php delete mode 100644 module/geogallery/view/gallery/gallery.php diff --git a/module/geogallery/view/gallery/gallery.css b/module/geogallery/view/gallery/gallery.css deleted file mode 100644 index ba89fdb4..00000000 --- a/module/geogallery/view/gallery/gallery.css +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file is part of Zwii. - * - * For full copyright and license information, please see the LICENSE - * file that was distributed with this source code. - * - * @author Rémi Jean - * @copyright Copyright (C) 2008-2018, Rémi Jean - * @author Frédéric Tempez - * @copyright Copyright (C) 2018-2024, Frédéric Tempez - * @license CC Attribution-NonCommercial-NoDerivatives 4.0 International - * @link http://zwiicms.fr/ - */ - diff --git a/module/geogallery/view/gallery/gallery.js.php b/module/geogallery/view/gallery/gallery.js.php deleted file mode 100644 index b559553c..00000000 --- a/module/geogallery/view/gallery/gallery.js.php +++ /dev/null @@ -1,71 +0,0 @@ -/** - * This file is part of Zwii. - * - * For full copyright and license information, please see the LICENSE - * file that was distributed with this source code. - * - * @author Rémi Jean - * @copyright Copyright (C) 2008-2018, Rémi Jean - * @author Frédéric Tempez - * @copyright Copyright (C) 2018-2024, Frédéric Tempez - * @license CC Attribution-NonCommercial-NoDerivatives 4.0 International - * @link http://zwiicms.fr/ - */ - -/** - * Galerie d'image - * SLB est activé pour tout le site - */ -var b = new SimpleLightbox('.galleryGalleryPicture', { - captionSelector: "self", - captionType: "data", - captionsData: "caption", - closeText: "×" -}); - -$(document).ready(function () { - // Démarre en mode plein écran - if ($("#pictureContainer").hasClass("fullScreen")) { - $('a#homePicture')[0].click(); - } - - - // Créer une carte Leaflet centrée sur une position par défaut - var map = L.map('map').setView([0, 0], 2); - - // Ajouter une couche de tuiles OpenStreetMap à la carte - L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { - attribution: '© OpenStreetMap contributors' - }).addTo(map); - - // Récupérer les données JSON des positions des images à partir de la donnée cachée dans le HTML - var jsonDataString = document.getElementById('imageData').value; - var jsonData = JSON.parse(jsonDataString); - - // Créer un tableau pour stocker les marqueurs des images - var markers = []; - - // Parcourir les données JSON et ajouter des marqueurs pour chaque image - Object.keys(jsonData).forEach(function (imageName) { - var image = jsonData[imageName]; - var marker = L.marker([image.lat, image.long]).addTo(map); - markers.push(marker); - }); - - // Calculer la moyenne des positions des images - var sumLat = 0; - var sumLong = 0; - Object.values(jsonData).forEach(function (image) { - sumLat += image.lat; - sumLong += image.long; - }); - var avgLat = sumLat / Object.keys(jsonData).length; - var avgLong = sumLong / Object.keys(jsonData).length; - - // Centrer la carte sur la moyenne des positions des images - map.setView([avgLat, avgLong]); - - - -}); - diff --git a/module/geogallery/view/gallery/gallery.php b/module/geogallery/view/gallery/gallery.php deleted file mode 100644 index da840145..00000000 --- a/module/geogallery/view/gallery/gallery.php +++ /dev/null @@ -1,23 +0,0 @@ -
-
- helper::baseUrl() . $this->getUrl(0), - 'value' => template::ico('left') - ]); ?> -
-
-
- $datas): ?> - -
- - -
-
-
- helper::baseUrl() . $this->getUrl(0), - 'value' => template::ico('left') - ]); ?> -
-
\ No newline at end of file