Fixes MDL-12541 "Weeks course format - dates for each section should be marked up as heading". Merged.

This commit is contained in:
nfreear
2007-12-11 15:25:07 +00:00
parent d8d9497719
commit 0154653b9b
2 changed files with 10 additions and 2 deletions
+4 -2
View File
@@ -239,12 +239,14 @@
}
echo '</div>';
$weekperiod = $weekday.' - '.$endweekday;
echo '<div class="content">';
if (!has_capability('moodle/course:viewhiddensections', $context) and !$thissection->visible) { // Hidden for students
echo '<div class="weekdates">'.$currenttext.$weekday.' - '.$endweekday.' ('.get_string('notavailable').')</div>';
print_heading($currenttext.$weekperiod.' ('.get_string('notavailable').')', null, 3, 'weekdates');
} else {
echo '<div class="weekdates">'.$currenttext.$weekday.' - '.$endweekday.'</div>';
print_heading($currenttext.$weekperiod, null, 3, 'weekdates');
echo '<div class="summary">';
$summaryformatoptions->noclean = true;
+6
View File
@@ -434,6 +434,12 @@ table.minicalendar {
line-height:1em;
}
#course-view .section .weekdates {
margin: 0;
font-weight: normal;
font-size: 1em;
}
#course-view .section .left {
font-weight:bold;
}