Skip to content

Commit

Permalink
Standardize submenu highlighting on group /admin/edit-details.
Browse files Browse the repository at this point in the history
  • Loading branch information
boonebgorges committed Jul 22, 2024
1 parent 514417e commit bc1ca00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions buddypress/groups/single/nav/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
?>
<?php if ( cboxol_is_portfolio() ) : ?>
<?php if ( bp_is_item_admin() || bp_is_item_mod() ) { ?>
<li class="<?php ( 'edit-details' === $current_tab || empty( $current_tab ) ) ? 'current-menu-item' : ''; ?>"><a href="<?php echo esc_attr( bp_get_group_manage_url( $group, bp_groups_get_path_chunks( [ 'edit-details' ], 'manage' ) ) ); ?>"><?php echo esc_html( $group_type->get_label( 'group_details' ) ); ?></a></li>
<li class="<?php echo ( 'edit-details' === $current_tab || empty( $current_tab ) ) ? 'current-menu-item' : ''; ?>"><a href="<?php echo esc_attr( bp_get_group_manage_url( $group, bp_groups_get_path_chunks( [ 'edit-details' ], 'manage' ) ) ); ?>"><?php echo esc_html( $group_type->get_label( 'group_details' ) ); ?></a></li>
<?php } ?>

<li class="<?php echo 'site-details' === $current_tab ? 'current-menu-item' : ''; ?>"><a href="<?php echo esc_attr( bp_get_group_manage_url( $group, bp_groups_get_path_chunks( [ 'site-details' ], 'manage' ) ) ); ?>"><?php echo esc_html_x( 'Site', 'Group admin nav item', 'commons-in-a-box' ); ?></a></li>
Expand All @@ -28,7 +28,7 @@
<?php else : ?>

<?php if ( bp_is_item_admin() || bp_is_item_mod() ) { ?>
<li class="<?php ( 'edit-details' === $current_tab || empty( $current_tab ) ) ? 'current-menu-item' : ''; ?>"><a href="<?php echo esc_attr( bp_get_group_manage_url( $group, bp_groups_get_path_chunks( [ 'edit-details' ], 'manage' ) ) ); ?>"><?php echo esc_html( $group_type->get_label( 'group_details' ) ); ?></a></li>
<li class="<?php echo ( 'edit-details' === $current_tab || empty( $current_tab ) ) ? 'current-menu-item' : ''; ?>"><a href="<?php echo esc_attr( bp_get_group_manage_url( $group, bp_groups_get_path_chunks( [ 'edit-details' ], 'manage' ) ) ); ?>"><?php echo esc_html( $group_type->get_label( 'group_details' ) ); ?></a></li>
<?php } ?>

<?php
Expand Down

0 comments on commit bc1ca00

Please sign in to comment.