﻿### Eclipse Workspace Patch 1.0
#P Drupal7
Index: themes/garland/style.css
===================================================================
RCS file: /cvs/drupal/drupal/themes/garland/style.css,v
retrieving revision 1.64
diff -u -r1.64 style.css
--- themes/garland/style.css	31 Aug 2009 17:40:03 -0000	1.64
+++ themes/garland/style.css	5 Oct 2009 06:46:06 -0000
@@ -291,6 +291,31 @@
 }
 
 /**
+ * Skip link
+ */
+#skip-link a:link, #skip-link a:visited {
+  font-weight: bold; 
+  background: #fff; 
+  padding: 0px 5px;
+  text-decoration: none;
+  font-size: 80%;
+  text-align: right;
+  top: -99em;
+  left: auto;
+  position: absolute;
+}
+
+#skip-link a:hover, #skip-link a:focus, #skip-link a:active  {
+  height: auto;
+  width: auto;
+  overflow: visible;
+  top:0;
+  left:0;
+  position: fixed;
+  z-index: 1000;
+}
+
+/**
  * Layout
  */
 #header-region {
Index: themes/garland/page.tpl.php
===================================================================
RCS file: /cvs/drupal/drupal/themes/garland/page.tpl.php,v
retrieving revision 1.33
diff -u -r1.33 page.tpl.php
--- themes/garland/page.tpl.php	15 Sep 2009 17:10:39 -0000	1.33
+++ themes/garland/page.tpl.php	5 Oct 2009 06:46:06 -0000
@@ -32,6 +32,7 @@
       <div id="center"><div id="squeeze"><div class="right-corner"><div class="left-corner">
           <?php print $breadcrumb; ?>
           <?php if ($page['highlight']): ?><div id="highlight"><?php render($page['highlight']); ?></div><?php endif; ?>
+          <a name="main-content" id="main-content"></a>
           <?php if ($tabs): ?><div id="tabs-wrapper" class="clearfix"><?php endif; ?>
           <?php if ($title): ?><h2<?php print $tabs ? ' class="with-tabs"' : '' ?>><?php print $title ?></h2><?php endif; ?>
           <?php if ($tabs): ?><ul class="tabs primary"><?php print $tabs ?></ul></div><?php endif; ?>
Index: modules/system/page.tpl.php
===================================================================
RCS file: /cvs/drupal/drupal/modules/system/page.tpl.php,v
retrieving revision 1.33
diff -u -r1.33 page.tpl.php
--- modules/system/page.tpl.php	15 Sep 2009 17:10:39 -0000	1.33
+++ modules/system/page.tpl.php	5 Oct 2009 06:46:06 -0000
@@ -115,6 +115,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 $tabs; ?></div><?php endif; ?>
         <?php print render($page['help']); ?>
Index: modules/system/html.tpl.php
===================================================================
RCS file: /cvs/drupal/drupal/modules/system/html.tpl.php,v
retrieving revision 1.1
diff -u -r1.1 html.tpl.php
--- modules/system/html.tpl.php	15 Sep 2009 17:10:39 -0000	1.1
+++ modules/system/html.tpl.php	5 Oct 2009 06:46:05 -0000
@@ -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; ?>
Index: themes/seven/style.css
===================================================================
RCS file: /cvs/drupal/drupal/themes/seven/style.css,v
retrieving revision 1.18
diff -u -r1.18 style.css
--- themes/seven/style.css	11 Sep 2009 13:48:44 -0000	1.18
+++ themes/seven/style.css	5 Oct 2009 06:46:06 -0000
@@ -51,6 +51,34 @@
 }
 
 /**
+ * Skip link.
+ */
+#skip-link {
+  margin-top: 20px;
+  position: absolute;
+  right: 40px;
+  z-index: 50;
+}
+
+#skip-link a:link,
+#skip-link a:visited {
+ -moz-border-radius: 10px;
+ -webit-border-radius: 10px;
+ border-radius: 10px;
+ background: #d5d5ce;
+ color: #444;
+ font-size: 0.94em;
+ padding: 1px 10px 2px;
+}
+
+#skip-link a:hover,
+#skip-link a:focus {
+  background: #444;
+  color: #fff;
+  text-decoration: none;
+}
+
+/**
  * Branding.
  */
 #branding {
Index: themes/seven/page.tpl.php
===================================================================
RCS file: /cvs/drupal/drupal/themes/seven/page.tpl.php,v
retrieving revision 1.4
diff -u -r1.4 page.tpl.php
--- themes/seven/page.tpl.php	15 Sep 2009 17:10:39 -0000	1.4
+++ themes/seven/page.tpl.php	5 Oct 2009 06:46:06 -0000
@@ -1,6 +1,7 @@
 <?php
 // $Id: page.tpl.php,v 1.4 2009/09/15 17:10:39 webchick Exp $
 ?>
+  <a name="main-content" id="main-content"></a>
   <div id="branding" class="clearfix">
     <?php print $breadcrumb; ?>
     <?php if ($title): ?><h1 class="page-title"><?php print $title; ?></h1><?php endif; ?>
