summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/menu.inc16
-rw-r--r--includes/theme.inc12
-rw-r--r--includes/theme.maintenance.inc4
-rw-r--r--modules/menu/menu.admin.inc26
-rw-r--r--modules/menu/menu.install6
-rw-r--r--modules/menu/menu.module8
-rw-r--r--modules/system/page.tpl.php18
-rw-r--r--modules/system/system.admin.inc4
-rw-r--r--modules/system/system.install12
-rw-r--r--modules/system/system.module4
-rw-r--r--themes/bluemarine/page.tpl.php4
-rw-r--r--themes/chameleon/chameleon.theme14
-rw-r--r--themes/garland/print.css2
-rw-r--r--themes/garland/style-rtl.css8
-rw-r--r--themes/garland/style.css16
-rw-r--r--themes/garland/template.php4
-rw-r--r--themes/pushbutton/page.tpl.php18
-rw-r--r--themes/pushbutton/style-rtl.css6
-rw-r--r--themes/pushbutton/style.css24
19 files changed, 109 insertions, 97 deletions
diff --git a/includes/menu.inc b/includes/menu.inc
index 21067cd5c..eaad81aa3 100644
--- a/includes/menu.inc
+++ b/includes/menu.inc
@@ -1251,28 +1251,28 @@ function menu_get_names($reset = FALSE) {
* Return an array containing the names of system-defined (default) menus.
*/
function menu_list_system_menus() {
- return array('navigation', 'primary-links', 'secondary-links');
+ return array('navigation', 'main-menu', 'secondary-menu');
}
/**
- * Return an array of links to be rendered as the Primary links.
+ * Return an array of links to be rendered as the Main menu.
*/
-function menu_primary_links() {
- return menu_navigation_links(variable_get('menu_primary_links_source', 'primary-links'));
+function menu_main_menu() {
+ return menu_navigation_links(variable_get('menu_main_menu_source', 'main-menu'));
}
/**
* Return an array of links to be rendered as the Secondary links.
*/
-function menu_secondary_links() {
+function menu_secondary_menu() {
// If the secondary menu source is set as the primary menu, we display the
// second level of the primary menu.
- if (variable_get('menu_secondary_links_source', 'secondary-links') == variable_get('menu_primary_links_source', 'primary-links')) {
- return menu_navigation_links(variable_get('menu_primary_links_source', 'primary-links'), 1);
+ if (variable_get('menu_secondary_menu_source', 'secondary-menu') == variable_get('menu_main_menu_source', 'main-menu')) {
+ return menu_navigation_links(variable_get('menu_main_menu_source', 'main-menu'), 1);
}
else {
- return menu_navigation_links(variable_get('menu_secondary_links_source', 'secondary-links'), 0);
+ return menu_navigation_links(variable_get('menu_secondary_menu_source', 'secondary-menu'), 0);
}
}
diff --git a/includes/theme.inc b/includes/theme.inc
index 5a7ac3722..3a3e81cf8 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -864,8 +864,8 @@ function theme_get_settings($key = NULL) {
'logo_path' => '',
'default_favicon' => 1,
'favicon_path' => '',
- 'primary_links' => 1,
- 'secondary_links' => 1,
+ 'main_menu' => 1,
+ 'secondary_menu' => 1,
'toggle_logo' => 1,
'toggle_favicon' => 1,
'toggle_name' => 1,
@@ -874,8 +874,8 @@ function theme_get_settings($key = NULL) {
'toggle_mission' => 1,
'toggle_node_user_picture' => 0,
'toggle_comment_user_picture' => 0,
- 'toggle_primary_links' => 1,
- 'toggle_secondary_links' => 1,
+ 'toggle_main_menu' => 1,
+ 'toggle_secondary_menu' => 1,
);
if (module_exists('node')) {
@@ -1838,8 +1838,8 @@ function template_preprocess_page(&$variables) {
$variables['logo'] = theme_get_setting('logo');
$variables['messages'] = $variables['show_messages'] ? theme('status_messages') : '';
$variables['mission'] = isset($mission) ? $mission : '';
- $variables['primary_links'] = theme_get_setting('toggle_primary_links') ? menu_primary_links() : array();
- $variables['secondary_links'] = theme_get_setting('toggle_secondary_links') ? menu_secondary_links() : array();
+ $variables['main_menu'] = theme_get_setting('toggle_main_menu') ? menu_main_menu() : array();
+ $variables['secondary_menu'] = theme_get_setting('toggle_secondary_menu') ? menu_secondary_menu() : array();
$variables['search_box'] = (theme_get_setting('toggle_search') ? drupal_get_form('search_theme_form') : '');
$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', '') : '');
diff --git a/includes/theme.maintenance.inc b/includes/theme.maintenance.inc
index 83590a24b..4f0a50ac5 100644
--- a/includes/theme.maintenance.inc
+++ b/includes/theme.maintenance.inc
@@ -252,8 +252,8 @@ function template_preprocess_maintenance_page(&$variables) {
$variables['logo'] = theme_get_setting('logo');
$variables['messages'] = $variables['show_messages'] ? theme('status_messages') : '';
$variables['mission'] = '';
- $variables['primary_links'] = array();
- $variables['secondary_links'] = array();
+ $variables['main_menu'] = array();
+ $variables['secondary_menu'] = array();
$variables['search_box'] = '';
$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', '') : '');
diff --git a/modules/menu/menu.admin.inc b/modules/menu/menu.admin.inc
index 9d88dd7c7..c0aa7ed46 100644
--- a/modules/menu/menu.admin.inc
+++ b/modules/menu/menu.admin.inc
@@ -607,30 +607,30 @@ function menu_configure() {
$form['menu_default_node_menu'] = array(
'#type' => 'select',
'#title' => t('Default menu for content'),
- '#default_value' => variable_get('menu_default_node_menu', 'primary-links'),
+ '#default_value' => variable_get('menu_default_node_menu', 'main-menu'),
'#options' => $menu_options,
'#description' => t('Choose the menu to be the default in the menu options in the content authoring form.'),
);
- $primary = variable_get('menu_primary_links_source', 'primary-links');
- $primary_options = array_merge($menu_options, array('' => t('No primary links')));
- $form['menu_primary_links_source'] = array(
+ $main = variable_get('menu_main_menu_source', 'main-menu');
+ $main_options = array_merge($menu_options, array('' => t('No Main menu')));
+ $form['menu_main_menu_source'] = array(
'#type' => 'select',
- '#title' => t('Source for the primary links'),
- '#default_value' => $primary,
- '#options' => $primary_options,
+ '#title' => t('Source for the Main menu'),
+ '#default_value' => $main,
+ '#options' => $main_options,
'#tree' => FALSE,
- '#description' => t('Select what should be displayed as the primary links.'),
+ '#description' => t('Select what should be displayed as the Main menu.'),
);
- $secondary_options = array_merge($menu_options, array('' => t('No secondary links')));
- $form["menu_secondary_links_source"] = array(
+ $secondary_options = array_merge($menu_options, array('' => t('No Secondary menu')));
+ $form["menu_secondary_menu_source"] = array(
'#type' => 'select',
- '#title' => t('Source for the secondary links'),
- '#default_value' => variable_get('menu_secondary_links_source', 'secondary-links'),
+ '#title' => t('Source for the Secondary menu'),
+ '#default_value' => variable_get('menu_secondary_menu_source', 'secondary-menu'),
'#options' => $secondary_options,
'#tree' => FALSE,
- '#description' => t('Select what should be displayed as the secondary links. You can choose the same menu for secondary links as for primary links (currently %primary). If you do this, the children of the active primary menu link will be displayed as secondary links.', array('%primary' => $primary_options[$primary])),
+ '#description' => t("Select the source for the Secondary menu. An advanced option allows you to use the same source for both Main menu (currently %main) and Secondary menu: if your source menu has two levels of hierarchy, the top level menu items will appear in the Main menu, and the children of the active item will appear in the Secondary menu." , array('%main' => $main_options[$main])),
);
return system_settings_form($form);
diff --git a/modules/menu/menu.install b/modules/menu/menu.install
index 0097a3508..8ecebac83 100644
--- a/modules/menu/menu.install
+++ b/modules/menu/menu.install
@@ -10,8 +10,8 @@ function menu_install() {
$t = get_t();
db_query("INSERT INTO {menu_custom} (menu_name, title, description) VALUES ('%s', '%s', '%s')", 'navigation', $t('Navigation'), $t('The navigation menu is provided by Drupal and is the main interactive menu for any site. It is usually the only menu that contains personalized links for authenticated users, and is often not even visible to anonymous users.'));
- db_query("INSERT INTO {menu_custom} (menu_name, title, description) VALUES ('%s', '%s', '%s')", 'primary-links', $t('Primary links'), $t('Primary links are often used at the theme layer to show the major sections of a site. A typical representation for primary links would be tabs along the top.'));
- db_query("INSERT INTO {menu_custom} (menu_name, title, description) VALUES ('%s', '%s', '%s')", 'secondary-links', $t('Secondary links'), $t('Secondary links are often used for pages like legal notices, contact details, and other secondary navigation items that play a lesser role than primary links.'));
+ db_query("INSERT INTO {menu_custom} (menu_name, title, description) VALUES ('%s', '%s', '%s')", 'main-menu', $t('Main menu'), $t('The Main menu is often used by themes to show the major sections of a site. A typical representation of the Main menu would be tabs along the top.'));
+ db_query("INSERT INTO {menu_custom} (menu_name, title, description) VALUES ('%s', '%s', '%s')", 'secondary-menu', $t('Secondary menu'), $t('The Secondary menu is often used for pages like legal notices, contact details, and other navigation items that play a lesser role than the Main menu.'));
}
/**
@@ -28,7 +28,7 @@ function menu_uninstall() {
*/
function menu_schema() {
$schema['menu_custom'] = array(
- 'description' => t('Holds definitions for top-level custom menus (for example, Primary Links).'),
+ 'description' => t('Holds definitions for top-level custom menus (for example, Main menu).'),
'fields' => array(
'menu_name' => array(
'type' => 'varchar',
diff --git a/modules/menu/menu.module b/modules/menu/menu.module
index 0731f5fda..0bd30ba07 100644
--- a/modules/menu/menu.module
+++ b/modules/menu/menu.module
@@ -18,7 +18,7 @@ define('MENU_MAX_MENU_NAME_LENGTH_UI', 27);
function menu_help($path, $arg) {
switch ($path) {
case 'admin/help#menu':
- $output = '<p>' . t("The menu module provides an interface to control and customize Drupal's powerful menu system. Menus are a hierarchical collection of links, or menu items, used to navigate a website, and are positioned and displayed using Drupal's flexible block system. By default, three menus are created during installation: <em>Navigation</em>, <em>Primary links</em>, and <em>Secondary links</em>. The <em>Navigation</em> menu contains most links necessary for working with and navigating your site, and is often displayed in either the left or right sidebar. Most Drupal themes also provide support for <em>Primary links</em> and <em>Secondary links</em>, by displaying them in either the header or footer of each page. By default, <em>Primary links</em> and <em>Secondary links</em> contain no menu items but may be configured to contain custom menu items specific to your site.") . '</p>';
+ $output = '<p>' . t("The menu module provides an interface to control and customize Drupal's powerful menu system. Menus are a hierarchical collection of links, or menu items, used to navigate a website, and are positioned and displayed using Drupal's flexible block system. By default, three menus are created during installation: <em>Navigation</em>, <em>Main menu</em>, and <em>Secondary menu</em>. The <em>Navigation</em> menu contains most links necessary for working with and navigating your site, and is often displayed in either the left or right sidebar. Most Drupal themes also provide support for the <em>Main menu</em> and <em>Secondary menu</em>, by displaying them in either the header or footer of each page. By default, the <em>Main menu</em> and <em>Secondary menu</em> contain no menu items but may be configured to contain custom menu items specific to your site.") . '</p>';
$output .= '<p>' . t('The <a href="@menu">menus page</a> displays all menus currently available on your site. Select a menu from this list to add or edit a menu item, or to rearrange items within the menu. Create new menus using the <a href="@add-menu">add menu page</a> (the block containing a new menu must also be enabled on the <a href="@blocks">blocks administration page</a>).', array('@menu' => url('admin/build/menu'), '@add-menu' => url('admin/build/menu/add'), '@blocks' => url('admin/build/block'))) . '</p>';
$output .= '<p>' . t('For more information, see the online handbook entry for <a href="@menu">Menu module</a>.', array('@menu' => 'http://drupal.org/handbook/modules/menu/')) . '</p>';
return $output;
@@ -48,7 +48,7 @@ function menu_perm() {
function menu_menu() {
$items['admin/build/menu'] = array(
'title' => 'Menus',
- 'description' => "Control your site's navigation menu, primary links and secondary links. as well as rename and reorganize menu items.",
+ 'description' => "Control your site's Navigation menu, Main menu and Secondary menu. as well as rename and reorganize menu items.",
'page callback' => 'menu_overview_page',
'access callback' => 'user_access',
'access arguments' => array('administer menu'),
@@ -310,7 +310,7 @@ function menu_nodeapi(&$node, $op) {
case 'prepare':
if (empty($node->menu)) {
// Prepare the node for the edit form so that $node->menu always exists.
- $menu_name = variable_get('menu_default_node_menu', 'primary-links');
+ $menu_name = variable_get('menu_default_node_menu', 'main-menu');
$item = array();
if (isset($node->nid)) {
// Give priority to the default menu
@@ -387,7 +387,7 @@ function menu_form_alter(&$form, $form_state, $form_id) {
$options = menu_parent_options(menu_get_menus(), $item);
$default = $item['menu_name'] . ':' . $item['plid'];
if (!isset($options[$default])) {
- $default = 'primary-links:0';
+ $default = 'main-menu:0';
}
$form['menu']['parent'] = array(
'#type' => 'select',
diff --git a/modules/system/page.tpl.php b/modules/system/page.tpl.php
index 95a53db44..cbbf01f72 100644
--- a/modules/system/page.tpl.php
+++ b/modules/system/page.tpl.php
@@ -45,9 +45,9 @@
*
* Navigation:
* - $search_box: HTML to display the search box, empty if search has been disabled.
- * - $primary_links (array): An array containing primary navigation links for the
+ * - $main_menu (array): An array containing the Main menu links for the
* site, if they have been configured.
- * - $secondary_links (array): An array containing secondary navigation links for
+ * - $secondary_menu (array): An array containing the Secondary menu links for
* the site, if they have been configured.
*
* Page content (in order of occurrance in the default page.tpl.php):
@@ -124,16 +124,16 @@
<div id="container" class="clear-block">
- <div id="navigation" class="menu <?php if (!empty($primary_links)) { print "withprimary"; } if (!empty($secondary_links)) { print " withsecondary"; } ?> ">
- <?php if (!empty($primary_links)): ?>
- <div id="primary" class="clear-block">
- <?php print theme('links', $primary_links, array('class' => 'links primary-links')); ?>
+ <div id="navigation" class="menu <?php if (!empty($main_menu)) { print "withmain"; } if (!empty($secondary_menu)) { print " withsecondary"; } ?> ">
+ <?php if (!empty($main_menu)): ?>
+ <div id="main-menu" class="clear-block">
+ <?php print theme('links', $main_menu, array('class' => 'links main-menu')); ?>
</div>
<?php endif; ?>
- <?php if (!empty($secondary_links)): ?>
- <div id="secondary" class="clear-block">
- <?php print theme('links', $secondary_links, array('class' => 'links secondary-links')); ?>
+ <?php if (!empty($secondary_menu)): ?>
+ <div id="secondary-menu" class="clear-block">
+ <?php print theme('links', $secondary_menu, array('class' => 'links secondary-menu')); ?>
</div>
<?php endif; ?>
</div> <!-- /navigation -->
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc
index 87ef36dd9..0c8a50a7b 100644
--- a/modules/system/system.admin.inc
+++ b/modules/system/system.admin.inc
@@ -370,8 +370,8 @@ function system_theme_settings(&$form_state, $key = '') {
'comment_user_picture' => t('User pictures in comments'),
'search' => t('Search box'),
'favicon' => t('Shortcut icon'),
- 'primary_links' => t('Primary links'),
- 'secondary_links' => t('Secondary links'),
+ 'main_menu' => t('Main menu'),
+ 'secondary_menu' => t('Secondary menu'),
);
// Some features are not always available
diff --git a/modules/system/system.install b/modules/system/system.install
index 7e2d240b7..044f52ef4 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -3018,6 +3018,18 @@ function system_update_7008() {
}
/**
+ * Rename the variables for primary and secondary links.
+ *
+ */
+function system_update_7009() {
+ $ret = array();
+ $ret[] = update_sql("UPDATE {variable} SET name = 'menu_main_menu_source' WHERE name = 'menu_primary_links_source'");
+ $ret[] = update_sql("UPDATE {variable} SET name = 'menu_main_menu_source' WHERE name = 'menu_primary_links_source'");
+
+ return $ret;
+}
+
+/**
* @} End of "defgroup updates-6.x-to-7.x"
* The next series of updates should start at 8000.
*/
diff --git a/modules/system/system.module b/modules/system/system.module
index 0293f65bd..4fa9992e5 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -928,8 +928,8 @@ function system_theme_default() {
'node_user_picture',
'search',
'slogan',
- 'primary_links',
- 'secondary_links',
+ 'main_menu',
+ 'secondary_menu',
),
'stylesheets' => array(
'all' => array('style.css')
diff --git a/themes/bluemarine/page.tpl.php b/themes/bluemarine/page.tpl.php
index 73b3229f8..b279cd42a 100644
--- a/themes/bluemarine/page.tpl.php
+++ b/themes/bluemarine/page.tpl.php
@@ -19,8 +19,8 @@
<?php if ($site_slogan) { ?><div class='site-slogan'><?php print $site_slogan ?></div><?php } ?>
<div id="menu">
- <?php if (isset($secondary_links)) { ?><?php print theme('links', $secondary_links, array('class' => 'links', 'id' => 'subnavlist')); ?><?php } ?>
- <?php if (isset($primary_links)) { ?><?php print theme('links', $primary_links, array('class' => 'links', 'id' => 'navlist')) ?><?php } ?>
+ <?php if (isset($secondary_menu)) { ?><?php print theme('links', $secondary_menu, array('class' => 'links', 'id' => 'subnavlist')); ?><?php } ?>
+ <?php if (isset($main_menu)) { ?><?php print theme('links', $main_menu, array('class' => 'links', 'id' => 'navlist')) ?><?php } ?>
</div>
<div id="header-region"><?php print $header ?></div>
diff --git a/themes/chameleon/chameleon.theme b/themes/chameleon/chameleon.theme
index 7725035f4..dc9d7d738 100644
--- a/themes/chameleon/chameleon.theme
+++ b/themes/chameleon/chameleon.theme
@@ -50,15 +50,15 @@ function chameleon_page($content, $show_blocks = TRUE, $show_messages = TRUE) {
$output .= "</div>\n";
- $primary_links = theme('links', menu_primary_links(), array('class' => 'links', 'id' => 'navlist'));
- $secondary_links = theme('links', menu_secondary_links(), array('class' => 'links', 'id' => 'subnavlist'));
- if (isset($primary_links) || isset($secondary_links)) {
+ $main_menu = theme('links', menu_main_menu(), array('class' => 'links', 'id' => 'navlist'));
+ $secondary_menu = theme('links', menu_secondary_menu(), array('class' => 'links', 'id' => 'subnavlist'));
+ if (isset($main_menu) || isset($secondary_menu)) {
$output .= ' <div class="navlinks">';
- if (isset($primary_links)) {
- $output .= $primary_links;
+ if (isset($main_menu)) {
+ $output .= $main_menu;
}
- if (isset($secondary_links)) {
- $output .= $secondary_links;
+ if (isset($secondary_menu)) {
+ $output .= $secondary_menu;
}
$output .= " </div>\n";
}
diff --git a/themes/garland/print.css b/themes/garland/print.css
index bdd895818..36d7f2b20 100644
--- a/themes/garland/print.css
+++ b/themes/garland/print.css
@@ -7,7 +7,7 @@ body, input, textarea, select {
font-size: 11pt;
}
-ul.primary-links, ul.secondary-links,
+ul.main-menu, ul.secondary-menu,
#header-region, .sidebar {
display: none;
}
diff --git a/themes/garland/style-rtl.css b/themes/garland/style-rtl.css
index ec6432d99..431359490 100644
--- a/themes/garland/style-rtl.css
+++ b/themes/garland/style-rtl.css
@@ -129,24 +129,24 @@ dl dd {
/**
* Primary navigation
*/
-ul.primary-links {
+ul.main-menu {
float: left;
width:70%;
}
-ul.primary-links li {
+ul.main-menu li {
float: right;
}
/**
* Secondary navigation
*/
-ul.secondary-links {
+ul.secondary-menu {
float: left;
clear: left;
}
-ul.secondary-links li {
+ul.secondary-menu li {
float: right;
}
diff --git a/themes/garland/style.css b/themes/garland/style.css
index 9f4fb07aa..033979163 100644
--- a/themes/garland/style.css
+++ b/themes/garland/style.css
@@ -545,7 +545,7 @@ body.two-sidebars #footer {
/**
* Primary navigation
*/
-ul.primary-links {
+ul.main-menu {
margin: 0;
padding: 0;
float: right; /* LTR */
@@ -553,14 +553,14 @@ ul.primary-links {
z-index: 4;
}
-ul.primary-links li {
+ul.main-menu li {
margin: 0;
padding: 0;
float: left; /* LTR */
background-image: none;
}
-ul.primary-links li a, ul.primary-links li a:link, ul.primary-links li a:visited {
+ul.main-menu li a, ul.main-menu li a:link, ul.main-menu li a:visited {
display: block;
margin: 0 1em;
padding: .75em 0 0;
@@ -568,7 +568,7 @@ ul.primary-links li a, ul.primary-links li a:link, ul.primary-links li a:visited
background: transparent url(images/bg-navigation-item.png) no-repeat 50% 0;
}
-ul.primary-links li a:hover, ul.primary-links li a.active {
+ul.main-menu li a:hover, ul.main-menu li a.active {
color: #fff;
background: transparent url(images/bg-navigation-item-hover.png) no-repeat 50% 0;
}
@@ -576,7 +576,7 @@ ul.primary-links li a:hover, ul.primary-links li a.active {
/**
* Secondary navigation
*/
-ul.secondary-links {
+ul.secondary-menu {
margin: 0;
padding: 18px 0 0;
float: right; /* LTR */
@@ -585,14 +585,14 @@ ul.secondary-links {
z-index: 4;
}
-ul.secondary-links li {
+ul.secondary-menu li {
margin: 0;
padding: 0;
float: left; /* LTR */
background-image: none;
}
-ul.secondary-links li a, ul.secondary-links li a:link, ul.secondary-links li a:visited {
+ul.secondary-menu li a, ul.secondary-menu li a:link, ul.secondary-menu li a:visited {
display: block;
margin: 0 1em;
padding: .75em 0 0;
@@ -600,7 +600,7 @@ ul.secondary-links li a, ul.secondary-links li a:link, ul.secondary-links li a:v
background: transparent;
}
-ul.secondary-links li a:hover, ul.secondary-links li a.active {
+ul.secondary-menu li a:hover, ul.secondary-menu li a.active {
color: #cde3f1;
background: transparent;
}
diff --git a/themes/garland/template.php b/themes/garland/template.php
index 36c45c21f..016a1e4e7 100644
--- a/themes/garland/template.php
+++ b/themes/garland/template.php
@@ -31,8 +31,8 @@ function garland_comment_wrapper($content, $node) {
*/
function garland_preprocess_page(&$vars) {
$vars['tabs2'] = menu_secondary_local_tasks();
- $vars['primary_nav'] = isset($vars['primary_links']) ? theme('links', $vars['primary_links'], array('class' => 'links primary-links')) : FALSE;
- $vars['secondary_nav'] = isset($vars['secondary_links']) ? theme('links', $vars['secondary_links'], array('class' => 'links secondary-links')) : FALSE;
+ $vars['primary_nav'] = isset($vars['main_menu']) ? theme('links', $vars['main_menu'], array('class' => 'links main-menu')) : FALSE;
+ $vars['secondary_nav'] = isset($vars['secondary_menu']) ? theme('links', $vars['secondary_menu'], array('class' => 'links secondary-menu')) : FALSE;
$vars['ie_styles'] = garland_get_ie_styles();
// Prepare header
diff --git a/themes/pushbutton/page.tpl.php b/themes/pushbutton/page.tpl.php
index 8fd960d66..e32aaafec 100644
--- a/themes/pushbutton/page.tpl.php
+++ b/themes/pushbutton/page.tpl.php
@@ -14,7 +14,7 @@
<div class="hide"><a href="#content" title="<?php print t('Skip navigation') ?>." accesskey="2"><?php print t('Skip navigation') ?></a>.</div>
-<table id="primary-menu" summary="Navigation elements." border="0" cellpadding="0" cellspacing="0" width="100%">
+<table id="main-menu" summary="Navigation elements." border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td id="home" width="10%">
<?php if ($logo) : ?>
@@ -30,16 +30,16 @@
<div class='site-slogan'><?php print($site_slogan) ?></div>
<?php endif;?>
</td>
- <td class="primary-links" width="70%" align="center" valign="middle">
- <?php print theme('links', $primary_links, array('class' => 'links', 'id' => 'navlist')) ?>
+ <td class="main-menu" width="70%" align="center" valign="middle">
+ <?php print theme('links', $main_menu, array('class' => 'links', 'id' => 'navlist')) ?>
</td>
</tr>
</table>
<table id="secondary-menu" summary="Navigation elements." border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
- <td class="secondary-links" width="75%" align="center" valign="middle">
- <?php print theme('links', $secondary_links, array('class' => 'links', 'id' => 'subnavlist')) ?>
+ <td class="secondary-menu" width="75%" align="center" valign="middle">
+ <?php print theme('links', $secondary_menu, array('class' => 'links', 'id' => 'subnavlist')) ?>
</td>
<td width="25%" align="center" valign="middle">
<?php print $search_box ?>
@@ -100,11 +100,11 @@
<table id="footer-menu" summary="Navigation elements." border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="center" valign="middle">
- <?php if (isset($primary_links)) : ?>
- <?php print theme('links', $primary_links, array('class' => 'links primary-links')) ?>
+ <?php if (isset($main_menu)) : ?>
+ <?php print theme('links', $main_menu, array('class' => 'links main-menu')) ?>
<?php endif; ?>
- <?php if (isset($secondary_links)) : ?>
- <?php print theme('links', $secondary_links, array('class' => 'links secondary-links')) ?>
+ <?php if (isset($secondary_menu)) : ?>
+ <?php print theme('links', $secondary_menu, array('class' => 'links secondary-menu')) ?>
<?php endif; ?>
</td>
</tr>
diff --git a/themes/pushbutton/style-rtl.css b/themes/pushbutton/style-rtl.css
index 9a7bfb538..428f95a8a 100644
--- a/themes/pushbutton/style-rtl.css
+++ b/themes/pushbutton/style-rtl.css
@@ -11,7 +11,7 @@ blockquote {
text-align: right;
}
-#primary-menu tr {
+#main-menu tr {
background: transparent url(header-a.jpg) right bottom repeat;
}
@@ -27,7 +27,7 @@ td#home a:hover img {
background: transparent url(logo-hover-rtl.jpg) repeat;
}
-#primary-menu .primary-links {
+#main-menu .main-menu {
background: transparent url(header-b-rtl.jpg) right top no-repeat;
}
@@ -41,7 +41,7 @@ ul.links li {
border-left: none;
}
-#subnavlist li, ul.primary-links li, ul.secondary-links li {
+#subnavlist li, ul.main-menu li, ul.secondary-menu li {
border-right: 1px solid #fff;
border-left: none;
}
diff --git a/themes/pushbutton/style.css b/themes/pushbutton/style.css
index 47e0d5bd7..848015fb2 100644
--- a/themes/pushbutton/style.css
+++ b/themes/pushbutton/style.css
@@ -75,12 +75,12 @@ pre {
/*
** Page layout blocks / IDs
*/
-#primary-menu {
+#main-menu {
border-collapse: separate;
background-color: #e0edfb;
border-bottom: 3px solid #69c;
}
-#primary-menu tr {
+#main-menu tr {
background: transparent url(header-a.jpg) left bottom repeat; /* LTR */
}
td#home {
@@ -96,17 +96,17 @@ td#home a:hover img {
width: 144px;
height: 63px;
}
-.primary-links, .primary-links a:link, .primary-links a:visited {
+.main-menu, .main-menu a:link, .main-menu a:visited {
color: #369;
}
-.primary-links a:hover {
+.main-menu a:hover {
color: #000;
}
-#primary-menu .primary-links {
+#main-menu .main-menu {
background: transparent url(header-b.jpg) left top no-repeat; /* LTR */
font-size: 0.79em;
}
-#primary-menu .primary-links h1, #primary-menu .primary-links h2, #primary-menu .primary-links h3 {
+#main-menu .main-menu h1, #main-menu .main-menu h2, #main-menu .main-menu h3 {
font-size: 2.3em;
color: #369;
}
@@ -115,14 +115,14 @@ td#home a:hover img {
background-color: #369;
border-bottom: 3px solid #69c;
}
-.secondary-links, .secondary-links a:link, .secondary-links a:visited {
+.secondary-menu, .secondary-menu a:link, .secondary-menu a:visited {
color: #e4e9eb;
}
-.secondary-links a:hover {
+.secondary-menu a:hover {
color: #fff;
text-decoration: underline;
}
-#secondary-menu .secondary-links {
+#secondary-menu .secondary-menu {
font-size: 0.85em;
}
ul.links li {
@@ -131,7 +131,7 @@ ul.links li {
#navlist li {
border-left: 1px solid #369; /* LTR */
}
-#subnavlist li, ul.primary-links li, ul.secondary-links li {
+#subnavlist li, ul.main-menu li, ul.secondary-menu li {
border-left: 1px solid #fff; /* LTR */
}
#navlist li.first, #subnavlist li.first, ul.links li.first {
@@ -330,14 +330,14 @@ table#footer-menu {
padding: 5px;
font-size: 0.75em;
}
-#footer-menu .primary-links, #footer-menu a:link, #footer-menu a:visited {
+#footer-menu .main-menu, #footer-menu a:link, #footer-menu a:visited {
color: #e4e9eb;
}
#footer-menu a:hover {
color: #fff;
text-decoration: underline;
}
-#footer-menu .primary-links h1, #footer-menu .primary-links h2, #footer-menu .primary-links h3 {
+#footer-menu .main-menu h1, #footer-menu .main-menu h2, #footer-menu .main-menu h3 {
font-size: 1.3em;
color: #e4e9eb;
}