ZwiiCMS/module/gallery/view/gallery/gallery.js.php

33 lines
949 B
PHP
Raw Normal View History

2018-04-02 08:29:19 +02:00
/**
* 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 <remi.jean@outlook.com>
* @copyright Copyright (C) 2008-2018, Rémi Jean
* @author Frédéric Tempez <frederic.tempez@outlook.com>
2021-02-17 13:49:58 +01:00
* @copyright Copyright (C) 2018-2021, Frédéric Tempez
2018-04-02 08:29:19 +02:00
* @license GNU General Public License, version 3
* @link http://zwiicms.fr/
2018-04-02 08:29:19 +02:00
*/
/**
* Galerie d'image
2020-03-11 21:42:59 +01:00
* SLB est activé pour tout le site
2020-03-12 19:16:12 +01:00
*/
var b = new SimpleLightbox('.galleryGalleryPicture', {
2018-04-02 08:29:19 +02:00
captionSelector: "self",
captionType: "data",
captionsData: "caption",
closeText: "&times;"
2020-03-11 21:42:59 +01:00
});
$( document ).ready(function() {
// Démarre en mode plein écran
var fullscreen = <?php echo json_encode($this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'config', 'fullScreen'])); ?>;
if ( fullscreen === true) {
$('a#homePicture')[0].click();
}
});