Skip to:
Content

BuddyPress.org

Changeset 13761


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

BP Standalone Block Themes: adapt Friends 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.

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

Location:
trunk/src/bp-friends/screens
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-friends/screens/my-friends.php

    r13092 r13761  
    2222        do_action( 'friends_screen_my_friends' );
    2323
    24         /**
    25          * Filters the template used to display the My Friends page.
    26          *
    27          * @since 1.0.0
    28          *
    29          * @param string $template Path to the my friends template to load.
    30          */
    31         bp_core_load_template( apply_filters( 'friends_template_my_friends', 'members/single/home' ) );
     24        $templates = array(
     25                /**
     26                 * Filters the template used to display the My Friends page.
     27                 *
     28                 * @since 1.0.0
     29                 *
     30                 * @param string $template Path to the my friends template to load.
     31                 */
     32                apply_filters( 'friends_template_my_friends', 'members/single/home' ),
     33                'members/single/index',
     34        );
     35
     36        bp_core_load_template( $templates );
    3237}
  • trunk/src/bp-friends/screens/requests.php

    r13503 r13761  
    6868        do_action( 'friends_screen_requests' );
    6969
    70         /**
    71          * Filters the template used to display the My Friends page.
    72          *
    73          * @since 1.0.0
    74          *
    75          * @param string $template Path to the friends request template to load.
    76          */
    77         bp_core_load_template( apply_filters( 'friends_template_requests', 'members/single/home' ) );
     70        $templates = array(
     71                /**
     72                 * Filters the template used to display the My Friends page.
     73                 *
     74                 * @since 1.0.0
     75                 *
     76                 * @param string $template Path to the friends request template to load.
     77                 */
     78                apply_filters( 'friends_template_requests', 'members/single/home' ),
     79                'members/single/index',
     80        );
     81
     82        bp_core_load_template( $templates );
    7883}
Note: See TracChangeset for help on using the changeset viewer.