]> git.mjollnir.org Git - moodle.git/commitdiff
Fixes MDL-12541 "Weeks course format - dates for each section should be marked up...
authornfreear <nfreear>
Tue, 11 Dec 2007 15:25:07 +0000 (15:25 +0000)
committernfreear <nfreear>
Tue, 11 Dec 2007 15:25:07 +0000 (15:25 +0000)
course/format/weeks/format.php
theme/standard/styles_fonts.css

index 1d6225040b77e88bc156422a479120ace1664a25..c3f0ca2b43d0b3cf380679497cbccbaab0de0be1 100644 (file)
             }
             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;
index 0ae44cbad73ebb0092670adb22ac81095db3bae0..196ae1a6c8d0a935f4e2e5c1ad0df0d0c4ce4d75 100644 (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;
 }