From: nfreear Date: Tue, 11 Dec 2007 15:25:07 +0000 (+0000) Subject: Fixes MDL-12541 "Weeks course format - dates for each section should be marked up... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=0154653b9bc48100dfbd59d993257a680aa84e7e;p=moodle.git Fixes MDL-12541 "Weeks course format - dates for each section should be marked up as heading". Merged. --- 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; }