From 044beba9689c8f6e1883b31042a9aeeafbf9ea21 Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Mon, 27 Nov 2006 03:07:01 +0000 Subject: [PATCH] fix for MDL-7486, replace < and > with words for accessiblity --- lang/en_utf8/moodle.php | 2 ++ lib/weblib.php | 20 +++++++++++++++++--- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/lang/en_utf8/moodle.php b/lang/en_utf8/moodle.php index fb01d825a9..102162033b 100644 --- a/lang/en_utf8/moodle.php +++ b/lang/en_utf8/moodle.php @@ -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'; diff --git a/lib/weblib.php b/lib/weblib.php index 752c343155..4ab097e61d 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -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 = '
'. ''. - '
'; } if ($nextmod) { + // MDL-7486 + if ($USER->screenreader) { + $rarrow = get_string('nextsection'); + } else { + $rarrow = $THEME->rarrow; + } + $nexttext= get_string('activitynext', 'access'); $nextmod = '
'. ''. - '
'; } -- 2.39.5