[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-templates/bp-legacy/buddypress/members/single/invitations/ -> send-invites.php (source)

   1  <?php
   2  /**
   3   * BuddyPress - Sent Membership Invitations
   4   *
   5   * @package BuddyPress
   6   * @subpackage bp-legacy
   7   * @version 8.0.0
   8   */
   9  ?>
  10  <h2 class="bp-screen-reader-text">
  11      <?php
  12      /* translators: accessibility text */
  13      esc_html_e( 'Send Invitations', 'buddypress' );
  14      ?>
  15  </h2>
  16  
  17  <?php if ( bp_user_can( bp_displayed_user_id(), 'bp_members_send_invitation' ) ) : ?>
  18  
  19  <form class="standard-form members-invitation-form" id="members-invitation-form" method="post">
  20      <p class="description"><?php esc_html_e( 'Fill out the form below to invite a new user to join this site. Upon submission of the form, an email will be sent to the invitee containing a link to accept your invitation. You may also add a custom message to the email.', 'buddypress' ); ?></p>
  21  
  22      <label for="bp_members_invitation_invitee_email"><?php esc_html_e( 'Email address of new user', 'buddypress' ); ?></label>
  23      <input id="bp_members_invitation_invitee_email" type="email" name="invitee_email" required="required">
  24  
  25      <label for="bp_members_invitation_message"><?php esc_html_e( 'Add a personalized message to the invitation (optional)', 'buddypress' ); ?></label>
  26      <textarea id="bp_members_invitation_message" name="content"></textarea>
  27  
  28      <input type="hidden" name="action" value="send-invite">
  29  
  30      <?php wp_nonce_field( 'bp_members_invitation_send_' . bp_displayed_user_id() ) ?>
  31      <p>
  32          <input id="submit" type="submit" name="submit" class="submit" value="<?php esc_attr_e( 'Send Invitation', 'buddypress' ) ?>" />
  33      </p>
  34  </form>
  35  
  36  <?php else : ?>
  37  
  38      <p class="bp-feedback error">
  39          <span class="bp-icon" aria-hidden="true"></span>
  40          <span class="bp-help-text">
  41              <?php echo apply_filters( 'members_invitations_form_access_restricted', esc_html__( 'Sorry, you are not allowed to send invitations.', 'buddypress' ) ); ?>
  42          </span>
  43      </p>
  44  
  45  <?php endif; ?>


Generated: Fri Apr 26 01:01:11 2024 Cross-referenced by PHPXref 0.7.1