diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-06-18 09:20:55 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-06-18 09:20:55 +0100 |
| commit | e72592f4aa254e3b96d82a6edc95bcc8b8b41982 (patch) | |
| tree | 6ea864412fe8f7e1185e230fa31ce682af86f0d3 | |
| parent | 031c24308f9a907e67c70084ff6bb1e8894b5351 (diff) | |
| download | fisheye-e72592f4aa254e3b96d82a6edc95bcc8b8b41982.tar.gz fisheye-e72592f4aa254e3b96d82a6edc95bcc8b8b41982.tar.bz2 fisheye-e72592f4aa254e3b96d82a6edc95bcc8b8b41982.zip | |
Fix auto_flow counter: assign="imageCount" in loop so modulo checks work
{counter} without assign= never updated $imageCount — it stayed at 0,
making 0%2, 0%3, 0%4 all permanently true, inserting all three clear
divs after every item. Gallery never formed a grid. Adding assign=
makes the variable track the actual item count.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
| -rwxr-xr-x | gallery_views/auto_flow/fisheye_auto_flow_inc.tpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gallery_views/auto_flow/fisheye_auto_flow_inc.tpl b/gallery_views/auto_flow/fisheye_auto_flow_inc.tpl index a7bc92f..6a57b6b 100755 --- a/gallery_views/auto_flow/fisheye_auto_flow_inc.tpl +++ b/gallery_views/auto_flow/fisheye_auto_flow_inc.tpl @@ -34,7 +34,7 @@ </a> </div> </div> <!-- End Image Cell --> - {counter} + {counter assign="imageCount"} {if $imageCount % 2 == 0}<div class="visible-sm-block clear"></div>{/if} {if $imageCount % 3 == 0}<div class="visible-md-block clear"></div>{/if} {if $imageCount % 4 == 0}<div class="visible-lg-block clear"></div>{/if} |
