diff --git src/bp-templates/bp-nouveau/buddypress/common/js-templates/messages/index.php src/bp-templates/bp-nouveau/buddypress/common/js-templates/messages/index.php
index b75b16b14..d36a30ba3 100644
|
|
|
8 | 8 | * @since 3.0.0 |
9 | 9 | * @version 10.0.0 |
10 | 10 | */ |
11 | | ?> |
12 | | <div class="subnav-filters filters user-subnav bp-messages-filters" id="subsubnav"></div> |
13 | 11 | |
14 | | <div class="bp-messages-feedback"></div> |
15 | | <div class="bp-messages-content"></div> |
| 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 | } |
| 16 | ?> |
16 | 17 | |
17 | 18 | <script type="text/html" id="tmpl-bp-messages-feedback"> |
18 | 19 | <div class="bp-feedback {{data.type}}"> |
diff --git src/bp-templates/bp-nouveau/buddypress/members/single/messages.php src/bp-templates/bp-nouveau/buddypress/members/single/messages.php
index a4f7b588a..d509bd235 100644
|
|
|
2 | 2 | /** |
3 | 3 | * BuddyPress - Users Messages |
4 | 4 | * |
| 5 | * @since 3.0.0 |
5 | 6 | * @version 3.0.0 |
6 | 7 | */ |
7 | 8 | ?> |
diff --git src/bp-templates/bp-nouveau/includes/messages/template-tags.php src/bp-templates/bp-nouveau/includes/messages/template-tags.php
index 9dcc4ea64..003f34a46 100644
|
|
function bp_nouveau_messages_hook( $when = '', $suffix = '' ) { |
38 | 38 | bp_nouveau_hook( $hook ); |
39 | 39 | } |
40 | 40 | |
| 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 | |
41 | 64 | /** |
42 | 65 | * Load the new Messages User Interface |
43 | 66 | * |
… |
… |
function bp_nouveau_messages_member_interface() { |
51 | 74 | */ |
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 | /** |
58 | 97 | * Fires after the member messages content. |