/** * Returns course-specific information to be output immediately below content on any course page * (for the current course) * * @param bool $onlyifnotcalledbefore output content only if it has not been output before * @return string */ public function course_content_footer($onlyifnotcalledbefore = false) { if ($this->page->course->id == SITEID) { // Return immediately and do not include /course/lib.php if not necessary. return ''; } static $functioncalled = false; if ($functioncalled && $onlyifnotcalledbefore) { // We have already output the content header. return ''; } $functioncalled = true; $markup = parent::course_content_footer($onlyifnotcalledbefore); if ($this->page->pagelayout == 'incourse' && is_object($this->page->cm)) { $markup .= html_writer::start_tag('div', array('class' => 'row-fluid')); $markup .= html_writer::start_tag('div', array('class' => 'span12 text-center footer-rts')); $markup .= $this->return_to_section(); $markup .= html_writer::end_tag('div'); $markup .= html_writer::end_tag('div'); } return $markup; }