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/plugins.php

    r12082 r13652  
    77 *
    88 * @since 3.0.0
    9  * @version 3.0.0
     9 * @version 12.0.0
    1010 */
    1111
     
    1515
    1616    <nav class="<?php bp_nouveau_single_item_subnav_classes(); ?>" id="subnav">
    17         <ul class="subnav">
     17        <ul id="member-secondary-nav" class="subnav bp-priority-subnav-nav-items">
    1818
    1919            <?php bp_get_template_part( 'members/single/parts/item-subnav' ); ?>
     
    2222
    2323        </ul>
     24
     25        <?php bp_nouveau_member_hook( '', 'secondary_nav' ); ?>
    2426    </nav>
    2527
Note: See TracChangeset for help on using the changeset viewer.