Changeset 13213
- Timestamp:
- 01/16/2022 02:01:10 PM (3 years ago)
- Location:
- trunk/src/bp-templates/bp-nouveau
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/buddypress/activity/post-form.php
r12156 r13213 3 3 * BuddyPress - Activity Post Form 4 4 * 5 * @since 3.0.0 5 6 * @version 3.1.0 6 7 */ -
trunk/src/bp-templates/bp-nouveau/includes/activity/template-tags.php
r13114 r13213 62 62 */ 63 63 do_action( 'bp_after_directory_activity' ); 64 } 65 66 /** 67 * Prints the JS Templates used to render the Activity Post Form. 68 * 69 * @since 10.0.0 70 */ 71 function bp_nouveau_activity_print_post_form_templates() { 72 bp_get_template_part( 'common/js-templates/activity/form' ); 64 73 } 65 74 … … 73 82 if ( bp_nouveau_current_user_can( 'publish_activity' ) ) { 74 83 wp_enqueue_script( 'bp-nouveau-activity-post-form' ); 84 85 /** 86 * Get the templates to manage Group Members using the BP REST API. 87 * 88 * @since 10.0.0 Hook to the `wp_footer` action to print the JS templates. 89 */ 90 add_action( 'wp_footer', 'bp_nouveau_activity_print_post_form_templates' ); 75 91 } 76 92 } … … 82 98 */ 83 99 function bp_nouveau_after_activity_post_form() { 84 if ( bp_nouveau_current_user_can( 'publish_activity' ) ) {85 bp_get_template_part( 'common/js-templates/activity/form' );86 }87 88 100 /** 89 101 * Fires after the activity post form.
Note: See TracChangeset
for help on using the changeset viewer.