diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-25 11:40:10 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-25 11:40:10 +0100 |
| commit | 389d36e820c28819efd9c6dd49b103bb1b0edf42 (patch) | |
| tree | 7056e9dbb03abbbb6f3503c4fe04d0e6d2184243 /templates | |
| parent | aafa6c0519a068d14e7c6a1ce0d90ba835ecd1f1 (diff) | |
| download | fisheye-389d36e820c28819efd9c6dd49b103bb1b0edf42.tar.gz fisheye-389d36e820c28819efd9c6dd49b103bb1b0edf42.tar.bz2 fisheye-389d36e820c28819efd9c6dd49b103bb1b0edf42.zip | |
Galleriffic: fix fancyzoom interference, add regenerate-thumbnails UI
- Add rel="nozoom" to all galleriffic thumb <a> links so FancyZoom's
loading animation doesn't fire when selecting images in galleriffic
- Add "Regenerate All Thumbnails" checkbox to edit_gallery.tpl (only
shown for existing galleries)
- Fix edit.php calling non-existent generateThumbnails() on a gallery
object — corrected to generateGalleryThumbnails()
- Add set_time_limit(0) inside generateGalleryThumbnails() so large
galleries don't time out during thumbnail regeneration
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'templates')
| -rwxr-xr-x | templates/edit_gallery.tpl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/edit_gallery.tpl b/templates/edit_gallery.tpl index 06bfacd..4164dfb 100755 --- a/templates/edit_gallery.tpl +++ b/templates/edit_gallery.tpl @@ -125,6 +125,15 @@ document.addEventListener('DOMContentLoaded', updateGalleryPagination); </div> {/if} + {if $gContent->isValid()} + <div class="form-group"> + {forminput label="checkbox"} + <input type="checkbox" name="generate_thumbnails" id="generate_thumbnails" value="y" />{tr}Regenerate All Thumbnails{/tr} + {formhelp note="Re-generate thumbnails for all images and videos in this gallery. This may take some time for large galleries."} + {/forminput} + </div> + {/if} + <div class="form-group"> {forminput label="checkbox"} <input type="checkbox" name="allow_comments" id="allow_comments" value="y" {if !$gContent->isValid() || $gContent->getPreference('allow_comments') eq 'y'}checked="checked"{/if} />{tr}Image Comments{/tr} |
