Index: nice_menus.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/nice_menus/nice_menus.module,v retrieving revision 1.48 diff -u -p -r1.48 nice_menus.module --- nice_menus.module 11 Jul 2008 15:27:38 -0000 1.48 +++ nice_menus.module 24 Jul 2008 05:50:30 -0000 @@ -297,6 +297,11 @@ function theme_nice_menu_tree($menu_name */ function theme_nice_menu_build($menu) { $output = ''; + // Find the active trail and pull out the menus ids. + $trail = menu_get_active_trail(); + foreach ($trail as $item) { + $trail_ids[] = $item['mlid']; + } foreach ($menu as $menu_item) { $mlid = $menu_item['link']['mlid']; @@ -308,14 +313,16 @@ function theme_nice_menu_build($menu) { $clean_path = str_replace(array('http://', '<', '>', '&', '=', '?', ':'), '', $menu_item['link']['href']); // Convert slashes to dashes. $clean_path = str_replace('/', '-', $clean_path); - $path_class = 'menu-path-'. $clean_path; + $class = 'menu-path-'. $clean_path; // If it has children build a nice little tree under it. if ((!empty($menu_item['link']['has_children'])) && (!empty($menu_item['below']))) { // Keep passing children into the function 'til we get them all. $children = theme('nice_menu_build', $menu_item['below']); // Set the class to parent only of children are displayed. - $parent_class = $children ? 'menuparent ' : ''; - $output .= '