mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-32508 Close the topic/week ul before showing the add section link
This commit is contained in:
parent
cbf449972f
commit
575826c730
1 changed files with 5 additions and 2 deletions
|
@ -553,6 +553,9 @@ abstract class format_section_renderer_base extends plugin_renderer_base {
|
|||
echo $this->stealth_section_footer();
|
||||
}
|
||||
|
||||
echo $this->end_section_list();
|
||||
|
||||
// Print the add section link
|
||||
$straddsection = get_string('addanadditionalsection', 'moodle');
|
||||
echo html_writer::start_tag('div', array('class' => 'mdl-align'));
|
||||
echo $this->output->action_link(
|
||||
|
@ -562,9 +565,9 @@ abstract class format_section_renderer_base extends plugin_renderer_base {
|
|||
array('class' => 'addsectionlink')
|
||||
);
|
||||
echo html_writer::end_tag('div');
|
||||
}
|
||||
|
||||
} else {
|
||||
echo $this->end_section_list();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue