﻿### Eclipse Workspace Patch 1.0
#P Drupal7
Index: modules/system/system.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/system/system.module,v
retrieving revision 1.844
diff -u -r1.844 system.module
--- modules/system/system.module	22 Nov 2009 01:33:45 -0000	1.844
+++ modules/system/system.module	22 Nov 2009 20:46:14 -0000
@@ -2219,6 +2219,7 @@
         'slogan',
         'main_menu',
         'secondary_menu',
+        'skip_link',
       ),
       'screenshot' => 'screenshot.png',
       'php' => DRUPAL_MINIMUM_PHP,
Index: modules/system/system.admin.inc
===================================================================
RCS file: /cvs/drupal/drupal/modules/system/system.admin.inc,v
retrieving revision 1.226
diff -u -r1.226 system.admin.inc
--- modules/system/system.admin.inc	21 Nov 2009 17:01:31 -0000	1.226
+++ modules/system/system.admin.inc	22 Nov 2009 20:46:12 -0000
@@ -439,6 +439,7 @@
     'favicon'                   => t('Shortcut icon'),
     'main_menu'                 => t('Main menu'),
     'secondary_menu'            => t('Secondary menu'),
+    'skip_link'                 => t('Skip link for accessibility'),
   );
 
   // Some features are not always available
Index: modules/system/html.tpl.php
===================================================================
RCS file: /cvs/drupal/drupal/modules/system/html.tpl.php,v
retrieving revision 1.3
diff -u -r1.3 html.tpl.php
--- modules/system/html.tpl.php	16 Nov 2009 05:34:24 -0000	1.3
+++ modules/system/html.tpl.php	22 Nov 2009 20:46:10 -0000
@@ -45,7 +45,7 @@
   <?php print $scripts; ?>
 </head>
 <body class="<?php print $classes; ?>" <?php print $attributes;?>>
-  <div id="skip-link">
+  <div id="skip-link" class="<?php print $toggle_skip_link; ?>">
     <a href="#main-content"><?php print t('Skip to main content'); ?></a>
   </div>
   <?php print $page_top; ?>
Index: includes/theme.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/theme.inc,v
retrieving revision 1.553
diff -u -r1.553 theme.inc
--- includes/theme.inc	20 Nov 2009 04:29:42 -0000	1.553
+++ includes/theme.inc	22 Nov 2009 20:46:10 -0000
@@ -1161,6 +1161,7 @@
       'toggle_comment_user_verification' =>  1,
       'toggle_main_menu'                 =>  1,
       'toggle_secondary_menu'            =>  1,
+      'toggle_skip_link'                 =>  1,
     );
 
     // Get the default values for the custom settings from the .info file.
@@ -2273,6 +2274,9 @@
     }
   }
   $variables['head_title'] = implode(' | ', $head_title);
+    
+  // Toggle the display of the Skip link.
+  $variables['toggle_skip_link'] = theme_get_setting('toggle_skip_link') ? 'show-skip-link' : 'element-invisible';
 
   // Populate the page template suggestions.
   if ($suggestions = template_page_suggestions(arg(), 'html')) {
@@ -2331,7 +2335,7 @@
   $variables['site_slogan']       = (theme_get_setting('toggle_slogan') ? filter_xss_admin(variable_get('site_slogan', '')) : '');
   $variables['tabs']              = theme('menu_local_tasks');
   $variables['title']             = drupal_get_title();
-
+  
   if ($node = menu_get_object()) {
     $variables['node'] = $node;
   }
@@ -2477,6 +2481,7 @@
   $variables['secondary_menu']    = array();
   $variables['site_name']         = (theme_get_setting('toggle_name') ? variable_get('site_name', 'Drupal') : '');
   $variables['site_slogan']       = (theme_get_setting('toggle_slogan') ? variable_get('site_slogan', '') : '');
+  $variables['toggle_skip_link']  = theme_get_setting('toggle_skip_link') ? 'show-skip-link' : 'element-invisible';
   $variables['css']               = drupal_add_css();
   $variables['styles']            = drupal_get_css();
   $variables['scripts']           = drupal_get_js();