/bp-templates/bp-legacy/buddypress/groups/single/request-membership.php

  1. <?php 
  2. /** 
  3. * BuddyPress - Groups Request Membership 
  4. * 
  5. * @package BuddyPress 
  6. * @subpackage bp-legacy 
  7. */ 
  8.  
  9. /** 
  10. * Fires before the display of the group membership request form. 
  11. * 
  12. * @since 1.1.0 
  13. */ 
  14. do_action( 'bp_before_group_request_membership_content' ); ?> 
  15.  
  16. <?php if ( !bp_group_has_requested_membership() ) : ?> 
  17. <h2 class="bp-screen-reader-text"><?php 
  18. /** translators: accessibility text */ 
  19. _e( 'Request form', 'buddypress' ); 
  20. ?></h2> 
  21.  
  22. <p><?php printf( __( "You are requesting to become a member of the group '%s'.", 'buddypress' ), bp_get_group_name( false ) ); ?></p> 
  23.  
  24. <form action="<?php bp_group_form_action('request-membership' ); ?>" method="post" name="request-membership-form" id="request-membership-form" class="standard-form"> 
  25. <label for="group-request-membership-comments"><?php _e( 'Comments (optional)', 'buddypress' ); ?></label> 
  26. <textarea name="group-request-membership-comments" id="group-request-membership-comments"></textarea> 
  27.  
  28. <?php 
  29.  
  30. /** 
  31. * Fires after the textarea for the group membership request form. 
  32. * 
  33. * @since 1.1.0 
  34. */ 
  35. do_action( 'bp_group_request_membership_content' ); ?> 
  36.  
  37. <p><input type="submit" name="group-request-send" id="group-request-send" value="<?php esc_attr_e( 'Send Request', 'buddypress' ); ?>" /> 
  38.  
  39. <?php wp_nonce_field( 'groups_request_membership' ); ?> 
  40. </form><!-- #request-membership-form --> 
  41. <?php endif; ?> 
  42.  
  43. <?php 
  44.  
  45. /** 
  46. * Fires after the display of the group membership request form. 
  47. * 
  48. * @since 1.1.0 
  49. */ 
  50. do_action( 'bp_after_group_request_membership_content' ); ?> 
.