mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +02:00
MDL-59612 core: added previous and next links to activities
Part of MDL-59313.
This commit is contained in:
parent
d509f80c48
commit
d8cb461529
9 changed files with 221 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue