diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-24 21:56:55 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-24 21:56:55 +0100 |
| commit | 23035406aacd8dddf4d249e1d73cbbe6e1b5942d (patch) | |
| tree | 4d400c699eb2c5fbdd1c3dae97c15b6a715c6292 | |
| parent | d9e5fc62a1df606264432fd5977cacaf42520b97 (diff) | |
| download | fisheye-23035406aacd8dddf4d249e1d73cbbe6e1b5942d.tar.gz fisheye-23035406aacd8dddf4d249e1d73cbbe6e1b5942d.tar.bz2 fisheye-23035406aacd8dddf4d249e1d73cbbe6e1b5942d.zip | |
Fix jstab compile error in inc_2: always open jstabs, conditionalise Videos tab only
Smarty validates block tag pairs at compile time so {jstab} cannot be
wrapped in {if}. jstabs/Pictures tab are always present; Videos jstab
is conditional inside the already-open jstabs block.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
| -rw-r--r-- | gallery_views/galleriffic/fisheye_galleriffic_inc_2.tpl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gallery_views/galleriffic/fisheye_galleriffic_inc_2.tpl b/gallery_views/galleriffic/fisheye_galleriffic_inc_2.tpl index 3d49bcb..a13630f 100644 --- a/gallery_views/galleriffic/fisheye_galleriffic_inc_2.tpl +++ b/gallery_views/galleriffic/fisheye_galleriffic_inc_2.tpl @@ -20,7 +20,8 @@ {/if} {/foreach} -{if $hasVideos}{jstabs}{jstab title="Pictures"}{/if} +{jstabs} +{jstab title="Pictures"} <!-- Start Advanced Gallery Html Containers --> <div class="navigation-container"> @@ -187,8 +188,8 @@ jQuery(document).ready(function($) { {/literal} /*]]>*/</script> -{if $hasVideos} {/jstab} +{if $hasVideos} {jstab title="Videos"} <table class="data"> <caption>{tr}Videos{/tr}</caption> @@ -215,8 +216,8 @@ jQuery(document).ready(function($) { {/foreach} </table> {/jstab} -{/jstabs} {/if} +{/jstabs} </div> {/strip} |
