Skip to content

Commit

Permalink
MDL-31824 - Calendar - Fixing HTML classes fopr calendar month view -…
Browse files Browse the repository at this point in the history
… patch provided by Mark Ward
  • Loading branch information
jsnfwlr authored and danpoltawski committed Jan 9, 2013
1 parent 9d940d6 commit 0bd4649
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions calendar/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ public function show_month_detailed(calendar_information $calendar, moodle_url $
// Paddding (the first week may have blank days in the beginning)
for($i = $display->minwday; $i < $startwday; ++$i) {
$cell = new html_table_cell('&nbsp;');
$cell->attributes = array('class'=>'nottoday');
$cell->attributes = array('class'=>'nottoday dayblank');
$row->cells[] = $cell;
}

Expand Down Expand Up @@ -519,10 +519,10 @@ public function show_month_detailed(calendar_information $calendar, moodle_url $
}

// Special visual fx for today
if($display->thismonth && $calendar->day == $calendar->day) {
$cellclasses[] = 'today';
if ($display->thismonth && $calendar->day == $date['mday']) {
$cellclasses[] = 'day today';
} else {
$cellclasses[] = 'nottoday';
$cellclasses[] = 'day nottoday';
}
$cell->attributes = array('class'=>join(' ',$cellclasses));

Expand Down Expand Up @@ -553,7 +553,7 @@ public function show_month_detailed(calendar_information $calendar, moodle_url $
// Paddding (the last week may have blank days at the end)
for($i = $dayweek; $i <= $display->maxwday; ++$i) {
$cell = new html_table_cell('&nbsp;');
$cell->attributes = array('class'=>'nottoday');
$cell->attributes = array('class'=>'nottoday dayblank');
$row->cells[] = $cell;
}
$table->data[] = $row;
Expand Down

0 comments on commit 0bd4649

Please sign in to comment.