Skip to content

Commit

Permalink
Merge branch 'MDL-48947_v3_patch' of https://github.com/Syxton/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Oct 1, 2015
2 parents 6dbb46e + c73fd11 commit 331315a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 4 additions & 2 deletions course/format/renderer.php
Expand Up @@ -216,7 +216,8 @@ protected function section_header($section, $course, $onsectionpage, $sectionret
if ($hasnamenotsecpg || $hasnamesecpg) {
$classes = '';
}
$o.= $this->output->heading($this->section_title($section, $course), 3, 'sectionname' . $classes);
$sectionname = html_writer::tag('span', $this->section_title($section, $course));
$o.= $this->output->heading($sectionname, 3, 'sectionname' . $classes);

$o.= html_writer::start_tag('div', array('class' => 'summary'));
$o.= $this->format_summary_text($section);
Expand Down Expand Up @@ -790,7 +791,8 @@ public function print_single_section_page($course, $sections, $mods, $modnames,
if (!$thissection->visible) {
$classes .= ' dimmed_text';
}
$sectiontitle .= $this->output->heading(get_section_name($course, $displaysection), 3, $classes);
$sectionname = html_writer::tag('span', get_section_name($course, $displaysection));
$sectiontitle .= $this->output->heading($sectionname, 3, $classes);

$sectiontitle .= html_writer::end_tag('div');
echo $sectiontitle;
Expand Down
6 changes: 1 addition & 5 deletions theme/bootstrapbase/less/moodle/course.less
Expand Up @@ -53,8 +53,6 @@
&.right {
float: right;
}
position: relative;
z-index: 10;
}
.spinner {
height: 16px;
Expand Down Expand Up @@ -152,8 +150,6 @@
&.right {
float: left;
}
position: relative;
z-index: 10;
}
.activity {
.spinner {
Expand Down Expand Up @@ -342,7 +338,7 @@
margin-top: 0;
}
.course-content ul li.section.hidden {
.sectionname,
.sectionname > span,
.content > div, /* All the divs but the activities which are in a UL. */
.activity .activityinstance {
opacity: .5;
Expand Down

0 comments on commit 331315a

Please sign in to comment.