MDL-59612 core: added previous and next links to activities

Part of MDL-59313.
This commit is contained in:
Mark Nelson 2017-07-26 17:28:01 +08:00
parent d509f80c48
commit d8cb461529
9 changed files with 221 additions and 0 deletions

View file

@ -2100,6 +2100,19 @@ class core_course_renderer extends plugin_renderer_base {
set_attributes(array('class' => 'frontpage-category-names'));
return $this->coursecat_tree($chelper, coursecat::get(0));
}
/**
* Renders the activity navigation.
*
* Defer to template.
*
* @param \core_course\output\activity_navigation $page
* @return string html for the page
*/
public function render_activity_navigation(\core_course\output\activity_navigation $page) {
$data = $page->export_for_template($this->output);
return $this->output->render_from_template('core_course/activity_navigation', $data);
}
}
/**