Advertisement
Guest User

register.php - buddypress

a guest
Mar 25th, 2015
426
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.43 KB | None | 0 0
  1. <div class="test">
  2.  
  3. </div>
  4. <div id="buddypress">
  5.  
  6. <?php do_action( 'bp_before_register_page' ); ?>
  7.  
  8. <div class="page" id="register-page">
  9.  
  10. <form action="" name="signup_form" id="signup_form" class="standard-form" method="post" enctype="multipart/form-data">
  11.  
  12. <?php if ( 'registration-disabled' == bp_get_current_signup_step() ) : ?>
  13. <?php do_action( 'template_notices' ); ?>
  14. <?php do_action( 'bp_before_registration_disabled' ); ?>
  15.  
  16. <p><?php _e( 'User registration is currently not allowed.', 'buddypress' ); ?></p>
  17.  
  18. <?php do_action( 'bp_after_registration_disabled' ); ?>
  19. <?php endif; // registration-disabled signup step ?>
  20.  
  21. <?php if ( 'request-details' == bp_get_current_signup_step() ) : ?>
  22.  
  23. <?php do_action( 'template_notices' ); ?>
  24.  
  25. <p><?php _e( 'Registering for this site is easy. Just fill in the fields below, and we\'ll get a new account set up for you in no time.', 'buddypress' ); ?></p>
  26.  
  27. <?php if ( bp_is_active( 'xprofile' ) ) : ?>
  28.  
  29. <?php do_action( 'bp_before_signup_profile_fields' ); ?>
  30.  
  31. <?php // ACCOUNT TYPE SELECTBOX ?>
  32.  
  33. <?php if ( bp_is_active( 'xprofile' ) ) : if ( bp_has_profile( array( 'profile_group_id' => 1, 'fetch_field_data' => false ) ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
  34.  
  35. <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
  36.  
  37. <?php if ( 'selectbox' == bp_get_the_profile_field_type() ) : ?>
  38. <label for="<?php bp_the_profile_field_input_name() ?>"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ) ?><?php endif; ?></label>
  39.  
  40. <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  41. <select name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>">
  42. <?php bp_the_profile_field_options() ?>
  43. </select>
  44. <?php endif; ?>
  45.  
  46. <?php endwhile; ?>
  47. <?php endwhile; endif; endif; ?>
  48.  
  49. <?php // END - ACCOUNT TYPE SELECTBOX ?>
  50.  
  51. <?php // BASIC DETAILS FIELDS ?>
  52.  
  53. <?php do_action( 'bp_before_account_details_fields' ); ?>
  54.  
  55. <label for="signup_username"><?php _e( 'Username', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
  56. <?php do_action( 'bp_signup_username_errors' ); ?>
  57. <input type="text" name="signup_username" id="signup_username" value="<?php bp_signup_username_value(); ?>" <?php bp_form_field_attributes( 'username' ); ?>/>
  58.  
  59. <label for="signup_email"><?php _e( 'Email Address', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
  60. <?php do_action( 'bp_signup_email_errors' ); ?>
  61. <input type="email" name="signup_email" id="signup_email" value="<?php bp_signup_email_value(); ?>" <?php bp_form_field_attributes( 'email' ); ?>/>
  62.  
  63. <label for="signup_password"><?php _e( 'Choose a Password', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
  64. <?php do_action( 'bp_signup_password_errors' ); ?>
  65. <input type="password" name="signup_password" id="signup_password" value="" class="password-entry" <?php bp_form_field_attributes( 'password' ); ?>/>
  66. <div id="pass-strength-result"></div>
  67.  
  68. <label for="signup_password_confirm"><?php _e( 'Confirm Password', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
  69. <?php do_action( 'bp_signup_password_confirm_errors' ); ?>
  70. <input type="password" name="signup_password_confirm" id="signup_password_confirm" value="" class="password-entry-confirm" <?php bp_form_field_attributes( 'password' ); ?>/>
  71.  
  72. <?php do_action( 'bp_account_details_fields' ); ?>
  73. <?php do_action( 'bp_after_account_details_fields' ); ?>
  74.  
  75. <?php // END - BASIC DETAILS FIELDS ?>
  76.  
  77. <?php // FIELDS BASED ON SELECTED ACCOUNT TYPE ?>
  78.  
  79.  
  80.  
  81. <?php // END - FIELDS BASED ON SELECTED ACCOUNT TYPE ?>
  82.  
  83. <?php // ACCEPT SITE RULES FIELD ?>
  84.  
  85. <?php if ( bp_is_active( 'xprofile' ) ) : if ( bp_has_profile( array( 'profile_group_id' => 1, 'fetch_field_data' => false ) ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
  86.  
  87. <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
  88.  
  89. <?php if ( 'checkbox' == bp_get_the_profile_field_type() ) : ?>
  90. <div class="checkbox">
  91. <span class="label"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ) ?><?php endif; ?></span>
  92. <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
  93. <?php bp_the_profile_field_options() ?>
  94. </div>
  95. <?php endif; ?>
  96.  
  97. <?php endwhile; ?>
  98.  
  99. <?php // END - ACCEPT SITE RULES FIELD ?>
  100.  
  101. <input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="<?php bp_the_profile_field_ids(); ?>" />
  102.  
  103. <?php endwhile; endif; endif; ?>
  104.  
  105. <?php do_action( 'bp_signup_profile_fields' ); ?>
  106.  
  107. <?php do_action( 'bp_after_signup_profile_fields' ); ?>
  108.  
  109. <?php endif; ?>
  110.  
  111. <?php do_action( 'bp_before_registration_submit_buttons' ); ?>
  112.  
  113. <div class="submit">
  114. <input type="submit" name="signup_submit" id="signup_submit" value="<?php esc_attr_e( 'Complete Sign Up', 'buddypress' ); ?>" />
  115. </div>
  116.  
  117. <?php do_action( 'bp_after_registration_submit_buttons' ); ?>
  118.  
  119. <?php wp_nonce_field( 'bp_new_signup' ); ?>
  120.  
  121. <?php endif; // request-details signup step ?>
  122.  
  123. <?php if ( 'completed-confirmation' == bp_get_current_signup_step() ) : ?>
  124.  
  125. <?php do_action( 'template_notices' ); ?>
  126. <?php do_action( 'bp_before_registration_confirmed' ); ?>
  127.  
  128. <?php if ( bp_registration_needs_activation() ) : ?>
  129. <p><?php _e( 'You have successfully created your account! To begin using this site you will need to activate your account via the email we have just sent to your address.', 'buddypress' ); ?></p>
  130. <?php else : ?>
  131. <p><?php _e( 'You have successfully created your account! Please log in using the username and password you have just created.', 'buddypress' ); ?></p>
  132. <?php endif; ?>
  133.  
  134. <?php do_action( 'bp_after_registration_confirmed' ); ?>
  135.  
  136. <?php endif; // completed-confirmation signup step ?>
  137.  
  138. <?php do_action( 'bp_custom_signup_steps' ); ?>
  139.  
  140. </form>
  141.  
  142. </div>
  143.  
  144. <?php do_action( 'bp_after_register_page' ); ?>
  145.  
  146. </div><!-- #buddypress -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement