From 8f629628fc60a74c4c7dbe2041272e0d7f106c63 Mon Sep 17 00:00:00 2001 From: Nate Baxley Date: Fri, 16 Aug 2013 10:27:10 -0500 Subject: [PATCH] accessibility changes --- course/format/renderer.php | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/course/format/renderer.php b/course/format/renderer.php index 2b8067e..5748203 100644 --- a/course/format/renderer.php +++ b/course/format/renderer.php @@ -150,7 +150,7 @@ abstract class format_section_renderer_base extends plugin_renderer_base { $rightcontent = $this->section_right_content($section, $course, $onsectionpage); $o.= html_writer::tag('div', $rightcontent, array('class' => 'right side')); - $o.= html_writer::start_tag('div', array('class' => 'content')); + $o.= html_writer::start_tag('div', array('class' => 'content','role'=>'region', 'aria-label'=>strip_tags($this->section_title($section, $course)))); // When not on a section page, we display the section titles except the general section if null $hasnamenotsecpg = (!$onsectionpage && ($section->section != 0 || !is_null($section->name))); @@ -290,11 +290,11 @@ abstract class format_section_renderer_base extends plugin_renderer_base { $o = ''; $o .= html_writer::start_tag('li', array('id' => 'section-'.$section->section, 'class' => $classattr)); + $title = get_section_name($course, $section); $o .= html_writer::tag('div', '', array('class' => 'left side')); $o .= html_writer::tag('div', '', array('class' => 'right side')); - $o .= html_writer::start_tag('div', array('class' => 'content')); + $o .= html_writer::start_tag('div', array('class' => 'content','role'=>'region', 'aria-label'=>$title)); - $title = get_section_name($course, $section); if ($section->uservisible) { $title = html_writer::tag('a', $title, array('href' => course_get_url($course, $section->section), 'class' => $linkclasses)); diff --git a/mod/forum/lib.php b/mod/forum/lib.php -- 1.8.0.msysgit.0