MDL-10115 User profile: Use title to aid in the ellipsis link being understood by screen readers
This commit is contained in:
+1
-1
@@ -393,7 +393,7 @@ if (!isset($hiddenfields['mycourses'])) {
|
||||
$shown++;
|
||||
if (!$showallcourses && $shown == 20) {
|
||||
$url = new moodle_url('/user/profile.php', array('id' => $user->id, 'showallcourses' => 1));
|
||||
$courselisting .= html_writer::link($url, '...');
|
||||
$courselisting .= html_writer::link($url, '...', array('title' => get_string('viewmore')));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -341,7 +341,7 @@ if (!isset($hiddenfields['mycourses'])) {
|
||||
$shown++;
|
||||
if (!$showallcourses && $shown >= 20) {
|
||||
$url = new moodle_url('/user/view.php', array('id' => $user->id, 'course' => $courseid, 'showallcourses' => 1));
|
||||
$courselisting .= html_writer::link($url, '...');
|
||||
$courselisting .= html_writer::link($url, '...', array('title' => get_string('viewmore')));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user