Navigation Menu

Skip to content

Commit

Permalink
Fixes MDL-12541 "Weeks course format - dates for each section should …
Browse files Browse the repository at this point in the history
…be marked up as heading".
  • Loading branch information
nfreear committed Dec 11, 2007
1 parent c6d734d commit 0a440a8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions course/format/weeks/format.php
Expand Up @@ -193,10 +193,10 @@

echo '<td class="content">';
if (!has_capability('moodle/course:viewhiddensections', $context) and !$thissection->visible) { // Hidden for students
echo '<div class="weekdates">'.$weekperiod.' ('.get_string('notavailable').')</div>';
print_heading($weekperiod.' ('.get_string('notavailable').')', null, 3, 'weekdates');

} else {
echo '<div class="weekdates">'.$weekperiod.'</div>';
print_heading($weekperiod, null, 3, 'weekdates');

echo '<div class="summary">';
$summaryformatoptions->noclean = true;
Expand Down
6 changes: 4 additions & 2 deletions course/format/weekscss/format.php
Expand Up @@ -228,12 +228,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;
Expand Down
6 changes: 6 additions & 0 deletions theme/standard/styles_fonts.css
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0a440a8

Please sign in to comment.