[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-templates/bp-legacy/buddypress/members/ -> activate.php (source)

   1  <?php
   2  /**
   3   * BuddyPress - Members Activate
   4   *
   5   * @package BuddyPress
   6   * @subpackage bp-legacy
   7   * @version 3.0.0
   8   */
   9  
  10  ?>
  11  
  12  <div id="buddypress">
  13  
  14      <?php
  15  
  16      /**
  17       * Fires before the display of the member activation page.
  18       *
  19       * @since 1.1.0
  20       */
  21      do_action( 'bp_before_activation_page' ); ?>
  22  
  23      <div class="page" id="activate-page">
  24  
  25          <div id="template-notices" role="alert" aria-atomic="true">
  26              <?php
  27  
  28              /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
  29              do_action( 'template_notices' ); ?>
  30  
  31          </div>
  32  
  33          <?php
  34  
  35          /**
  36           * Fires before the display of the member activation page content.
  37           *
  38           * @since 1.1.0
  39           */
  40          do_action( 'bp_before_activate_content' ); ?>
  41  
  42          <?php if ( bp_account_was_activated() ) : ?>
  43  
  44              <?php if ( isset( $_GET['e'] ) ) : ?>
  45                  <p><?php _e( 'Your account was activated successfully! Your account details have been sent to you in a separate email.', 'buddypress' ); ?></p>
  46              <?php else : ?>
  47                  <p>
  48                      <?php
  49                      /* translators: %s: login url */
  50                      printf( __( 'Your account was activated successfully! You can now <a href="%s">log in</a> with the username and password you provided when you signed up.', 'buddypress' ), wp_login_url( bp_get_root_domain() ) );
  51                      ?>
  52                  </p>
  53              <?php endif; ?>
  54  
  55          <?php else : ?>
  56  
  57              <p><?php _e( 'Please provide a valid activation key.', 'buddypress' ); ?></p>
  58  
  59              <form action="" method="post" class="standard-form" id="activation-form">
  60  
  61                  <label for="key"><?php _e( 'Activation Key:', 'buddypress' ); ?></label>
  62                  <input type="text" name="key" id="key" value="<?php echo esc_attr( bp_get_current_activation_key() ); ?>" />
  63  
  64                  <p class="submit">
  65                      <input type="submit" name="submit" value="<?php esc_attr_e( 'Activate', 'buddypress' ); ?>" />
  66                  </p>
  67  
  68              </form>
  69  
  70          <?php endif; ?>
  71  
  72          <?php
  73  
  74          /**
  75           * Fires after the display of the member activation page content.
  76           *
  77           * @since 1.1.0
  78           */
  79          do_action( 'bp_after_activate_content' ); ?>
  80  
  81      </div><!-- .page -->
  82  
  83      <?php
  84  
  85      /**
  86       * Fires after the display of the member activation page.
  87       *
  88       * @since 1.1.0
  89       */
  90      do_action( 'bp_after_activation_page' ); ?>
  91  
  92  </div><!-- #buddypress -->


Generated: Thu Mar 28 01:00:56 2024 Cross-referenced by PHPXref 0.7.1