summaryrefslogtreecommitdiff
path: root/gallery_views
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2026-03-26 16:52:06 +0000
committerlsces <lester@lsces.co.uk>2026-03-26 16:52:06 +0000
commitbf7f71fe7da2545a8dbc64bdf874ebec0c85c3e1 (patch)
treea2cf983271ae988c30265236fa6a880da1570c97 /gallery_views
parentb849cd9e3b3f6548adc42ea9e983a20a53d10644 (diff)
downloadfisheye-bf7f71fe7da2545a8dbc64bdf874ebec0c85c3e1.tar.gz
fisheye-bf7f71fe7da2545a8dbc64bdf874ebec0c85c3e1.tar.bz2
fisheye-bf7f71fe7da2545a8dbc64bdf874ebec0c85c3e1.zip
Test files for new grid formats
Diffstat (limited to 'gallery_views')
-rwxr-xr-xgallery_views/fixed_grid/fisheye_fixed_grid_test.tpl43
1 files changed, 43 insertions, 0 deletions
diff --git a/gallery_views/fixed_grid/fisheye_fixed_grid_test.tpl b/gallery_views/fixed_grid/fisheye_fixed_grid_test.tpl
new file mode 100755
index 0000000..650b4a3
--- /dev/null
+++ b/gallery_views/fixed_grid/fisheye_fixed_grid_test.tpl
@@ -0,0 +1,43 @@
+{strip}
+ <div class="body">
+ {if $gGallery->mGalleryId != 0}
+ <table class="thumbnailblock">
+ {counter assign="imageCount" start="0" print=false}
+ {assign var="max" value=100}
+ {assign var="tdWidth" value="4"}
+ {foreach from=$gGallery->mItems item=galItem key=itemContentId}
+ {if $imageCount % 4 == 0}
+ <tr > <!-- Begin Image Row -->
+ {/if}
+
+ <td style="width:25%; vertical-align:top;"> <!-- Begin Image Cell -->
+ {box class="box `$galItem->mInfo.content_type_guid`"}
+ <a href="{$galItem->getDisplayUrl()|escape}">
+ <img class="thumb" src="{$galItem->getThumbnailUri()}" alt="{$galItem->mInfo.title|escape|default:'image'}" />
+ </a>
+ {if $gBitSystem->isFeatureActive( 'fisheye_gallery_list_image_titles' )}
+ <h2>{$galItem->mInfo.title|escape}</h2>
+ {/if}
+ {include file="bitpackage:liberty/services_inc.tpl" serviceLocation='body' serviceHash=$galItem->mInfo type=mini}
+ {if $gBitSystem->isFeatureActive( 'fisheye_gallery_list_image_descriptions' )}
+ <p>{$galItem->mInfo.data|escape}</p>
+ {/if}
+ {/box}
+ </td> <!-- End Image Cell -->
+ {counter}
+
+ {if $imageCount % 4 == 0}
+ </tr> <!-- End Image Row -->
+ {/if}
+
+ {foreachelse}
+ <tr><td class="norecords">{tr}This gallery is empty{/tr}. <a href="{$smarty.const.FISHEYE_PKG_URL}upload.php?gallery_id={$gGallery->mGalleryId}">Upload pictures!</a></td></tr>
+ {/foreach}
+
+ {if $imageCount % 4 != 0}</tr>{/if}
+ </table>
+ {else}
+ {tr}No gallery for this contact{/tr}. <a href="{$smarty.const.FISHEYE_PKG_URL}create.php?title={$gContent->mInfo.organisation}&contact={$gContent->mInfo.content_id}">Create Contact Gallery!</a>
+ {/if}
+ </div> <!-- end .body -->
+{/strip}