Fixes MDL-12541 "Weeks course format - dates for each section should be marked up as heading". Merged.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user