';
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.$section.' | ';
echo '';
if (!has_capability('moodle/course:viewhiddensections', $context) and !$thissection->visible) { // Hidden for students
echo get_string('notavailable');
} else {
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) { // Show the zoom boxes
echo ''.
' ';
} else {
$strshowonlytopic = get_string('showonlytopic', '', $section);
echo ''.
' ';
}
if (isediting($course->id) && has_capability('moodle/course:update', get_context_instance(CONTEXT_COURSE, $course->id))) {
if ($course->marker == $section) { // Show the "light globe" on/off
echo ''.
' ';
} else {
echo ''.
' ';
}
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 '