diff options
| author | lsces <lester@lsces.co.uk> | 2026-02-01 15:34:36 +0000 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2026-02-01 15:34:36 +0000 |
| commit | b849cd9e3b3f6548adc42ea9e983a20a53d10644 (patch) | |
| tree | 30741d46ed13a4f0530830b2abc54040f37c598b /gallery_views | |
| parent | 772b520ce91efb8437570ee3a501eb28d3607046 (diff) | |
| download | fisheye-b849cd9e3b3f6548adc42ea9e983a20a53d10644.tar.gz fisheye-b849cd9e3b3f6548adc42ea9e983a20a53d10644.tar.bz2 fisheye-b849cd9e3b3f6548adc42ea9e983a20a53d10644.zip | |
Tidy for higher res screen grid
Diffstat (limited to 'gallery_views')
| -rwxr-xr-x | gallery_views/auto_flow/fisheye_auto_flow_inc.tpl | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/gallery_views/auto_flow/fisheye_auto_flow_inc.tpl b/gallery_views/auto_flow/fisheye_auto_flow_inc.tpl index b754e77..89d79c1 100755 --- a/gallery_views/auto_flow/fisheye_auto_flow_inc.tpl +++ b/gallery_views/auto_flow/fisheye_auto_flow_inc.tpl @@ -18,9 +18,10 @@ {counter assign="imageCount" start="0" print=false} {assign var="max" value=100} {foreach from=$gContent->mItems item=galItem key=itemContentId} - <div class="col-md-4 col-sm-6 col-xs-12"> <!-- Begin Image Cell --> + <div class="col-lg-3 col-md-4 col-sm-6 col-xs-12"> <!-- Begin Image Cell --> <div class="col-xs-12 gallery-box"> - <a href="{$galItem->mInfo.source_url}"> + <a href="{if empty($galItem->mInfo.source_url)}/fisheye/gallery/{$galItem->mInfo.gallery_id} + {else}{$galItem->mInfo.source_url}{/if}"> <div class="col-xs-12 gallery-img table-cell"> <img class="col-xs-12 thumb" src="{$galItem->getThumbnailUri($gContent->getField('thumbnail_size'))}" alt="{$galItem->mInfo.title|escape|default:'image'}" /> </div> @@ -31,8 +32,12 @@ </div> </div> <!-- End Image Cell --> {counter} - {if $imageCount % 2 == 0}<div class="hidden-xs hidden-md hidden-lg clear"></div>{/if} - {if $imageCount % 3 == 0}<div class="hidden-xs hidden-sm clear"></div>{/if} + {if $imageCount % 2 == 0} + {if $imageCount % 4 == 0}<div class="hidden-xs hidden-sm hidden-md clear"></div> + {else}<div class="hidden-xs hidden-md hidden-lg clear"></div> + {/if} + {/if} + {if $imageCount % 3 == 0}<div class="hidden-xs hidden-sm hidden-lg clear"></div>{/if} {foreachelse} <div class="norecords">{tr}This gallery is empty{/tr}. <a href="{$smarty.const.FISHEYE_PKG_URL}upload.php?gallery_id={$gContent->mGalleryId}">Upload pictures!</a></div> {/foreach} |
