', '&', '=', '?', ':'), '', $menu_item['link']['href']); //Strip symbols. // Convert slashes to dashes. $clean_path = str_replace('/', '-', $clean_path); $current_node = str_replace('node-', '', $clean_path); $path_class = 'menu-path-'. $clean_path; if ($current_node == $GLOBALS['active_node']) { $path_class.= ' active-content'; } $children = ''; // If it has children build a nice little tree under it. if ((!empty($menu_item['link']['has_children'])) && (!empty($menu_item['below']))) { $is_child = true; // Keep passing children into the function 'til we get them all. $children = theme('nice_menu_build', $menu_item['below'], false); $children = ($children)?"\n":''; // Set the class to parent only of children are displayed. $parent_class = $children ? 'menuparent ' : ''; } // Build the child UL only if there is a child menu if($main_menu){ $output .= "".theme('menu_item_link', $menu_item['link'])."$children"; //Adds some extra separators after each td $output .= "\n"; }else { $output .= ""; } } return $output; } function gatewave_nice_menu_x($id, $menu_name, $mlid, $direction = 'right', $menu = NULL) { $output = array(); if ($menu_tree = theme('nice_menu_tree', $menu_name, $mlid, $menu)) { if ($menu_tree['content']) { $output['content'] = '' .$menu_tree['content'] .''."\n"; $output['subject'] = $menu_tree['subject']; } } return $output; }