Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
thumbnails are shown
  • Loading branch information
reilldesign committed Jan 15, 2025
1 parent e97f0ca commit 22ab0de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions media/com_joomgallery/js/joomgrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ var callback = function() {

window.joomGrid.lightboxes[window.joomGrid.itemid] = lightGallery(lightbox, {
selector: '.lightgallery-item',
exThumbImage: 'data-thumb',
// allowMediaOverlap: true,
thumbHeight: '50px',
thumbMargin: 5,
Expand Down
4 changes: 2 additions & 2 deletions site/com_joomgallery/layouts/joomgallery/grids/images.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<?php endif; ?>

<?php if($image_link == 'lightgallery') : ?>
<a class="lightgallery-item" href="<?php echo JoomHelper::getImg($item, $lightbox_type); ?>" data-sub-html="#jg-image-caption-<?php echo $item->id; ?>">
<a class="lightgallery-item" href="<?php echo JoomHelper::getImg($item, $lightbox_type); ?>" data-sub-html="#jg-image-caption-<?php echo $item->id; ?>" data-thumb="<?php echo JoomHelper::getImg($item, $image_type); ?>">
<img src="<?php echo JoomHelper::getImg($item, $image_type); ?>" class="jg-image-thumb" alt="<?php echo $item->title; ?>" itemprop="image" itemscope="" itemtype="https://schema.org/image"<?php if( $layout != 'justified') : ?> loading="lazy"<?php endif; ?>>
<?php if($image_title && $layout == 'justified') : ?>
<div class="jg-image-caption-hover <?php echo $caption_align; ?>">
Expand Down Expand Up @@ -93,7 +93,7 @@
<div class="jg-image-caption <?php echo $caption_align; ?>">
<?php if($image_title) : ?>
<?php if($title_link == 'lightgallery' && $image_link != 'lightgallery') : ?>
<a class="lightgallery-item" href="<?php echo JoomHelper::getImg($item, $lightbox_type); ?>" data-sub-html="#jg-image-caption-<?php echo $item->id; ?>">
<a class="lightgallery-item" href="<?php echo JoomHelper::getImg($item, $lightbox_type); ?>" data-sub-html="#jg-image-caption-<?php echo $item->id; ?>" data-thumb="<?php echo JoomHelper::getImg($item, $image_type); ?>">
<?php echo $this->escape($item->title); ?>
</a>
<?php else : ?>
Expand Down

0 comments on commit 22ab0de

Please sign in to comment.