[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * BuddyPress - Send a Membership Invitation.
   4   *
   5   * @since 8.0.0
   6   * @version 8.0.0
   7   */
   8  ?>
   9  <h2 class="bp-screen-reader-text">
  10      <?php
  11      /* translators: accessibility text */
  12      esc_html_e( 'Send Invitation', 'buddypress' );
  13      ?>
  14  </h2>
  15  
  16  <?php if ( bp_user_can( bp_displayed_user_id(), 'bp_members_send_invitation' ) ) : ?>
  17  
  18      <?php bp_nouveau_user_feedback( 'member-invitations-help' ); ?>
  19  
  20      <form class="standard-form network-invitation-form" id="network-invitation-form" method="post">
  21          <label for="bp_members_invitation_invitee_email">
  22              <?php esc_html_e( 'Email', 'buddypress' ); ?>
  23              <span class="bp-required-field-label"><?php esc_html_e( '(required)', 'buddypress' ); ?></span>
  24          </label>
  25          <input id="bp_members_invitation_invitee_email" type="email" name="invitee_email" required="required">
  26  
  27          <label for="bp_members_invitation_message">
  28              <?php esc_html_e( 'Add a personalized message to the invitation (optional)', 'buddypress' ); ?>
  29          </label>
  30          <textarea id="bp_members_invitation_message" name="content"></textarea>
  31  
  32          <input type="hidden" name="action" value="send-invite">
  33  
  34          <?php bp_nouveau_submit_button( 'member-send-invite' ); ?>
  35      </form>
  36  
  37  <?php else : ?>
  38  
  39      <?php bp_nouveau_user_feedback( 'member-invitations-not-allowed' ); ?>
  40  
  41  <?php endif; ?>


Generated: Sat Jun 22 01:00:53 2024 Cross-referenced by PHPXref 0.7.1