Changeset 8659 for trunk/src/bp-core/bp-core-template.php
- Timestamp:
- 07/22/2014 03:06:48 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-template.php
r8611 r8659 2516 2516 // Add this menu 2517 2517 $menu = new stdClass; 2518 $menu->class = array( );2518 $menu->class = array( 'menu-child' ); 2519 2519 $menu->css_id = $sub_nav['css_id']; 2520 2520 $menu->link = $sub_nav['link']; … … 2524 2524 // If we're viewing this item's screen, record that we need to mark its parent menu to be selected 2525 2525 if ( $sub_nav['slug'] == bp_current_action() ) { 2526 $menu->class = array( 'current-menu-item' );2526 $menu->class[] = 'current-menu-item'; 2527 2527 $selected_menus[] = $parent_menu; 2528 2528 } … … 2548 2548 // Add this menu 2549 2549 $menu = new stdClass; 2550 $menu->class = array( );2550 $menu->class = array( 'menu-parent' ); 2551 2551 $menu->css_id = $nav['css_id']; 2552 2552 $menu->link = $link; … … 2556 2556 // Check if we need to mark this menu as selected 2557 2557 if ( in_array( $nav['css_id'], $selected_menus ) ) 2558 $menu->class = array( 'current-menu-parent' );2558 $menu->class[] = 'current-menu-parent'; 2559 2559 2560 2560 $menus[] = $menu;
Note: See TracChangeset
for help on using the changeset viewer.