ZenphotoCMS Forum
printDefaultSizedImage does not produce image-title in image-link - 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: printDefaultSizedImage does not produce image-title in image-link (/thread-3307.html)



printDefaultSizedImage does not produce image-title in image-link - Connie - 2008-07-17

I am working with SV1954 in the moment,
I want to suggest to add the image-title-attribute when generating the `<img`-tag in template-functions.php because [i]title[/i] is as important as [i]alt[/i]

so here is the code:
`//Print images

else {

echo "<img src=\"" . htmlspecialchars(getDefaultSizedImage()) . "\" alt=\"" . htmlspecialchars($alt, ENT_QUOTES) . "\" title=\"" . htmlspecialchars($alt, ENT_QUOTES) . "\"" .

" width=\"" . getDefaultWidth() . "\" height=\"" . getDefaultHeight() . "\"" .

(($class) ? " class=\"$class\"" : "") .

(($id) ? " id=\"$id\"" : "") . " />";

}`

I am convinced that the title-attribute should be produced with every image, so I suggest to add it generally..


printDefaultSizedImage does not produce image-title in image-link - sbillard - 2008-07-17

Sounds good. Will add it next time I update something.