Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/28/2018 06:01:50 AM (7 years ago)
Author:
imath
Message:

BP Nouveau Customizer: Improve Primary Nav Item reordoring control.

Remove the restriction about the top/first primary nav item to let the site owner control the order of each items. It now allows to be consistent with the BP_DEFAULT_COMPONENT if the custom front is not used by moving this default component nav item at the first position.

Props sbrajesh, hnla

See #7871 (Trunk)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/includes/customizer-controls.php

    r12104 r12137  
    8181                    $i += 1;
    8282                ?>
    83                     <li class="<?php echo esc_attr( $class ); echo ( 1 === $i ) ? ' ui-sortable-disabled' : ''; ?>" data-bp-nav="<?php echo esc_attr( $item->slug ); ?>">
     83                    <li data-bp-nav="<?php echo esc_attr( $item->slug ); ?>">
    8484                        <div class="menu-item-bar">
    8585                            <div class="menu-item-handle ui-sortable-handle">
Note: See TracChangeset for help on using the changeset viewer.