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/group-members/index.php

    r12405 r13193  
    77 *
    88 * @since 5.0.0
    9  * @version 5.0.0
     9 * @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_groups_print_manage_group_members_placeholders' ) ) {
     14    /**
     15     * Placeholders to inject elements of the UI
     16     * to manage Group members.
     17     *
     18     * @since 5.0.0
     19     */
     20    bp_groups_print_manage_group_members_placeholders();
     21}
    1122?>
    12 
    13 <?php
    14 /**
    15  * Placeholder to inject elements of the UI
    16  * to manage Group members.
    17  *
    18  * @since 5.0.0
    19  * @version 5.0.0
    20  */
    21 ?>
    22 <div id="group-manage-members-ui" class="standard-form">
    23     <ul class="subnav-filters">
    24         <li id="group-roles-filter" class="last filter"><?php // Placeholder for the Group Role Tabs ?></li>
    25         <li id="group-members-pagination" class="left-menu"><?php // Placeholder for paginate links ?></li>
    26         <li id="group-members-search-form" class="bp-search"><?php // Placeholder for search form ?></li>
    27     </ul>
    28     <table id="group-members-list-table" class="<?php echo is_admin() ? 'widefat bp-group-members' : 'bp-list'; ?>"><?php // Placeholder to list members ?></table>
    29 </div>
    3023
    3124<script type="text/html" id="tmpl-bp-manage-members-updating">
Note: See TracChangeset for help on using the changeset viewer.