diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-21 14:30:26 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-21 14:30:26 +0100 |
| commit | a06407d8d25a1179047560dabf9065dd00553f71 (patch) | |
| tree | 86f5305d98d85fc36a02b89deddc984f2196cb72 /gallery_views | |
| parent | 39e4ea033f51083c7d556d5bf0dc04b82edee4de (diff) | |
| download | fisheye-a06407d8d25a1179047560dabf9065dd00553f71.tar.gz fisheye-a06407d8d25a1179047560dabf9065dd00553f71.tar.bz2 fisheye-a06407d8d25a1179047560dabf9065dd00553f71.zip | |
Separate pagination counts per gallery style; make galleriffic numThumbs configurable
- rows_per_page/cols_per_page (DB) used only by fixed_grid
- total_per_page preference used by auto_flow, simple_list, matteo — shown as one shared
field with the style-appropriate label; falls back to old rows_per_page for migration
- galleriffic_num_thumbs preference replaces hardcoded numThumbs:30 in JS templates
- JS disables hidden style-div inputs on load and switch so only the active style submits
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'gallery_views')
| -rwxr-xr-x | gallery_views/galleriffic/fisheye_galleriffic_inc_1.tpl | 2 | ||||
| -rwxr-xr-x | gallery_views/galleriffic/fisheye_galleriffic_inc_5.tpl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gallery_views/galleriffic/fisheye_galleriffic_inc_1.tpl b/gallery_views/galleriffic/fisheye_galleriffic_inc_1.tpl index 50a97a1..b46f1d9 100755 --- a/gallery_views/galleriffic/fisheye_galleriffic_inc_1.tpl +++ b/gallery_views/galleriffic/fisheye_galleriffic_inc_1.tpl @@ -109,7 +109,7 @@ jQuery(document).ready(function($) { // Initialize Advanced Galleriffic Gallery var gallery = $('#thumbs').galleriffic({ delay: 2500, - numThumbs: 30, + numThumbs: {$gContent->getPreference('galleriffic_num_thumbs', $gBitSystem->getConfig('fisheye_gallery_default_galleriffic_num_thumbs', 30))}, preloadAhead: 10, enableTopPager: true, enableBottomPager: true, diff --git a/gallery_views/galleriffic/fisheye_galleriffic_inc_5.tpl b/gallery_views/galleriffic/fisheye_galleriffic_inc_5.tpl index 7dd20d0..c46bfc6 100755 --- a/gallery_views/galleriffic/fisheye_galleriffic_inc_5.tpl +++ b/gallery_views/galleriffic/fisheye_galleriffic_inc_5.tpl @@ -108,7 +108,7 @@ jQuery(document).ready(function($) { // Initialize Advanced Galleriffic Gallery var gallery = $('#thumbs').galleriffic({ delay: 2500, - numThumbs: 30, + numThumbs: {$gContent->getPreference('galleriffic_num_thumbs', $gBitSystem->getConfig('fisheye_gallery_default_galleriffic_num_thumbs', 30))}, preloadAhead: 10, enableTopPager: false, enableBottomPager: false, |
