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:
MinSoo Kim 2016-10-17 00:36:05 +09:00
parent 62f56919f7
commit ab9d6f5023
2 changed files with 4 additions and 4 deletions

View file

@ -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);