[dev] ansel gallery pager

Ben Chavet ben at chavet.net
Tue Nov 11 22:48:54 PST 2003


Here is a very elementary pager feature for the thumbnail gallery view.  I'm not
so sure I like how the 'next' and 'prev' links look, so I'll play around with
those a bit when I have time.  The important part is that it works :)  It might
be nice to have direct links to different pages.

I added a 'page' variable that view.php looks for.  It defaults to 0 if it is
not there (0 being the first page).  I think I got all of the links that need
to have page specified, but I may have missed some.

Files modified:
ansel/config/prefs.php.dist
ansel/templates/crop/crop.inc
ansel/templates/image/edit_image.inc
ansel/templates/image/preview_image.inc
ansel/templates/view/gallery.inc
ansel/templates/view/navbar-image.inc
ansel/view.php
ansel/image.php
ansel/crop.php

For some reason, cvs did not want to do diffs for
ansel/templates/view/gallery.inc, so the entire file is attached.

--Ben
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crop.inc.diff
Type: text/diff
Size: 638 bytes
Desc: not available
Url : http://lists.horde.org/archives/dev/attachments/20031112/237095f6/crop.inc.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crop.php.diff
Type: text/diff
Size: 994 bytes
Desc: not available
Url : http://lists.horde.org/archives/dev/attachments/20031112/237095f6/crop.php.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: edit_image.inc.diff
Type: text/diff
Size: 982 bytes
Desc: not available
Url : http://lists.horde.org/archives/dev/attachments/20031112/237095f6/edit_image.inc.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gallery.inc
Type: application/octet-stream
Size: 6629 bytes
Desc: not available
Url : http://lists.horde.org/archives/dev/attachments/20031112/237095f6/gallery.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.php.diff
Type: text/diff
Size: 3325 bytes
Desc: not available
Url : http://lists.horde.org/archives/dev/attachments/20031112/237095f6/image.php.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: navbar-image.inc.diff
Type: text/diff
Size: 1100 bytes
Desc: not available
Url : http://lists.horde.org/archives/dev/attachments/20031112/237095f6/navbar-image.inc.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: prefs.php.dist.diff
Type: text/diff
Size: 945 bytes
Desc: not available
Url : http://lists.horde.org/archives/dev/attachments/20031112/237095f6/prefs.php.dist.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: preview_image.inc.diff
Type: text/diff
Size: 674 bytes
Desc: not available
Url : http://lists.horde.org/archives/dev/attachments/20031112/237095f6/preview_image.inc.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: view.php.diff
Type: text/diff
Size: 560 bytes
Desc: not available
Url : http://lists.horde.org/archives/dev/attachments/20031112/237095f6/view.php.bin


More information about the dev mailing list