[cvs] commit: ansel .htaccess gallery.php ansel/docs lighttpd-ansel.conf ansel/lib Ansel.php api.php ansel/lib/Views Abstract.php Gallery.php GalleryLightbox.php ansel/templates/view gallery.inc gallerylightbox.inc
Michael Rubinsky
mike at theupstairsroom.com
Sat May 24 22:06:08 UTC 2008
mrubinsk 2008-05-24 18:06:08 EDT
Modified files:
. .htaccess gallery.php
docs lighttpd-ansel.conf
lib Ansel.php api.php
lib/Views Abstract.php Gallery.php
GalleryLightbox.php
templates/view gallery.inc gallerylightbox.inc
Log:
- Delegate the rendering of gallery views to a Ansel_View_Renderer_* class
and make Ansel_Gallery_View responsible for knowing what Renderer to
instantiate based on the style we are requesting. This helps keep the URLs
clean and pretty as we no longer have to pass around the view in the url
when not using the "default" gallery view. (GalleryLightbox for instance)
- Pass a callback function to the Pager that re-writes the urls to something
like: horde/ansel/gallery/1/page/1 instead of tacking the page onto the URL
as a GET parameter. If not using "pretty" url generation, the callback is
not set, and of course, a callback can also be specified via the api.
Revision Changes Path
1.13 +2 -0 ansel/.htaccess
1.8 +2 -0 ansel/docs/lighttpd-ansel.conf
1.124 +4 -4 ansel/gallery.php
1.427 +4 -4 ansel/lib/Ansel.php
1.21 +35 -1 ansel/lib/Views/Abstract.php
1.101 +19 -115 ansel/lib/Views/Gallery.php
1.27 +34 -2 ansel/lib/Views/GalleryLightbox.php
1.92 +1 -6 ansel/lib/api.php
1.160 +8 -8 ansel/templates/view/gallery.inc
1.11 +9 -9 ansel/templates/view/gallerylightbox.inc
Chora Links:
http://cvs.horde.org/diff.php/ansel/.htaccess?r1=1.12&r2=1.13&ty=u
http://cvs.horde.org/diff.php/ansel/docs/lighttpd-ansel.conf?r1=1.7&r2=1.8&ty=u
http://cvs.horde.org/diff.php/ansel/gallery.php?r1=1.123&r2=1.124&ty=u
http://cvs.horde.org/diff.php/ansel/lib/Ansel.php?r1=1.426&r2=1.427&ty=u
http://cvs.horde.org/diff.php/ansel/lib/Views/Abstract.php?r1=1.20&r2=1.21&ty=u
http://cvs.horde.org/diff.php/ansel/lib/Views/Gallery.php?r1=1.100&r2=1.101&ty=u
http://cvs.horde.org/diff.php/ansel/lib/Views/GalleryLightbox.php?r1=1.26&r2=1.27&ty=u
http://cvs.horde.org/diff.php/ansel/lib/api.php?r1=1.91&r2=1.92&ty=u
http://cvs.horde.org/diff.php/ansel/templates/view/gallery.inc?r1=1.159&r2=1.160&ty=u
http://cvs.horde.org/diff.php/ansel/templates/view/gallerylightbox.inc?r1=1.10&r2=1.11&ty=u
More information about the cvs
mailing list