[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-templates/bp-legacy/buddypress/groups/single/ -> request-membership.php (source)

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


Generated: Wed Dec 11 01:01:37 2019 Cross-referenced by PHPXref 0.7.1