ZenphotoCMS Forum
zP skeleton - how to use colorbox? (even though not fully responsive) - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Themes (https://forum.zenphoto.org/forum-5.html)
+--- Thread: zP skeleton - how to use colorbox? (even though not fully responsive) (/thread-11373.html)



zP skeleton - how to use colorbox? (even though not fully responsive) - mercury66 - 25-09-2013

Hi,

My client has asked if he can have colorbox on the image pages on zpSkeleton.

I've added the links to script & css & can get the modal box to open OK - I'm struggling however to get the default image to print in the modal. (no a href for me to add class to).

Can anyone point me in the right direction?

I've checked out colorbox site and read ZenPhoto theme docs, & I am aware that the theme author didn't wish to add colorbox because it isn't fully responsive.

Code for printing image in theme is:

if ($zpskel_ismobile) { $size = 420; } else { $size = 630; } printCustomSizedImage(getBareImageTitle(),$size,null,null,null,null,null,null,'remove-attributes');

Many thanks,
Ewan




zP skeleton - how to use colorbox? (even though not fully responsive) - acrylian - 25-09-2013

Look at Zenpage theme's image.php for an example.