MDL-30890 accessibility compliance: add summary to calendar table

This commit is contained in:
Rossiani Wijaya
2012-03-15 17:09:34 +08:00
parent 476626d39e
commit 3db8d8499e
+2
View File
@@ -413,6 +413,8 @@ class core_calendar_renderer extends plugin_renderer_base {
$table = new html_table();
$table->attributes = array('class'=>'calendarmonth calendartable');
$time = make_timestamp($calendar->year, $calendar->month);
$table->summary = get_string('calendarheading', 'calendar', userdate($time, get_string('strftimemonthyear')));
$table->data = array();
$header = new html_table_row();