Merge branch 'MDL-40833-master' of git://github.com/phalacee/moodle
authorDan Poltawski <dan@moodle.com>
Tue, 10 Sep 2013 08:00:52 +0000 (16:00 +0800)
committerDan Poltawski <dan@moodle.com>
Tue, 10 Sep 2013 08:00:52 +0000 (16:00 +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;