';
echo ' | ';
echo '';
echo '';
$summaryformatoptions->noclean = true;
echo format_text($thissection->summary, FORMAT_HTML, $summaryformatoptions);
if (isediting($course->id) && has_capability('moodle/course:update', get_context_instance(CONTEXT_COURSE, $course->id))) {
echo ' ';
}
echo ' ';
print_section($course, $thissection, $mods, $modnamesused);
if (isediting($course->id)) {
print_section_add_menus($course, $section, $modnames);
}
echo ' | ';
echo ' | ';
echo '
';
echo '';
echo ' '.$currenttext.' | ';
$weekperiod = $weekday.' - '.$endweekday;
echo '';
if (!has_capability('moodle/course:viewhiddensections', $context) and !$thissection->visible) { // Hidden for students
print_heading($weekperiod.' ('.get_string('notavailable').')', null, 3, 'weekdates');
} else {
print_heading($weekperiod, null, 3, 'weekdates');
echo '';
$summaryformatoptions->noclean = true;
echo format_text($thissection->summary, FORMAT_HTML, $summaryformatoptions);
if (isediting($course->id) && has_capability('moodle/course:update', get_context_instance(CONTEXT_COURSE, $course->id))) {
echo ' '.
'';
}
echo ' ';
print_section($course, $thissection, $mods, $modnamesused);
if (isediting($course->id)) {
print_section_add_menus($course, $section, $modnames);
}
}
echo ' | ';
echo '';
if ($displaysection == $section) {
echo ''.
' ';
} else {
$strshowonlyweek = get_string("showonlyweek", "", $section);
echo ''.
' ';
}
if (isediting($course->id) && has_capability('moodle/course:update', get_context_instance(CONTEXT_COURSE, $course->id))) {
if ($thissection->visible) { // Show the hide/show eye
echo ''.
' ';
} else {
echo ''.
' ';
}
if ($section > 1) { // Add a arrow to move section up
echo ''.
' ';
}
if ($section < $course->numsections) { // Add a arrow to move section down
echo ''.
' ';
}
}
echo ' |
';
echo '