Permalink
Browse files

MDL-20446 - Add a heading 'Page path:' to navigation bar, hidden from…

… sighted users.
  • Loading branch information...
1 parent 29ba64e commit dcfb9b780e619869e25b186f4cdbc620ddc1a974 @rwijaya rwijaya committed Jun 23, 2010
Showing with 5 additions and 2 deletions.
  1. +5 −2 lib/outputrenderers.php
View
@@ -2166,7 +2166,7 @@ public function fatal_error($message, $moreinfourl, $link, $backtrace, $debuginf
}
$this->page->set_url('/'); // no url
//$this->page->set_pagelayout('base'); //TODO: MDL-20676 blocks on error pages are weird, unfortunately it somehow detect the pagelayout from URL :-(
- $this->page->set_title(get_string('error'));
+ $this->page->set_title(get_string('error'));
$output .= $this->header();
}
@@ -2456,8 +2456,11 @@ public function navbar() {
$htmlblocks[] = $content;
}
+ //accessibility: heading for navbar list (MDL-20446)
+ $navbarcontent = html_writer::tag('span', get_string('pagepath'), array('class'=>'accesshide'));
+ $navbarcontent .= html_writer::tag('ul', join('', $htmlblocks));
// XHTML
- return html_writer::tag('ul', join('', $htmlblocks));
+ return $navbarcontent;
}
protected function render_navigation_node(navigation_node $item) {

0 comments on commit dcfb9b7

Please sign in to comment.