Skip to content

Instantly share code, notes, and snippets.

@2Fwebd
Created June 19, 2018 09:10
Show Gist options
  • Save 2Fwebd/3f361e1cb33584f75b4af26cc2515d00 to your computer and use it in GitHub Desktop.
Save 2Fwebd/3f361e1cb33584f75b4af26cc2515d00 to your computer and use it in GitHub Desktop.
<div id="buddypress">
<?php do_action( 'bp_before_activation_page' ); ?>
<div class="page" id="activate-page">
<?php do_action( 'template_notices' ); ?>
<?php do_action( 'bp_before_activate_content' ); ?>
<?php if ( bp_account_was_activated() ) : ?>
<?php if ( isset( $_GET['e'] ) ) : ?>
<p><?php _e( 'Your account was activated successfully! Your account details have been sent to you in a separate email.', 'buddypress' ); ?></p>
<?php else : ?>
<p><?php 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() ) ); ?></p>
<?php endif; ?>
<?php else : ?>
<p><?php _e( 'Please provide a valid activation key.', 'buddypress' ); ?></p>
<form action="" method="post" class="standard-form" id="activation-form">
<label for="key"><?php _e( 'Activation Key:', 'buddypress' ); ?></label>
<input type="text" name="key" id="key" value="<?php echo esc_attr( bp_get_current_activation_key() ); ?>" />
<p class="submit">
<input type="submit" name="submit" value="<?php esc_attr_e( 'Activate', 'buddypress' ); ?>" />
</p>
</form>
<?php endif; ?>
<?php do_action( 'bp_after_activate_content' ); ?>
</div><!-- .page -->
<?php do_action( 'bp_after_activation_page' ); ?>
</div><!-- #buddypress -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment