HTML incorrect in zenphoto plugin

In the user guide, Zenphoto plugin <http://www.zenphoto.org/2009/12/zenphoto-as-a-plug-in-using-zenphoto-functions-from-outside-zenphoto/>, this line:
`
echo "
imagegetSizedImage(getOption('image_size')) . "'
alt=\"random image\"\n" . $randomImage->getTitle() . '" />
';
`
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.

Comments

  • 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.
Sign In or Register to comment.