mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 00:02:21 +09:00
Provide alternative text for web accessibility
* https://github.com/rhymix/rhymix/issues/616 * Find PHP based rendered image elements without alternative text, and fix it to provide the text.
This commit is contained in:
parent
62f56919f7
commit
ab9d6f5023
2 changed files with 4 additions and 4 deletions
|
|
@ -68,7 +68,7 @@ class image_gallery extends EditorHandler
|
|||
$output = array();
|
||||
for($i=0;$i<count($gallery_info->images_list);$i++)
|
||||
{
|
||||
$output[] = sprintf('<img src="%s" alt="" />', $gallery_info->images_list[$i]);
|
||||
$output[] = sprintf('<img src="%s" alt="Gallery image no.%d" />', $gallery_info->images_list[$i], $i+1);
|
||||
}
|
||||
$output[] = '<br />';
|
||||
return implode('<br />', $output);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue