From 0154653b9bc48100dfbd59d993257a680aa84e7e Mon Sep 17 00:00:00 2001 From: nfreear Date: Tue, 11 Dec 2007 15:25:07 +0000 Subject: [PATCH] Fixes MDL-12541 "Weeks course format - dates for each section should be marked up as heading". Merged. --- course/format/weeks/format.php | 6 ++++-- theme/standard/styles_fonts.css | 6 ++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/course/format/weeks/format.php b/course/format/weeks/format.php index 1d6225040b..c3f0ca2b43 100644 --- a/course/format/weeks/format.php +++ b/course/format/weeks/format.php @@ -239,12 +239,14 @@ } echo ''; + $weekperiod = $weekday.' - '.$endweekday; + echo '
'; if (!has_capability('moodle/course:viewhiddensections', $context) and !$thissection->visible) { // Hidden for students - echo '
'.$currenttext.$weekday.' - '.$endweekday.' ('.get_string('notavailable').')
'; + print_heading($currenttext.$weekperiod.' ('.get_string('notavailable').')', null, 3, 'weekdates'); } else { - echo '
'.$currenttext.$weekday.' - '.$endweekday.'
'; + print_heading($currenttext.$weekperiod, null, 3, 'weekdates'); echo '
'; $summaryformatoptions->noclean = true; diff --git a/theme/standard/styles_fonts.css b/theme/standard/styles_fonts.css index 0ae44cbad7..196ae1a6c8 100644 --- a/theme/standard/styles_fonts.css +++ b/theme/standard/styles_fonts.css @@ -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; } -- 2.39.5