- Timestamp:
- 12/18/2021 07:25:13 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/includes/groups/template-tags.php
r13108 r13193 4 4 * 5 5 * @since 3.0.0 6 * @version 9.0.06 * @version 10.0.0 7 7 */ 8 8 … … 158 158 159 159 /** 160 * Prints the JS Templates to invite new members to join the Group. 161 * 162 * @since 10.0.0 163 */ 164 function bp_nouveau_group_print_invites_templates() { 165 bp_get_template_part( 'common/js-templates/invites/index' ); 166 } 167 168 /** 169 * Prints the HTML placeholders to invite new members to join the Group. 170 * 171 * @since 10.0.0 172 */ 173 function bp_nouveau_group_print_invites_placeholders() { 174 if ( bp_is_group_create() ) : ?> 175 176 <h3 class="bp-screen-title creation-step-name"> 177 <?php esc_html_e( 'Invite Members', 'buddypress' ); ?> 178 </h3> 179 180 <?php else : ?> 181 182 <h2 class="bp-screen-title"> 183 <?php esc_html_e( 'Invite Members', 'buddypress' ); ?> 184 </h2> 185 186 <?php endif; ?> 187 188 <div id="group-invites-container"> 189 <nav class="<?php bp_nouveau_single_item_subnav_classes(); ?>" id="subnav" role="navigation" aria-label="<?php esc_attr_e( 'Group invitations menu', 'buddypress' ); ?>"></nav> 190 <div class="group-invites-column"> 191 <div class="subnav-filters group-subnav-filters bp-invites-filters"></div> 192 <div class="bp-invites-feedback"></div> 193 <div class="members bp-invites-content"></div> 194 </div> 195 </div> 196 <?php 197 } 198 199 /** 160 200 * Load the Group Invites UI. 161 201 * … … 172 212 do_action( 'bp_before_group_send_invites_content' ); 173 213 174 bp_get_template_part( 'common/js-templates/invites/index' ); 214 /** 215 * Get the templates to manage Group Members using the BP REST API. 216 * 217 * @since 10.0.0 Hook to the `wp_footer` action to print the JS templates. 218 */ 219 add_action( 'wp_footer', 'bp_nouveau_group_print_invites_templates' ); 220 bp_nouveau_group_print_invites_placeholders(); 221 222 /** 223 * Private hook to preserve backward compatibility with plugins needing the above placeholders to be located 224 * into: `bp-templates/bp-nouveau/buddypress/common/js-templates/invites/index.php`. 225 * 226 * @since 10.0.0 227 */ 228 do_action( '_bp_nouveau_group_print_invites_placeholders' ); 175 229 176 230 /**
Note: See TracChangeset
for help on using the changeset viewer.