Skip to content

Commit

Permalink
Nouveau: Alter 'members/single/follow' template to use feedback funct…
Browse files Browse the repository at this point in the history
…ion for v1.2.x.

Backports commit ed47e20 for v1.2-branch.

See #97.
  • Loading branch information
r-a-y committed May 3, 2018
1 parent babf893 commit 210e744
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion _inc/templates/buddypress/members/single/follow.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@

<?php // this is important! do not remove the classes in this DIV as AJAX relies on it! ?>
<div id="members-dir-list" class="dir-list members follow <?php echo bp_current_action(); ?>" data-bp-list="members">
<?php bp_get_template_part( 'members/members-loop' ) ?>
<?php if ( function_exists( 'bp_nouveau' ) ) : ?>

<div id="bp-ajax-loader"><?php bp_nouveau_user_feedback( 'generic-loading' ); ?></div>

<?php else : ?>

<?php bp_get_template_part( 'members/members-loop' ) ?>

<?php endif; ?>
</div>

<?php do_action( 'bp_after_member_' . bp_current_action() . '_content' ); ?>

0 comments on commit 210e744

Please sign in to comment.