Could you please post the exact code for this, because I would like to have the same function in my new zp-theme and this is one of only two things that are still missing.
The best would be a simple php-code that i can put into the next/prev-navigation from the default theme:
`
[img]xxx[/img]
`
and in xxx should be the path to the thumbnail.
Thanks!
It's hard to do outside the theme functions, so I made some new ones.
Paste these into template-functions.php. They will be included in future releases, so anything you make with them now should work in the future.
`function getPrevImageThumb() {
if(!in_context(ZP_IMAGE)) return false;
global $_zp_current_album, $_zp_current_image;
$img = new Image($_zp_current_album, $_zp_current_image->getPrevImage());
return $img->getThumb();
}`
`function getNextImageThumb() {
if(!in_context(ZP_IMAGE)) return false;
global $_zp_current_album, $_zp_current_image;
$img = new Image($_zp_current_album, $_zp_current_image->getNextImage());
return $img->getThumb();
}`
And here's an example of how to use it on the image.php theme page:
[img][/img]
Note that I may work on these functions more, adding custom thumb sizes and better checking for next/prev existence, so be prepared to update your themes.
Thanks! I'd been hoping for this. If anyone wants to see a demo integration I just threw it in to my template along with get next and previous title functions.
http://www.reidab.com/photos/nyc2004/IMG_1039.JPG
[i]Note:[/i] I'm in the middle of struggling to make IE not break this layout, so don't use it if you want to actually see anything properly at the above link.
Hey there. Thanks for adding this function, but I have a question slash request:
Can I see a range of thumbnails forwards and backwards of the current image? I want to have a navigation bar at the bottom of the page that shows a range of the photos one has seen and to get a quick look ahead of what's coming.
I'm not sure if this can be done with the current function, or if I need to write my own. Thanks.