+ // General section if non-empty.
+ $thissection = $sections[0];
+ if ($thissection->summary or $thissection->sequence or $PAGE->user_is_editing()) {
+ echo $this->start_section_list();
+ echo $this->section_header($thissection, $course, true);
+ print_section($course, $thissection, $mods, $modnamesused, true);
+ if ($PAGE->user_is_editing()) {
+ print_section_add_menus($course, 0, $modnames);
+ }
+ echo $this->section_footer();
+ echo $this->end_section_list();
+ }
+
+ // Section next/previous links.
+ $sectionnavlinks = $this->get_nav_links($course, $sections, $displaysection);
+ echo $sectionnavlinks;
+
+