Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/27/2023 10:55:27 PM (2 years ago)
Author:
imath
Message:

Introduce a new Theme Compat feature firstly designed for Block Themes

NB : this feature is also only available in the BP Nouveau template pack.

The Priority Navigations theme compat feature is used to make sure BP Single items primary and secondary navigations are displayed on a single row/line no matter how many items these navigations are containing.
When there's not enough space to display all the items on this row/line, an ellipsis is inserted and hovering on it shows the remaining nav items into a dropdown menu.

This commit also make sure the BP Customizer sections are neutralized so that the Customizer is not loaded on front-end when a Block Theme is active to start complying with the fact these kind of themes are not using the Customizer.

See #9030
See https://github.com/buddypress/buddypress/pull/197

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/buddypress/members/single/settings.php

    r12272 r13652  
    33 * BuddyPress - Users Settings
    44 *
    5  * @version 4.0.0
     5 * @since 3.0.0
     6 * @version 12.0.0
    67 */
    78
     
    1112
    1213    <nav class="<?php bp_nouveau_single_item_subnav_classes(); ?>" id="subnav" role="navigation" aria-label="<?php esc_attr_e( 'Settings menu', 'buddypress' ); ?>">
    13         <ul class="subnav">
     14        <ul id="member-secondary-nav" class="subnav bp-priority-subnav-nav-items">
    1415
    1516            <?php bp_get_template_part( 'members/single/parts/item-subnav' ); ?>
    1617
    1718        </ul>
     19
     20        <?php bp_nouveau_member_hook( '', 'secondary_nav' ); ?>
    1821    </nav>
    1922
Note: See TracChangeset for help on using the changeset viewer.