Changeset 13200
- Timestamp:
- 12/26/2021 12:40:02 PM (3 years ago)
- Location:
- trunk/src/bp-templates/bp-nouveau
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/buddypress/common/js-templates/messages/index.php
r13196 r13200 9 9 * @version 10.0.0 10 10 */ 11 12 // Backward Compatibility for plugins still needing the placeholders to be located into this file. 13 if ( ! did_action( '_bp_nouveau_messages_print_placeholders' ) ) { 14 bp_nouveau_messages_print_placeholders(); 15 } 11 16 ?> 12 <div class="subnav-filters filters user-subnav bp-messages-filters" id="subsubnav"></div>13 14 <div class="bp-messages-feedback"></div>15 <div class="bp-messages-content"></div>16 17 17 18 <script type="text/html" id="tmpl-bp-messages-feedback"> -
trunk/src/bp-templates/bp-nouveau/buddypress/members/single/messages.php
r12082 r13200 3 3 * BuddyPress - Users Messages 4 4 * 5 * @since 3.0.0 5 6 * @version 3.0.0 6 7 */ -
trunk/src/bp-templates/bp-nouveau/includes/messages/template-tags.php
r12184 r13200 40 40 41 41 /** 42 * Prints the JS Templates of the private messages UI. 43 * 44 * @since 10.0.0 45 */ 46 function bp_nouveau_messages_print_templates() { 47 bp_get_template_part( 'common/js-templates/messages/index' ); 48 } 49 50 /** 51 * Prints the HTML placeholders of the private messages UI. 52 * 53 * @since 10.0.0 54 */ 55 function bp_nouveau_messages_print_placeholders() { 56 ?> 57 <div class="subnav-filters filters user-subnav bp-messages-filters" id="subsubnav"></div> 58 59 <div class="bp-messages-feedback"></div> 60 <div class="bp-messages-content"></div> 61 <?php 62 } 63 64 /** 42 65 * Load the new Messages User Interface 43 66 * … … 52 75 do_action( 'bp_before_member_messages_content' ); 53 76 77 /** 78 * Load the JS templates to manage Priveate Messages into site's footer. 79 * 80 * @since 10.0.0 Hook to the `wp_footer` action to print the JS templates. 81 */ 82 add_action( 'wp_footer', 'bp_nouveau_messages_print_templates' ); 83 bp_nouveau_messages_print_placeholders(); 84 85 /** 86 * Private hook to preserve backward compatibility with plugins needing the above placeholders to be located 87 * into: `bp-templates/bp-nouveau/buddypress/common/js-templates/messahges/index.php`. 88 * 89 * @since 10.0.0 90 */ 91 do_action( '_bp_nouveau_messages_print_placeholders' ); 92 54 93 // Load the Private messages UI 55 bp_get_template_part( 'common/js-templates/messages/index' ); 94 56 95 57 96 /**
Note: See TracChangeset
for help on using the changeset viewer.