fix for MDL-7486, replace < and > with words for accessiblity
This commit is contained in:
@@ -941,6 +941,7 @@ Cheers from the \'$a->sitename\' administrator,
|
||||
$a->signoff';
|
||||
$string['newusers'] = 'New users';
|
||||
$string['next'] = 'Next';
|
||||
$string['nextsection'] = 'Next section';
|
||||
$string['no'] = 'No';
|
||||
$string['nobody'] = 'Nobody';
|
||||
$string['nochange'] = 'No change';
|
||||
@@ -1073,6 +1074,7 @@ $string['preview'] = 'Preview';
|
||||
$string['previewhtml'] = 'HTML Format Preview';
|
||||
$string['previeworchoose'] = 'Preview or choose a theme';
|
||||
$string['previous'] = 'Previous';
|
||||
$string['previoussection'] = 'Previous section';
|
||||
$string['profile'] = 'Profile';
|
||||
$string['publicdirectory'] = 'Public directory';
|
||||
$string['publicdirectory0'] = 'Please do not publish this site';
|
||||
|
||||
+17
-3
@@ -4017,7 +4017,7 @@ function print_group_menu($groups, $groupmode, $currentgroup, $urlroot, $showall
|
||||
*/
|
||||
function navmenu($course, $cm=NULL, $targetwindow='self') {
|
||||
|
||||
global $CFG, $THEME;
|
||||
global $CFG, $THEME, $USER;
|
||||
|
||||
if (empty($THEME->navmenuwidth)) {
|
||||
$width = 50;
|
||||
@@ -4128,17 +4128,31 @@ function navmenu($course, $cm=NULL, $targetwindow='self') {
|
||||
|
||||
}
|
||||
if ($backmod) {
|
||||
// MDL-7486
|
||||
if ($USER->screenreader) {
|
||||
$larrow = get_string('previoussection');
|
||||
} else {
|
||||
$larrow = $THEME->larrow;
|
||||
}
|
||||
|
||||
$backtext= get_string('activityprev', 'access');
|
||||
$backmod = '<form action="'.$CFG->wwwroot.'/mod/'.$backmod->mod.'/view.php" target="'.$CFG->framename.'">'.
|
||||
'<input type="hidden" name="id" value="'.$backmod->cm.'" />'.
|
||||
'<button type="submit" title="'.$backtext.'">'.$THEME->larrow.
|
||||
'<button type="submit" title="'.$backtext.'">'.$larrow.
|
||||
'<span class="accesshide">'.$backtext.'</span></button></form>';
|
||||
}
|
||||
if ($nextmod) {
|
||||
// MDL-7486
|
||||
if ($USER->screenreader) {
|
||||
$rarrow = get_string('nextsection');
|
||||
} else {
|
||||
$rarrow = $THEME->rarrow;
|
||||
}
|
||||
|
||||
$nexttext= get_string('activitynext', 'access');
|
||||
$nextmod = '<form action="'.$CFG->wwwroot.'/mod/'.$nextmod->mod.'/view.php" target="'.$CFG->framename.'">'.
|
||||
'<input type="hidden" name="id" value="'.$nextmod->cm.'" />'.
|
||||
'<button type="submit" title="'.$nexttext.'">'.$THEME->rarrow.
|
||||
'<button type="submit" title="'.$nexttext.'">'.$rarrow.
|
||||
'<span class="accesshide">'.$nexttext.'</span></button></form>';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user