MDL-72990 badges: Use imagecaption as alternative text for badge image
This commit is contained in:
+1
-1
@@ -334,7 +334,7 @@ class core_badges_renderer extends plugin_renderer_base {
|
||||
$output = '';
|
||||
$output .= html_writer::start_tag('div', array('id' => 'badge'));
|
||||
$output .= html_writer::start_tag('div', array('id' => 'badge-image'));
|
||||
$output .= html_writer::empty_tag('img', array('src' => $badgeimage, 'alt' => $badge->name, 'width' => '100'));
|
||||
$output .= html_writer::empty_tag('img', array('src' => $badgeimage, 'alt' => $badge->imagecaption, 'width' => '100'));
|
||||
if ($expiration < $now) {
|
||||
$output .= $this->output->pix_icon('i/expired',
|
||||
get_string('expireddate', 'badges', userdate($issued['expires'])),
|
||||
|
||||
Reference in New Issue
Block a user