MDL-1149 Accessibility: Current week/topic is NOT indicated non-visually, only in styling. Merged.

This commit is contained in:
nfreear
2007-09-25 12:08:19 +00:00
parent 5d88d553ef
commit 89eccbccb2
5 changed files with 15 additions and 5 deletions
+3 -2
View File
@@ -187,19 +187,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