diff --git a/course/format/renderer.php b/course/format/renderer.php index bfc5641b364..ac921dc9a46 100644 --- a/course/format/renderer.php +++ b/course/format/renderer.php @@ -655,11 +655,12 @@ abstract class format_section_renderer_base extends plugin_renderer_base { $sectiontitle .= html_writer::tag('span', $sectionnavlinks['previous'], array('class' => 'mdl-left')); $sectiontitle .= html_writer::tag('span', $sectionnavlinks['next'], array('class' => 'mdl-right')); // Title attributes - $titleattr = 'mdl-align title'; + $classes = 'sectionname'; if (!$thissection->visible) { - $titleattr .= ' dimmed_text'; + $classes .= ' dimmed_text'; } - $sectiontitle .= html_writer::tag('div', get_section_name($course, $displaysection), array('class' => $titleattr)); + $sectiontitle .= $this->output->heading(get_section_name($course, $displaysection), 3, $classes); + $sectiontitle .= html_writer::end_tag('div'); echo $sectiontitle;