';
echo '| | ';
echo '';
echo '';
$summaryformatoptions->noclean = true;
echo format_text($thissection->summary, FORMAT_HTML, $summaryformatoptions);
if (isediting($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 '| | ';
if (ajaxenabled() && $editing) {
// Temporarily hide the dates for the weeks. We do it this way
// for now. Eventually, we'll have to modify the javascript code
// to handle re-calculation of dates when sections are moved
// around. For now, just hide all the dates to avoid confusion.
$weekperiod = '';
} else {
$weekperiod = $weekday.' '.$endweekday;
}
echo '';
if (!has_capability('moodle/course:viewhiddensections', $context) and !$thissection->visible) { // Hidden for students
echo ' '.$weekperiod.' ('.get_string('notavailable').') ';
} else {
echo ''.$weekperiod.' ';
echo '';
$summaryformatoptions->noclean = true;
echo format_text($thissection->summary, FORMAT_HTML, $summaryformatoptions);
if (isediting($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)) {
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 '