$module = 'moodle';
}
-
- //Accessibility: prefix the alt text/title with 'Help with', strip distracting dots '...'
+ // Accessibility: prefix the alt text/title with 'Help with', strip distracting dots '...'
// PLEASE DO NOT CHANGE. ('...' is VERY distracting for non-visual users)
$tooltip = get_string('helpprefix2', '', trim($title, ". \t"));
if ($image) {
if ($linktext) {
+ // MDL-7469 If text link is displayed with help icon, change to alt to "help with this".
$linkobject .= $title.' ';
+ $tooltip = get_string('helpwiththis');
}
-
if ($imagetext) {
$linkobject .= $imagetext;
} else {
$linkobject .= '<img alt="'.$tooltip.'" src="'.
$CFG->pixpath .'/help.gif" />';
}
-
} else {
$linkobject .= $tooltip;
}