Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/18/2021 07:25:13 PM (3 years ago)
Author:
imath
Message:

Inject Group's Invites & Manage Members JS templates into footer

To make sure JS Templates are injected without being altered in WordPress themes supporting the Full Site Editing feature, we are now doing it inside the page's footer.

HTML placeholders for both UI have been moved out of the JS Templates and a backward compatibility for potential plugins still expecting these placeholders into these templates has been put in place.

See #8474

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/buddypress/common/js-templates/invites/index.php

    r13192 r13193  
    99 * @version 10.0.0
    1010 */
     11
     12// Backward Compatibility for plugins still needing the placeholders to be located into this file.
     13if ( ! did_action( '_bp_nouveau_group_print_invites_placeholders' ) ) {
     14    /**
     15     * Placeholders to inject elements of the UI
     16     * to manage Group members.
     17     *
     18     * @since 5.0.0
     19     */
     20    bp_nouveau_group_print_invites_placeholders();
     21}
    1122?>
    12 
    13 <?php if ( bp_is_group_create() ) : ?>
    14 
    15     <h3 class="bp-screen-title creation-step-name">
    16         <?php esc_html_e( 'Invite Members', 'buddypress' ); ?>
    17     </h3>
    18 
    19 <?php else : ?>
    20 
    21     <h2 class="bp-screen-title">
    22         <?php esc_html_e( 'Invite Members', 'buddypress' ); ?>
    23     </h2>
    24 
    25 <?php endif; ?>
    26 
    27 <div id="group-invites-container">
    28 
    29     <nav class="<?php bp_nouveau_single_item_subnav_classes(); ?>" id="subnav" role="navigation" aria-label="<?php esc_attr_e( 'Group invitations menu', 'buddypress' ); ?>"></nav>
    30 
    31     <div class="group-invites-column">
    32         <div class="subnav-filters group-subnav-filters bp-invites-filters"></div>
    33         <div class="bp-invites-feedback"></div>
    34         <div class="members bp-invites-content"></div>
    35     </div>
    36 
    37 </div>
    3823
    3924<script type="text/html" id="tmpl-bp-group-invites-feedback">
Note: See TracChangeset for help on using the changeset viewer.