Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-30890 accessibility compliance: add summary to calendar table

  • Loading branch information...
commit e77f635b8404b4f577c0df0dbdab16406766c26a 1 parent c91704e
rwijaya authored March 15, 2012

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. 2  calendar/renderer.php
2  calendar/renderer.php
@@ -413,6 +413,8 @@ public function show_month_detailed(calendar_information $calendar, moodle_url $
413 413
 
414 414
         $table = new html_table();
415 415
         $table->attributes = array('class'=>'calendarmonth calendartable');
  416
+        $time = make_timestamp($calendar->year, $calendar->month);
  417
+        $table->summary = get_string('calendarheading', 'calendar', userdate($time, get_string('strftimemonthyear')));
416 418
         $table->data = array();
417 419
 
418 420
         $header = new html_table_row();

0 notes on commit e77f635

Please sign in to comment.
Something went wrong with that request. Please try again.