mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Tidying up some accessibility changes
This commit is contained in:
parent
9191e2b581
commit
9f69862640
1 changed files with 4 additions and 4 deletions
|
@ -3966,10 +3966,10 @@ function helpbutton ($page, $title='', $module='moodle', $image=true, $linktext=
|
||||||
$linkobject = '<span class="helplink">';
|
$linkobject = '<span class="helplink">';
|
||||||
|
|
||||||
//Accessibility: prefix the alt text/title with 'Help with', strip distracting dots '...'
|
//Accessibility: prefix the alt text/title with 'Help with', strip distracting dots '...'
|
||||||
$title = get_string('helpprefix', '', trim($title,' \t.'));
|
$tooltip = get_string('helpprefix', '', trim($title,' \t.'));
|
||||||
if ($image) {
|
if ($image) {
|
||||||
if ($imagetext == '') {
|
if ($imagetext == '') {
|
||||||
$imagetext = '<img alt="'.$title.'" src="'.
|
$imagetext = '<img alt="'.$tooltip.'" src="'.
|
||||||
$CFG->pixpath .'/help.gif" />';
|
$CFG->pixpath .'/help.gif" />';
|
||||||
}
|
}
|
||||||
if ($linktext) {
|
if ($linktext) {
|
||||||
|
@ -3979,7 +3979,7 @@ function helpbutton ($page, $title='', $module='moodle', $image=true, $linktext=
|
||||||
$linkobject .= $imagetext;
|
$linkobject .= $imagetext;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
$linkobject .= $title;
|
$linkobject .= $tooltip;
|
||||||
}
|
}
|
||||||
|
|
||||||
$linkobject .= '</span>';
|
$linkobject .= '</span>';
|
||||||
|
@ -3990,7 +3990,7 @@ function helpbutton ($page, $title='', $module='moodle', $image=true, $linktext=
|
||||||
$url = '/help.php?module='. $module .'&file='. $page .'.html';
|
$url = '/help.php?module='. $module .'&file='. $page .'.html';
|
||||||
}
|
}
|
||||||
|
|
||||||
$link = link_to_popup_window ($url, 'popup', $linkobject, 400, 500, $title, 'none', true);
|
$link = link_to_popup_window ($url, 'popup', $linkobject, 400, 500, $tooltip, 'none', true);
|
||||||
|
|
||||||
if ($return) {
|
if ($return) {
|
||||||
return $link;
|
return $link;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue