diff --git a/STARTERKIT/STARTERKIT.info.txt b/STARTERKIT/STARTERKIT.info.txt index b73d03f..2aa719b 100644 --- a/STARTERKIT/STARTERKIT.info.txt +++ b/STARTERKIT/STARTERKIT.info.txt @@ -123,7 +123,8 @@ settings[zen_breadcrumb_separator] = ' › ' settings[zen_breadcrumb_home] = 1 settings[zen_breadcrumb_trailing] = 1 settings[zen_breadcrumb_title] = 0 -settings[zen_jump_link_target] = main-menu +settings[zen_skip_link_anchor] = main-menu +settings[zen_skip_link_text] = Jump to navigation settings[zen_rebuild_registry] = 1 settings[zen_wireframes] = 0 diff --git a/template.php b/template.php index 6d2389e..19c404d 100644 --- a/template.php +++ b/template.php @@ -178,7 +178,8 @@ function zen_preprocess_html(&$variables, $hook) { $variables['classes_array'][] = 'page-panels'; break; } - $variables['jump_link_target'] = theme_get_setting('zen_jump_link_target'); + $variables['skip_link_anchor'] = theme_get_setting('zen_skip_link_anchor'); + $variables['skip_link_text'] = theme_get_setting('zen_skip_link_text'); } /** diff --git a/templates/html.tpl.php b/templates/html.tpl.php index 8adf6cd..138a6b7 100644 --- a/templates/html.tpl.php +++ b/templates/html.tpl.php @@ -25,8 +25,10 @@ * - $styles: Style tags necessary to import all CSS files for the page. * - $scripts: Script tags necessary to load the JavaScript files and settings * for the page. - * - $jump_link_target: The HTML ID of the element that the "Jump to Navigation" - * link should jump to. Defaults to "main-menu". + * - $skip_link_anchor: The HTML ID of the element that the "skip link" should + * link to. Defaults to "main-menu". + * - $skip_link_text: The text for the "skip link". Defaults to "Jump to + * Navigation". * - $page_top: Initial markup from any modules that have altered the * page. This variable should always be output first, before all other dynamic * content. @@ -88,9 +90,11 @@ $html_attributes = 'lang="' . $language->language . '" dir="' . $language->dir .
> - + + + diff --git a/theme-settings.php b/theme-settings.php index 98d0371..7760dfd 100644 --- a/theme-settings.php +++ b/theme-settings.php @@ -86,12 +86,18 @@ function zen_form_system_theme_settings_alter(&$form, $form_state) { ), '#default_value' => theme_get_setting('zen_layout'), ); - $form['themedev']['zen_jump_link_target'] = array( + $form['themedev']['zen_skip_link_anchor'] = array( '#type' => 'textfield', - '#title' => t('Anchor ID for “Jump to Navigation” link'), - '#default_value' => theme_get_setting('zen_jump_link_target'), + '#title' => t('Anchor ID for the “skip link”'), + '#default_value' => theme_get_setting('zen_skip_link_anchor'), '#field_prefix' => '#', - '#description' => t('Specify the HTML ID of the main navigation menu; this will be used by the accessible-but-hidden “Jump to Navigation" link at the top of each page.'), + '#description' => t('Specify the HTML ID of the element that the accessible-but-hidden “skip link” should link to. (Read more about skip links.)', array('!link' => 'http://drupal.org/node/467976')), + ); + $form['themedev']['zen_skip_link_text'] = array( + '#type' => 'textfield', + '#title' => t('Text for the “skip link”'), + '#default_value' => theme_get_setting('zen_skip_link_text'), + '#description' => t('For example: Jump to navigation, Skip to content'), ); $form['themedev']['zen_wireframes'] = array( '#type' => 'checkbox', diff --git a/zen.info b/zen.info index 3ff5317..a6a6aa9 100644 --- a/zen.info +++ b/zen.info @@ -23,7 +23,8 @@ settings[zen_breadcrumb_home] = 1 settings[zen_breadcrumb_trailing] = 1 settings[zen_breadcrumb_title] = 0 settings[zen_layout] = zen-columns-liquid -settings[zen_jump_link_target] = main-menu +settings[zen_skip_link_anchor] = main-menu +settings[zen_skip_link_text] = Jump to navigation settings[zen_rebuild_registry] = 0 settings[zen_wireframes] = 0