diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-07-10 01:44:18 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-07-10 01:44:18 +0000 |
commit | 0e268aa0f415543ed4306d86d928e7499f843607 (patch) | |
tree | d392f6c8a58f1a2abdd7c6d8b65ee5409aca8452 /includes | |
parent | ffdfefebbccc2a7fedfec541f05f1c770e2bcc01 (diff) | |
download | brdo-0e268aa0f415543ed4306d86d928e7499f843607.tar.gz brdo-0e268aa0f415543ed4306d86d928e7499f843607.tar.bz2 |
- Patch #273129 by pwolanin: adding class active-trail should not remove previous attributes.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/menu.inc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/includes/menu.inc b/includes/menu.inc index a94beb298..cc4b10dac 100644 --- a/includes/menu.inc +++ b/includes/menu.inc @@ -1315,7 +1315,12 @@ function menu_navigation_links($menu_name, $level = 0) { $l['href'] = $item['link']['href']; $l['title'] = $item['link']['title']; if ($item['link']['in_active_trail']) { - $l['attributes'] = array('class' => 'active-trail'); + if (empty($l['attributes']['class'])) { + $l['attributes']['class'] = 'active-trail'; + } + else { + $l['attributes']['class'] .= ' active-trail'; + } } // Keyed with unique menu id to generate classes from theme_links(). $links['menu-' . $item['link']['mlid']] = $l; |