diff --git a/course/format/lams/format.php b/course/format/lams/format.php
index de01892fe14..2ffbe6b1009 100644
--- a/course/format/lams/format.php
+++ b/course/format/lams/format.php
@@ -238,17 +238,19 @@ while ($section <= $course->numsections) {
$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 '
';
- echo '| | ';
+ echo ' '.$currenttext.' | ';
echo '';
if (!has_capability('moodle/course:viewhiddensections', $context) and !$thissection->visible) { // Hidden for students
diff --git a/course/format/topics/format.php b/course/format/topics/format.php
index d0befec1b82..3ed252480bc 100644
--- a/course/format/topics/format.php
+++ b/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 ' |
';
- echo '| '.$section.' | ';
+ echo ''.$currenttext.$section.' | ';
echo '';
if (!has_capability('moodle/course:viewhiddensections', $context) and !$thissection->visible) { // Hidden for students
diff --git a/course/format/weeks/format.php b/course/format/weeks/format.php
index 8a0b3afd35d..7e336806a75 100644
--- a/course/format/weeks/format.php
+++ b/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 ' |
';
- echo '| | ';
+ echo ' '.$currenttext.' | ';
$weekperiod = $weekday.' - '.$endweekday;
-
echo '';
if (!has_capability('moodle/course:viewhiddensections', $context) and !$thissection->visible) { // Hidden for students
diff --git a/course/format/weekscss/format.php b/course/format/weekscss/format.php
index 3168314045d..7e06380ad4a 100644
--- a/course/format/weekscss/format.php
+++ b/course/format/weekscss/format.php
@@ -190,10 +190,12 @@
$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 = '';
}
@@ -201,7 +203,7 @@
echo ''; //' ';
// Note, 'right side' is BEFORE content.
- echo ' |