Skip to content
Browse files

MDL-1149 Accessibility: Current week/topic is NOT indicated non-visua…

…lly, only in styling. Merged.
  • Loading branch information...
1 parent bf4fe92 commit 247958fbe9ba1e2cf6d1eba80041fee4bf2fec85 nfreear committed Sep 25, 2007
View
4 course/format/lams/format.php
@@ -238,17 +238,19 @@
$currenttopic = ($course->marker == $section);
+ $currenttext = '';
if (!$thissection->visible) {
$sectionstyle = ' hidden';
} else if ($currenttopic) {
$sectionstyle = ' current';
+ $currenttext = get_accesshide(get_string('currenttopic','access'));
} else {
$sectionstyle = '';
}
echo '<tr id="section-'.$section.'" class="section main'.$sectionstyle.'">';
- echo '<td class="left side">&nbsp;</td>';
+ echo '<td class="left side">&nbsp;'.$currenttext.'</td>';
echo '<td class="content">';
if (!has_capability('moodle/course:viewhiddensections', $context) and !$thissection->visible) { // Hidden for students
View
4 course/format/topics/format.php
@@ -171,16 +171,18 @@
$currenttopic = ($course->marker == $section);
+ $currenttext = '';
if (!$thissection->visible) {
$sectionstyle = ' hidden';
} else if ($currenttopic) {
$sectionstyle = ' current';
+ $currenttext = get_accesshide(get_string('currenttopic','access'));
} else {
$sectionstyle = '';
}
echo '<tr id="section-'.$section.'" class="section main'.$sectionstyle.'">';
- echo '<td class="left side">'.$section.'</td>';
+ echo '<td class="left side">'.$currenttext.$section.'</td>';
echo '<td class="content">';
if (!has_capability('moodle/course:viewhiddensections', $context) and !$thissection->visible) { // Hidden for students
View
5 course/format/weeks/format.php
@@ -162,19 +162,20 @@
$currentweek = (($weekdate <= $timenow) && ($timenow < $nextweekdate));
+ $currenttext = '';
if (!$thissection->visible) {
$sectionstyle = ' hidden';
} else if ($currentweek) {
$sectionstyle = ' current';
+ $currenttext = get_accesshide(get_string('currentweek','access'));
} else {
$sectionstyle = '';
}
echo '<tr id="section-'.$section.'" class="section main'.$sectionstyle.'">';
- echo '<td class="left side">&nbsp;</td>';
+ echo '<td class="left side">&nbsp;'.$currenttext.'</td>';
$weekperiod = $weekday.' - '.$endweekday;
-
echo '<td class="content">';
if (!has_capability('moodle/course:viewhiddensections', $context) and !$thissection->visible) { // Hidden for students
View
4 course/format/weekscss/format.php
@@ -190,18 +190,20 @@
$currentweek = (($weekdate <= $timenow) && ($timenow < $nextweekdate));
+ $currenttext = '';
if (!$thissection->visible) {
$sectionstyle = ' hidden';
} else if ($currentweek) {
$sectionstyle = ' current';
+ $currenttext = get_accesshide(get_string('currentweek','access'));
} else {
$sectionstyle = '';
}
echo '<li id="section-'.$section.'" class="section main'.$sectionstyle.'" >'; //'<div class="left side">&nbsp;</div>';
// Note, 'right side' is BEFORE content.
- echo '<div class="right side">';
+ echo '<div class="right side">'.$currenttext;
if ($displaysection == $section) {
echo '<a href="view.php?id='.$course->id.'&amp;week=0#section-'.$section.'" title="'.$strshowallweeks.'">'.
View
4 lang/en_utf8/access.php
@@ -1,6 +1,6 @@
<?PHP // $Id$
// access.php - created with Moodle 1.7 beta + (2006101003)
-
+ // Accessibility, usability and navigation language file.
$string['access'] = 'Accessibility';
$string['accesshelp'] = 'Accessibility help';
@@ -9,6 +9,8 @@
$string['activitynext'] = 'Next activity';
$string['activityprev'] = 'Previous activity';
$string['breadcrumb'] = 'Breadcrumb trail';
+$string['currentweek'] = 'Current week ';
+$string['currenttopic'] = 'Current topic ';
$string['monthnext'] = 'Next month';
$string['monthprev'] = 'Previous month';
$string['showhideblock'] = 'Show or hide block';

0 comments on commit 247958f

Please sign in to comment.
Something went wrong with that request. Please try again.