[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * BuddyPress - Members Settings ( Group Invites )
   4   *
   5   * @since 3.0.0
   6   * @version 8.0.0
   7   */
   8  ?>
   9  
  10  <h2 class="screen-heading group-invites-screen">
  11      <?php _e( 'Group Invites', 'buddypress' ); ?>
  12  </h2>
  13  
  14  <?php
  15  if ( 1 === bp_nouveau_groups_get_group_invites_setting() ) {
  16       bp_nouveau_user_feedback( 'member-group-invites-friends-only' );
  17  } else {
  18       bp_nouveau_user_feedback( 'member-group-invites-all' );
  19  }
  20  ?>
  21  
  22  
  23  <form action="<?php echo esc_url( bp_displayed_user_domain() . bp_nouveau_get_component_slug( 'settings' ) . '/invites/' ); ?>" name="account-group-invites-form" id="account-group-invites-form" class="standard-form" method="post">
  24  
  25      <label for="account-group-invites-preferences">
  26          <input type="checkbox" name="account-group-invites-preferences" id="account-group-invites-preferences" value="1" <?php checked( 1, bp_nouveau_groups_get_group_invites_setting() ); ?>/>
  27              <?php esc_html_e( 'I want to restrict Group invites to my friends only.', 'buddypress' ); ?>
  28      </label>
  29  
  30      <?php bp_nouveau_submit_button( 'member-group-invites' ); ?>
  31  
  32  </form>


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