Skip to:
Content

BuddyPress.org

Changeset 12922


Ignore:
Timestamp:
04/28/2021 11:51:13 PM (3 years ago)
Author:
dcavins
Message:

Member Invites: Add Legacy template pack.

See #8139.

Location:
trunk/src/bp-templates/bp-legacy
Files:
5 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress-functions.php

    r12672 r12922  
    20152015    endif;
    20162016}
     2017
     2018/**
     2019 * Modify welcome message in Legacy template pack when
     2020 * community invitations are enabled.
     2021 *
     2022 * @since 8.0.0
     2023 *
     2024 * @return string $message The message text.
     2025 */
     2026function bp_members_invitations_add_legacy_welcome_message() {
     2027    $message = bp_members_invitations_get_registration_welcome_message();
     2028    if ( $message ) {
     2029        echo apply_filters( 'wpautop', $message );
     2030    }
     2031}
     2032add_action( 'bp_before_register_page', 'bp_members_invitations_add_legacy_welcome_message' );
     2033
     2034
     2035/**
     2036 * Modify "registration disabled" message in Legacy template pack when
     2037 * community invitations are enabled.
     2038 *
     2039 * @since 8.0.0
     2040 *
     2041 * @return string $message The message text.
     2042 */
     2043function bp_members_invitations_add_legacy_registration_disabled_message() {
     2044    $message = bp_members_invitations_get_modified_registration_disabled_message();
     2045    if ( $message ) {
     2046        echo apply_filters( 'wpautop', $message );
     2047    }
     2048}
     2049add_action( 'bp_after_registration_disabled', 'bp_members_invitations_add_legacy_registration_disabled_message' );
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/home.php

    r12082 r12922  
    9090            bp_get_template_part( 'members/single/notifications' );
    9191
     92        elseif ( bp_is_user_members_invitations() ) :
     93            bp_get_template_part( 'members/single/invitations' );
     94
    9295        elseif ( bp_is_user_settings() ) :
    9396            bp_get_template_part( 'members/single/settings' );
Note: See TracChangeset for help on using the changeset viewer.