Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="test">
- </div>
- <div id="buddypress">
- <?php do_action( 'bp_before_register_page' ); ?>
- <div class="page" id="register-page">
- <form action="" name="signup_form" id="signup_form" class="standard-form" method="post" enctype="multipart/form-data">
- <?php if ( 'registration-disabled' == bp_get_current_signup_step() ) : ?>
- <?php do_action( 'template_notices' ); ?>
- <?php do_action( 'bp_before_registration_disabled' ); ?>
- <p><?php _e( 'User registration is currently not allowed.', 'buddypress' ); ?></p>
- <?php do_action( 'bp_after_registration_disabled' ); ?>
- <?php endif; // registration-disabled signup step ?>
- <?php if ( 'request-details' == bp_get_current_signup_step() ) : ?>
- <?php do_action( 'template_notices' ); ?>
- <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>
- <?php if ( bp_is_active( 'xprofile' ) ) : ?>
- <?php do_action( 'bp_before_signup_profile_fields' ); ?>
- <?php // ACCOUNT TYPE SELECTBOX ?>
- <?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(); ?>
- <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
- <?php if ( 'selectbox' == bp_get_the_profile_field_type() ) : ?>
- <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>
- <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
- <select name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>">
- <?php bp_the_profile_field_options() ?>
- </select>
- <?php endif; ?>
- <?php endwhile; ?>
- <?php endwhile; endif; endif; ?>
- <?php // END - ACCOUNT TYPE SELECTBOX ?>
- <?php // BASIC DETAILS FIELDS ?>
- <?php do_action( 'bp_before_account_details_fields' ); ?>
- <label for="signup_username"><?php _e( 'Username', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
- <?php do_action( 'bp_signup_username_errors' ); ?>
- <input type="text" name="signup_username" id="signup_username" value="<?php bp_signup_username_value(); ?>" <?php bp_form_field_attributes( 'username' ); ?>/>
- <label for="signup_email"><?php _e( 'Email Address', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
- <?php do_action( 'bp_signup_email_errors' ); ?>
- <input type="email" name="signup_email" id="signup_email" value="<?php bp_signup_email_value(); ?>" <?php bp_form_field_attributes( 'email' ); ?>/>
- <label for="signup_password"><?php _e( 'Choose a Password', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
- <?php do_action( 'bp_signup_password_errors' ); ?>
- <input type="password" name="signup_password" id="signup_password" value="" class="password-entry" <?php bp_form_field_attributes( 'password' ); ?>/>
- <div id="pass-strength-result"></div>
- <label for="signup_password_confirm"><?php _e( 'Confirm Password', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
- <?php do_action( 'bp_signup_password_confirm_errors' ); ?>
- <input type="password" name="signup_password_confirm" id="signup_password_confirm" value="" class="password-entry-confirm" <?php bp_form_field_attributes( 'password' ); ?>/>
- <?php do_action( 'bp_account_details_fields' ); ?>
- <?php do_action( 'bp_after_account_details_fields' ); ?>
- <?php // END - BASIC DETAILS FIELDS ?>
- <?php // FIELDS BASED ON SELECTED ACCOUNT TYPE ?>
- <?php // END - FIELDS BASED ON SELECTED ACCOUNT TYPE ?>
- <?php // ACCEPT SITE RULES FIELD ?>
- <?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(); ?>
- <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
- <?php if ( 'checkbox' == bp_get_the_profile_field_type() ) : ?>
- <div class="checkbox">
- <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>
- <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
- <?php bp_the_profile_field_options() ?>
- </div>
- <?php endif; ?>
- <?php endwhile; ?>
- <?php // END - ACCEPT SITE RULES FIELD ?>
- <input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="<?php bp_the_profile_field_ids(); ?>" />
- <?php endwhile; endif; endif; ?>
- <?php do_action( 'bp_signup_profile_fields' ); ?>
- <?php do_action( 'bp_after_signup_profile_fields' ); ?>
- <?php endif; ?>
- <?php do_action( 'bp_before_registration_submit_buttons' ); ?>
- <div class="submit">
- <input type="submit" name="signup_submit" id="signup_submit" value="<?php esc_attr_e( 'Complete Sign Up', 'buddypress' ); ?>" />
- </div>
- <?php do_action( 'bp_after_registration_submit_buttons' ); ?>
- <?php wp_nonce_field( 'bp_new_signup' ); ?>
- <?php endif; // request-details signup step ?>
- <?php if ( 'completed-confirmation' == bp_get_current_signup_step() ) : ?>
- <?php do_action( 'template_notices' ); ?>
- <?php do_action( 'bp_before_registration_confirmed' ); ?>
- <?php if ( bp_registration_needs_activation() ) : ?>
- <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>
- <?php else : ?>
- <p><?php _e( 'You have successfully created your account! Please log in using the username and password you have just created.', 'buddypress' ); ?></p>
- <?php endif; ?>
- <?php do_action( 'bp_after_registration_confirmed' ); ?>
- <?php endif; // completed-confirmation signup step ?>
- <?php do_action( 'bp_custom_signup_steps' ); ?>
- </form>
- </div>
- <?php do_action( 'bp_after_register_page' ); ?>
- </div><!-- #buddypress -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement