MDL-30890 accessibility compliance: add summary to calendar table

This commit is contained in:
Rossiani Wijaya 2012-03-15 16:55:59 +08:00
parent 23778a4dfa
commit 89c7c7a999

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();