Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/09/2024 10:55:43 AM (2 years ago)
Author:
imath
Message:

BP Standalone Block Themes: adapt Groups template hierarchy

  • Adds a members/single/index.html root template to the BP Standalone Theme hierarchy to be used by BP Standalone Block Themes in respect of WP Block Themes templating logic.
  • Adds a groups/single/index.html root template to the BP Standalone Theme hierarchy to be used by BP Standalone Block Themes in respect of WP Block Themes templating logic.

See #9118
See https://github.com/buddypress/buddypress/pull/249
See https://github.com/buddypress/buddyvibes/pull/7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/screens/single/activity.php

    r11923 r13762  
    1212 *
    1313 * @since 2.4.0
     14 *
     15 * @return void
    1416 */
    1517function groups_screen_group_activity() {
    1618
    1719    if ( ! bp_is_single_item() ) {
    18         return false;
     20        return;
    1921    }
    2022
     
    2628    do_action( 'groups_screen_group_activity' );
    2729
    28     /**
    29      * Filters the template to load for a single group's activity page.
    30      *
    31      * @since 2.4.0
    32      *
    33      * @param string $value Path to a single group's template to load.
    34      */
    35     bp_core_load_template( apply_filters( 'groups_screen_group_activity', 'groups/single/activity' ) );
     30    $templates = array(
     31        /**
     32         * Filters the template to load for a single group's activity page.
     33         *
     34         * @since 2.4.0
     35         *
     36         * @param string $value Path to a single group's template to load.
     37         */
     38        apply_filters( 'groups_screen_group_activity', 'groups/single/activity' ),
     39        'groups/single/index',
     40    );
     41
     42    bp_core_load_template( $templates );
    3643}
Note: See TracChangeset for help on using the changeset viewer.