No alts for thumbnails
restyler - October 21, 2009 - 07:57
| Project: | Simple Gallery |
| Version: | 6.x-1.5 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Description
There is no alts for images on gallery pages. To fix that, change line 222 of simplegallery.module from
<?php
$cell = l(theme('imagecache', $imagecache, $node->{$imagefield}[$i]['filepath']),file_create_url($node->{$imagefield}[$i]['filepath']), array('attributes' => array('rel' => 'lightbox[' . $term->name . ']', 'title' => $imagecaption), 'html'=>TRUE));
?>to
<?php
$cell = l(theme('imagecache', $imagecache, $node->{$imagefield}[$i]['filepath'], $imagecaption), file_create_url($node->{$imagefield}[$i]['filepath']), array('attributes' => array('rel' => 'lightbox[' . $term->name . ']', 'title' => $imagecaption), 'html'=>TRUE));
?>