Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-30890 accessibility compliance: add summary to calendar table

  • Loading branch information...
commit e77f635b8404b4f577c0df0dbdab16406766c26a 1 parent c91704e
@rwijaya rwijaya authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  calendar/renderer.php
View
2  calendar/renderer.php
@@ -413,6 +413,8 @@ public function show_month_detailed(calendar_information $calendar, moodle_url $
$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();
Please sign in to comment.
Something went wrong with that request. Please try again.