mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-40833 Course - Single topic pages need h3 for section heading
This commit is contained in:
parent
ee788142f2
commit
2e2d0f75dd
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user