Advertisement
Guest User

Untitled

a guest
Nov 10th, 2018
299
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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><?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>
  48. <?php endif; ?>
  49.  
  50. <?php else : ?>
  51. <p><?php _e( 'Please provide a valid activation key.', 'buddypress' ); ?></p>
  52.  
  53. <form action="" method="post" class="standard-form" id="activation-form">
  54.  
  55. <label for="key"><?php _e( 'Activation Key:', 'buddypress' ); ?></label>
  56. <input type="text" name="key" id="key" label="Copy activation code form your address bar" value="<?php echo esc_attr( bp_get_current_activation_key() ); ?>" />
  57.  
  58. <p class="submit">
  59. <input type="submit" name="submit" value="<?php esc_attr_e( 'Activate', 'buddypress' ); ?>" />
  60. </p>
  61.  
  62. </form>
  63.  
  64. <?php endif; ?>
  65.  
  66. <?php
  67.  
  68. /**
  69. * Fires after the display of the member activation page content.
  70. *
  71. * @since 1.1.0
  72. */
  73. do_action( 'bp_after_activate_content' ); ?>
  74.  
  75. </div><!-- .page -->
  76.  
  77. <?php
  78.  
  79. /**
  80. * Fires after the display of the member activation page.
  81. *
  82. * @since 1.1.0
  83. */
  84. do_action( 'bp_after_activation_page' ); ?>
  85.  
  86. </div><!-- #buddypress -->
Advertisement
RAW Paste Data Copied
Advertisement