From 6eb9bdf19493664fba89b61c064728359b2ed900 Mon Sep 17 00:00:00 2001 From: Lester Caine Date: Sun, 24 May 2026 21:50:28 +0100 Subject: Add galleriffic style 2: Pictures/Videos tabs for mixed galleries fisheye_galleriffic_inc.tpl now dynamically loads the inc file matching the gallery's galleriffic_style preference (defaults to 1). inc_2.tpl adds a pre-scan for video items and wraps the galleriffic slideshow in a Pictures tab, with a Videos simple-list tab alongside. Items without thumbnails are skipped from the Pictures tab; when ffmpeg generates thumbnails they appear in both tabs automatically. Co-Authored-By: Claude Sonnet 4.6 --- .../galleriffic/fisheye_galleriffic_inc.tpl | 2 +- .../galleriffic/fisheye_galleriffic_inc_2.tpl | 222 +++++++++++++++++++++ 2 files changed, 223 insertions(+), 1 deletion(-) create mode 100644 gallery_views/galleriffic/fisheye_galleriffic_inc_2.tpl diff --git a/gallery_views/galleriffic/fisheye_galleriffic_inc.tpl b/gallery_views/galleriffic/fisheye_galleriffic_inc.tpl index 8a83fe2..0591043 100755 --- a/gallery_views/galleriffic/fisheye_galleriffic_inc.tpl +++ b/gallery_views/galleriffic/fisheye_galleriffic_inc.tpl @@ -1,3 +1,3 @@ -{include file="bitpackage:fisheye/../gallery_views/galleriffic/fisheye_galleriffic_inc_1.tpl"} +{include file="bitpackage:fisheye/../gallery_views/galleriffic/fisheye_galleriffic_inc_`$gContent->mInfo.galleriffic_style|default:1`.tpl"}
diff --git a/gallery_views/galleriffic/fisheye_galleriffic_inc_2.tpl b/gallery_views/galleriffic/fisheye_galleriffic_inc_2.tpl new file mode 100644 index 0000000..3d49bcb --- /dev/null +++ b/gallery_views/galleriffic/fisheye_galleriffic_inc_2.tpl @@ -0,0 +1,222 @@ +{strip} +{include file="bitpackage:fisheye/gallery_nav.tpl"} +
+ +
+ {include file="bitpackage:fisheye/gallery_icons_inc.tpl"} +

{$gContent->getTitle()|escape}

+
+ +{if $gContent->mInfo.data && $gContent->getPreference('show_description') ne 'n'} +
+

{$gContent->mInfo.data|escape}

+
+{/if} + +{assign var=hasVideos value=false} +{foreach from=$gContent->mItems item=_scanItem} + {if is_a($_scanItem, '\Bitweaver\Fisheye\FisheyeImage') && $_scanItem->mInfo.mime_type|substr:0:6 == 'video/'} + {assign var=hasVideos value=true} + {/if} +{/foreach} + +{if $hasVideos}{jstabs}{jstab title="Pictures"}{/if} + + + + + + + + +{if $hasVideos} +{/jstab} +{jstab title="Videos"} + + + + + + + + {foreach from=$gContent->mItems item=galItem} + {if is_a($galItem, '\Bitweaver\Fisheye\FisheyeImage') && $galItem->mInfo.mime_type|substr:0:6 == 'video/'} + + + + + + {/if} + {/foreach} +
{tr}Videos{/tr}
{tr}Title{/tr}{tr}Actions{/tr}
{if $galItem->mInfo.thumbnail_url.small}{$galItem->mInfo.title|escape}{/if}{$galItem->getTitle()|escape} + {if $gBitUser->hasPermission('p_treasury_view_item')} + {booticon iname="fa-folder-open" iexplain="View"} + {/if} + {if $gBitUser->hasPermission('p_treasury_download_item') && $galItem->mInfo.download_url} + {biticon ipackage="icons" iname="emblem-downloads" iexplain="Download"} + {/if} +
+{/jstab} +{/jstabs} +{/if} + +
+{/strip} -- cgit v1.3