diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-11-16 05:34:24 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-11-16 05:34:24 +0000 |
commit | 796bb8543bb7ae6df3b2ed224b63be874f3e5c8c (patch) | |
tree | 9b259cdace98db816fccf9495499f9947b7f510a /modules | |
parent | 19fb7786167347e7509aeb9569a19674f6a31f6b (diff) | |
download | brdo-796bb8543bb7ae6df3b2ed224b63be874f3e5c8c.tar.gz brdo-796bb8543bb7ae6df3b2ed224b63be874f3e5c8c.tar.bz2 |
#386462 by Jeff Burnz, mgifford, Cliff, Everett Zufelt, annmcmeekin, et al: Added 'Skip to main content' links in all core themes.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/system/html.tpl.php | 3 | ||||
-rw-r--r-- | modules/system/page.tpl.php | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/modules/system/html.tpl.php b/modules/system/html.tpl.php index 846a1ec70..727418a92 100644 --- a/modules/system/html.tpl.php +++ b/modules/system/html.tpl.php @@ -45,6 +45,9 @@ <?php print $scripts; ?> </head> <body class="<?php print $classes; ?>" <?php print $attributes;?>> + <div id="skip-link"> + <a href="#main-content"><?php print t('Skip to main content'); ?></a> + </div> <?php print $page_top; ?> <?php print $page; ?> <?php print $page_bottom; ?> diff --git a/modules/system/page.tpl.php b/modules/system/page.tpl.php index bb2a6d3a3..e474a22fd 100644 --- a/modules/system/page.tpl.php +++ b/modules/system/page.tpl.php @@ -106,6 +106,7 @@ <div id="content" class="column"><div class="section"> <?php if ($page['highlight']): ?><div id="highlight"><?php print render($page['highlight']); ?></div><?php endif; ?> + <a name="main-content" id="main-content"></a> <?php if ($title): ?><h1 class="title" id="page-title"><?php print $title; ?></h1><?php endif; ?> <?php if ($tabs): ?><div class="tabs"><?php print render($tabs); ?></div><?php endif; ?> <?php print render($page['help']); ?> |