summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2026-04-02 09:54:02 +0100
committerlsces <lester@lsces.co.uk>2026-04-02 09:54:02 +0100
commit5f2299cde07dc400619d73a8715964f831e985ef (patch)
tree640c2d385c33ba0c9cfd76d42d5fb41fe2c80ab8 /templates
parent6b4354745aad895cb0ab72978dacacc3513a0c7f (diff)
downloadfisheye-5f2299cde07dc400619d73a8715964f831e985ef.tar.gz
fisheye-5f2299cde07dc400619d73a8715964f831e985ef.tar.bz2
fisheye-5f2299cde07dc400619d73a8715964f831e985ef.zip
Missing defaults for php8.4 and style change for fixed grid
Diffstat (limited to 'templates')
-rwxr-xr-xtemplates/gallery_nav.tpl4
-rwxr-xr-xtemplates/view_image.tpl4
2 files changed, 4 insertions, 4 deletions
diff --git a/templates/gallery_nav.tpl b/templates/gallery_nav.tpl
index 5bd254a..5447de9 100755
--- a/templates/gallery_nav.tpl
+++ b/templates/gallery_nav.tpl
@@ -25,7 +25,7 @@
{if $gGallery}
<div class="navigation">
<span class="pull-left">
- {if $gGallery->mInfo.previous_image_id}
+ {if !empty( $gGallery->mInfo.previous_image_id )}
<a href="{$gContent->getImageUrl($gGallery->mInfo.previous_image_id)|escape}">
{if $gBitSystem->isFeatureActive( 'gallerybar_use_icons' )}
{booticon iname="fa-arrow-left" ipackage="icons" iexplain=previous}
@@ -41,7 +41,7 @@
</span>
<span class="pull-right">
- {if $gGallery->mInfo.next_image_id}
+ {if !empty( $gGallery->mInfo.next_image_id )}
<a href="{$gContent->getImageUrl($gGallery->mInfo.next_image_id)|escape}">
{if $gBitSystem->isFeatureActive( 'gallerybar_use_icons' )}
{booticon iname="fa-arrow-right" iexplain=next}
diff --git a/templates/view_image.tpl b/templates/view_image.tpl
index e808f89..c5b3dfe 100755
--- a/templates/view_image.tpl
+++ b/templates/view_image.tpl
@@ -1,5 +1,5 @@
{strip}
-{if !empty($liberty_preview)}
+{if empty($liberty_preview)}
{include file="bitpackage:fisheye/gallery_nav.tpl"}
{/if}
@@ -25,7 +25,7 @@
<div class="image">
{include file=$gLibertySystem->getMimeTemplate('view',$gContent->mInfo.attachment_plugin_guid) attachment=$gContent->mInfo.image_file}
{if $gBitSystem->isFeatureActive('fisheye_image_list_description') && $gContent->mInfo.data ne ''}
- <p class="description">{$gContent->mInfo.parsed_data}</p>
+ <p class="description">{$gContent->mInfo.parsed_data|truncate:250:"..."}</p>
{/if}
</div>
</div> <!-- end .body -->