Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/09/2024 10:46:28 AM (11 months ago)
Author:
imath
Message:

BP Standalone Block Themes: adapt Activity 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 an activity/single 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-activity/screens/groups.php

    r11885 r13759  
    1212 *
    1313 * @since 1.2.0
     14 *
     15 * @return void
    1416 */
    1517function bp_activity_screen_groups() {
    16     if ( !bp_is_active( 'groups' ) )
    17         return false;
     18    if ( ! bp_is_active( 'groups' ) ) {
     19        return;
     20    }
    1821
    1922    bp_update_is_item_admin( bp_current_user_can( 'bp_moderate' ), 'activity' );
     
    2629    do_action( 'bp_activity_screen_groups' );
    2730
    28     /**
    29      * Filters the template to load for the "My Groups" screen.
    30      *
    31      * @since 1.2.0
    32      *
    33      * @param string $template Path to the activity template to load.
    34      */
    35     bp_core_load_template( apply_filters( 'bp_activity_template_groups_activity', 'members/single/home' ) );
     31    $templates = array(
     32        /**
     33         * Filters the template to load for the "My Groups" screen.
     34         *
     35         * @since 1.2.0
     36         *
     37         * @param string $template Path to the activity template to load.
     38         */
     39        apply_filters( 'bp_activity_template_groups_activity', 'members/single/home' ),
     40        'members/single/index',
     41    );
     42
     43    bp_core_load_template( $templates );
    3644}
Note: See TracChangeset for help on using the changeset viewer.