Index: nice_menus.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/nice_menus/nice_menus.module,v retrieving revision 1.16.2.15 diff -u -r1.16.2.15 nice_menus.module --- nice_menus.module 20 Dec 2007 14:16:09 -0000 1.16.2.15 +++ nice_menus.module 9 Feb 2008 22:51:41 -0000 @@ -206,17 +206,21 @@ $output['subject'] = $menu['items'][$pid]['title']; + $trail = _menu_get_active_trail(); + if ($menu['visible'][$pid]['children']) { // Build class name based on menu path // e.g. to give each menu item individual style. foreach ($menu['visible'][$pid]['children'] as $mid) { + $is_active = array_search($mid,$trail); // Strip funny symbols $clean_path = str_replace(array('http://', '<', '>', '&', '=', '?', ':'), '', $menu['items'][$mid]['path']); // Convert slashes to dashes $clean_path = str_replace('/', '-', $clean_path); $path_class = 'menu-path-'. $clean_path; if (count($menu['visible'][$mid]['children']) > 0) { - $output['content'] .= '