Gallery : vignette d'album en plein écran

This commit is contained in:
Fred Tempez 2020-04-17 19:32:51 +02:00
parent 3310b88aca
commit b7e8434556
2 changed files with 3 additions and 1 deletions

View File

@ -28,6 +28,6 @@ $( document ).ready(function() {
var fullscreen = <?php echo json_encode($this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'config', 'fullScreen'])); ?>;
console.log(fullscreen);
if ( fullscreen === true) {
$('a.galleryGalleryPicture:first')[0].click();
$('a#homePicture')[0].click();
}
});

View File

@ -13,6 +13,8 @@
<div class="colPicture">
<a
href="<?php echo helper::baseUrl(false) . $picture; ?>"
<?php if ( stristr($picture,$this->getdata(['module',$this->getUrl(0),$this->getUrl(1),'config','homePicture'])) ) {
echo 'id="homePicture"'; } ?>
class="galleryGalleryPicture"
style="background-image:url('<?php echo helper::baseUrl(false) . $module::$thumbs[$picture]; ?>')"
data-caption="<?php echo $legend; ?>"