summaryrefslogtreecommitdiff
path: root/gallery_views
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-05-24 21:31:39 +0100
committerLester Caine <lester@lsces.co.uk>2026-05-24 21:31:39 +0100
commit03dc3201ebfc841ad49241faba4097e77940fc0e (patch)
treecdcfdb86e3b192af4f2203fcad0c302391980f20 /gallery_views
parent77360a574d13514289185c6810c53cc3acdc206e (diff)
downloadfisheye-03dc3201ebfc841ad49241faba4097e77940fc0e.tar.gz
fisheye-03dc3201ebfc841ad49241faba4097e77940fc0e.tar.bz2
fisheye-03dc3201ebfc841ad49241faba4097e77940fc0e.zip
Skip thumbnailless items in galleriffic to prevent broken display
Items without a thumbnail (e.g. videos when ffmpeg is unavailable) are excluded from the slideshow list rather than producing empty src/href attributes that break galleriffic's JS. Once thumbnails are generated they appear automatically. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'gallery_views')
-rwxr-xr-xgallery_views/galleriffic/fisheye_galleriffic_inc_1.tpl2
-rwxr-xr-xgallery_views/galleriffic/fisheye_galleriffic_inc_5.tpl2
2 files changed, 4 insertions, 0 deletions
diff --git a/gallery_views/galleriffic/fisheye_galleriffic_inc_1.tpl b/gallery_views/galleriffic/fisheye_galleriffic_inc_1.tpl
index d4fcf85..9216c3a 100755
--- a/gallery_views/galleriffic/fisheye_galleriffic_inc_1.tpl
+++ b/gallery_views/galleriffic/fisheye_galleriffic_inc_1.tpl
@@ -19,6 +19,7 @@
<div>
<ul class="thumbs noscript">
{foreach from=$gContent->mItems item=galItem}
+ {if !is_a($galItem, '\Bitweaver\Fisheye\FisheyeImage') || $galItem->mInfo.thumbnail_url.avatar}
<li>
{if is_a($galItem, '\Bitweaver\Fisheye\FisheyeImage')}
<a class="thumb" name="{$galItem->mImageId}" href="{$galItem->mInfo.thumbnail_url.large}{*$smarty.const.FISHEYE_PKG_URL}view_image.php?image_id={$galItem->mImageId*}" title="{$galItem->mInfo.title|escape}">
@@ -62,6 +63,7 @@
</div>
{/if}
</li>
+ {/if}
{/foreach}
</ul>
</div>
diff --git a/gallery_views/galleriffic/fisheye_galleriffic_inc_5.tpl b/gallery_views/galleriffic/fisheye_galleriffic_inc_5.tpl
index 7400916..829261e 100755
--- a/gallery_views/galleriffic/fisheye_galleriffic_inc_5.tpl
+++ b/gallery_views/galleriffic/fisheye_galleriffic_inc_5.tpl
@@ -19,6 +19,7 @@
<div>
<ul class="thumbs noscript">
{foreach from=$gContent->mItems item=galItem}
+ {if !is_a($galItem, '\Bitweaver\Fisheye\FisheyeImage') || $galItem->mInfo.thumbnail_url.avatar}
<li>
{if is_a($galItem, '\Bitweaver\Fisheye\FisheyeImage')}
<a class="thumb" name="{$galItem->mImageId}" href="{$galItem->mInfo.thumbnail_url.large}{*$smarty.const.FISHEYE_PKG_URL}view_image.php?image_id={$galItem->mImageId*}" title="{$galItem->mInfo.title|escape}">
@@ -60,6 +61,7 @@
</div>
{/if}
</li>
+ {/if}
{/foreach}
</ul>
</div>