MDL-40833 Course - Single topic pages need h3 for section heading
authorJason Fowler <phalacee@gmail.com>
Tue, 27 Aug 2013 01:25:32 +0000 (09:25 +0800)
committerJason Fowler <phalacee@gmail.com>
Wed, 4 Sep 2013 07:39:27 +0000 (15:39 +0800)
course/format/renderer.php

index bfc5641..ac921dc 100644 (file)
@@ -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;