$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
$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"> </td>';
+ echo '<td class="left side"> '.$currenttext.'</td>';
$weekperiod = $weekday.' - '.$endweekday;
-
echo '<td class="content">';
if (!has_capability('moodle/course:viewhiddensections', $context) and !$thissection->visible) { // Hidden for students
$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"> </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.'&week=0#section-'.$section.'" title="'.$strshowallweeks.'">'.
<?PHP // $Id$
// access.php - created with Moodle 1.7 beta + (2006101003)
+ // Accessibility, usability and navigation language file.
$string['access'] = 'Accessibility';
$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';