diff --git a/STARTERKIT/STARTERKIT.info.txt b/STARTERKIT/STARTERKIT.info.txt index e2cdecc..fc683ce 100644 --- a/STARTERKIT/STARTERKIT.info.txt +++ b/STARTERKIT/STARTERKIT.info.txt @@ -118,6 +118,7 @@ settings[zen_breadcrumb_separator] = ' › ' settings[zen_breadcrumb_home] = 1 settings[zen_breadcrumb_trailing] = 1 settings[zen_breadcrumb_title] = 0 +settings[zen_navigation_id] = main-menu settings[zen_rebuild_registry] = 1 settings[zen_wireframes] = 0 diff --git a/template.php b/template.php index 18a4f5b..da95a5f 100644 --- a/template.php +++ b/template.php @@ -210,6 +210,7 @@ function zen_preprocess_html(&$variables, $hook) { $variables['classes_array'][] = 'page-panels'; break; } + $variables['navigation_id'] = theme_get_setting('zen_navigation_id'); } /** diff --git a/templates/html.tpl.php b/templates/html.tpl.php index 75b1191..2e1fe18 100644 --- a/templates/html.tpl.php +++ b/templates/html.tpl.php @@ -69,7 +69,7 @@ > diff --git a/theme-settings.php b/theme-settings.php index 2659a68..3ead755 100644 --- a/theme-settings.php +++ b/theme-settings.php @@ -86,6 +86,12 @@ function zen_form_system_theme_settings_alter(&$form, $form_state) { ), '#default_value' => theme_get_setting('zen_layout'), ); + $form['themedev']['zen_navigation_id'] = array( + '#type' => 'textfield', + '#title' => t('Main menu anchor ID'), + '#default_value' => theme_get_setting('zen_navigation_id'), + '#description' => t('An anchor ID for the main menu which the "Jump to Navigation" link (which, by default, is at the top of each page, but is hidden by graphical browsers) can link to.'), + ); $form['themedev']['zen_wireframes'] = array( '#type' => 'checkbox', '#title' => t('Add wireframes around main layout elements'), diff --git a/zen.info b/zen.info index d50f7c7..91b6576 100644 --- a/zen.info +++ b/zen.info @@ -23,5 +23,6 @@ settings[zen_breadcrumb_home] = 1 settings[zen_breadcrumb_trailing] = 1 settings[zen_breadcrumb_title] = 0 settings[zen_layout] = zen-columns-liquid +settings[zen_navigation_id] = main-menu settings[zen_rebuild_registry] = 0 settings[zen_wireframes] = 0