ZenphotoCMS Forum
HTML incorrect in zenphoto plugin - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: HTML incorrect in zenphoto plugin (/thread-6496.html)



HTML incorrect in zenphoto plugin - NickC - 2010-01-24

In the user guide, Zenphoto plugin , this line:
echo " ';
is incorrect isn't it? Shouldn't the last line $randomImage->getTitle() be part of the text of the `tag? Plus there is an extra ", which appears just before the close of the `tag, and I'm not sure why the \n just after the alt attribute.

IOW, it should be
alt=\"random image\"/>" . $randomImage->getTitle() . '';
which puts the image title as a clickable link, and removes the \n and the surplus ".

Perhaps it was written specifically for Wordpress, but for anything else, as I've written.

Can some one confirm this?
Thanks.




HTML incorrect in zenphoto plugin - sbillard - 2010-01-24

There is an extra quote after random image. Otherwise the HTML is correct. But, of course, it is an example. You can change it to suit your needs.