Gallery : vignette d'album en plein écran
This commit is contained in:
parent
3310b88aca
commit
b7e8434556
@ -28,6 +28,6 @@ $( document ).ready(function() {
|
|||||||
var fullscreen = <?php echo json_encode($this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'config', 'fullScreen'])); ?>;
|
var fullscreen = <?php echo json_encode($this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'config', 'fullScreen'])); ?>;
|
||||||
console.log(fullscreen);
|
console.log(fullscreen);
|
||||||
if ( fullscreen === true) {
|
if ( fullscreen === true) {
|
||||||
$('a.galleryGalleryPicture:first')[0].click();
|
$('a#homePicture')[0].click();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
<div class="colPicture">
|
<div class="colPicture">
|
||||||
<a
|
<a
|
||||||
href="<?php echo helper::baseUrl(false) . $picture; ?>"
|
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"
|
class="galleryGalleryPicture"
|
||||||
style="background-image:url('<?php echo helper::baseUrl(false) . $module::$thumbs[$picture]; ?>')"
|
style="background-image:url('<?php echo helper::baseUrl(false) . $module::$thumbs[$picture]; ?>')"
|
||||||
data-caption="<?php echo $legend; ?>"
|
data-caption="<?php echo $legend; ?>"
|
||||||
|
Loading…
Reference in New Issue
Block a user