summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-08-22 13:45:37 +0000
committerDries Buytaert <dries@buytaert.net>2009-08-22 13:45:37 +0000
commit73a72337bb4c296211c5cb728b027ad0fefa85ed (patch)
tree6048bede0556418a8cfa72f03d75e575da9612ac /themes
parent0ac8abb27f52669e1375fea2e11389e58315bb61 (diff)
downloadbrdo-73a72337bb4c296211c5cb728b027ad0fefa85ed.tar.gz
brdo-73a72337bb4c296211c5cb728b027ad0fefa85ed.tar.bz2
- Patch #364219 by Everett Zufelt, brandonojc, jmburnz, mgifford: for accessibility, navigation menus should be preceded by headings of the appropriate level.
Diffstat (limited to 'themes')
-rw-r--r--themes/garland/template.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/themes/garland/template.php b/themes/garland/template.php
index c83a80694..7a58dfdb0 100644
--- a/themes/garland/template.php
+++ b/themes/garland/template.php
@@ -19,8 +19,12 @@ function garland_breadcrumb($breadcrumb) {
*/
function garland_preprocess_page(&$vars) {
$vars['tabs2'] = menu_secondary_local_tasks();
- $vars['primary_nav'] = isset($vars['main_menu']) ? theme('links', $vars['main_menu'], array('class' => 'links main-menu')) : FALSE;
- $vars['secondary_nav'] = isset($vars['secondary_menu']) ? theme('links', $vars['secondary_menu'], array('class' => 'links secondary-menu')) : FALSE;
+ $vars['primary_nav'] = isset($vars['main_menu']) ? theme('links', $vars['main_menu'], array(
+ 'text' => t('Main menu'), 'level' => 'h2', 'class' => 'element-invisible',
+ ), array('class' => 'links main-menu')) : FALSE;
+ $vars['secondary_nav'] = isset($vars['secondary_menu']) ? theme('links', $vars['secondary_menu'], array(
+ 'text' => t('Secondary menu'), 'level' => 'h2', 'class' => 'element-invisible',
+ ), array('class' => 'links secondary-menu')) : FALSE;
$vars['ie_styles'] = garland_get_ie_styles();
// Prepare header