### Eclipse Workspace Patch 1.0 #P CNS (trunk) Index: html/sites/all/modules/nice_menus/nice_menus.module =================================================================== --- html/sites/all/modules/nice_menus/nice_menus.module (revision 28) +++ html/sites/all/modules/nice_menus/nice_menus.module (working copy) @@ -301,8 +301,10 @@ */ function theme_nice_menu_build($menu) { $output = ''; - + $index = 0; foreach ($menu as $menu_item) { + //prepare marking of li tag as odd, even or first + $oddeven_class = $index == 0 ? 'first' : ($index % 2 == 1 ? 'even' : 'odd'); $mlid = $menu_item['link']['mlid']; // Check to see if it is a visible menu item. if ($menu_item['link']['hidden'] == 0) { @@ -319,7 +321,7 @@ $children = theme('nice_menu_build', $menu_item['below']); // Set the class to parent only of children are displayed. $parent_class = $children ? 'menuparent ' : ''; - $output .= '