diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-24 21:31:39 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-24 21:31:39 +0100 |
| commit | 03dc3201ebfc841ad49241faba4097e77940fc0e (patch) | |
| tree | cdcfdb86e3b192af4f2203fcad0c302391980f20 /gallery_views | |
| parent | 77360a574d13514289185c6810c53cc3acdc206e (diff) | |
| download | fisheye-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-x | gallery_views/galleriffic/fisheye_galleriffic_inc_1.tpl | 2 | ||||
| -rwxr-xr-x | gallery_views/galleriffic/fisheye_galleriffic_inc_5.tpl | 2 |
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> |
