diff --git a/course/format/renderer.php b/course/format/renderer.php index 510de038e4d..9a36a2a4f8e 100644 --- a/course/format/renderer.php +++ b/course/format/renderer.php @@ -268,10 +268,10 @@ abstract class format_section_renderer_base extends plugin_renderer_base { protected function section_summary($section, $course) { $o = ''; - $o.= html_writer::start_tag('li', array('id' => 'section-'.$section->section)); + $o.= html_writer::start_tag('li', array('id' => 'section-'.$section->section, + 'class' => 'section-summary clearfix')); $title = get_section_name($course, $section); - $o.= html_writer::start_tag('div', array('class' => 'section-summary')); $o.= html_writer::start_tag('a', array('href' => course_get_url($course, $section->section))); $o.= $this->output->heading($title, 3, 'header section-title'); $o.= html_writer::end_tag('a'); @@ -279,7 +279,6 @@ abstract class format_section_renderer_base extends plugin_renderer_base { $o.= html_writer::start_tag('div', array('class' => 'summarytext')); $o.= format_text($section->summary, $section->summaryformat); $o.= html_writer::end_tag('div'); - $o.= html_writer::end_tag('div'); $o.= html_writer::end_tag('li'); return $o; diff --git a/theme/base/style/course.css b/theme/base/style/course.css index 9dd7fc3d00e..684cbe05474 100644 --- a/theme/base/style/course.css +++ b/theme/base/style/course.css @@ -8,7 +8,7 @@ .course-content .section .activity img.activityicon {vertical-align:middle;height:16px;width:16px;} .course-content .section .activity .commands img.iconsmall {vertical-align: baseline;} -.course-content .section-summary { border: 1px solid #DDD; margin-top: 5px; } +.course-content .section-summary { border: 1px solid #DDD; margin-top: 5px; list-style: none; } .course-content .section-summary .section-title { margin: 2px 5px 2px 5px; } .course-content .section-summary .summarytext { margin: 2px 5px 2px 5px; } .course-content .section-navigation { display: block; padding: 10px; }