Member
Member
Connie   2008-07-17, 12:43
#1
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..
Member
Member
sbillard   2008-07-17, 16:31
#2
Sounds good. Will add it next time I update something.
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.