Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if ( bp_is_active( 'xprofile' ) ) : ?>
- <?php do_action( 'bp_before_signup_profile_fields' ); ?>
- <div class="step register-section" id="profile-details-section">
- <?php $steps[] = __( 'Profile Details' ); ?>
- <h4><?php _e( 'Profile Details', 'bp-magic' ); ?></h4>
- <?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?>
- <?php if ( bp_is_active( 'xprofile' ) ) : if ( bp_has_profile( 'profile_group_id=1' ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
- <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
- <div<?php bp_field_css_class( 'editfield' ); ?>>
- <?php
- $field_type = bp_xprofile_create_field_type( bp_get_the_profile_field_type() );
- $field_type->edit_field_html();
- /**
- * Fires before the display of the visibility options for xprofile fields.
- *
- * @since BuddyPress (1.7.0)
- */
- do_action( 'bp_custom_profile_edit_fields_pre_visibility' );
- ?>
- <?php if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?>
- <p class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
- <?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'bp-magic' ), bp_get_the_profile_field_visibility_level_label() ) ?> <a href="#" class="visibility-toggle-link">Change</a>
- </p>
- <div class="field-visibility-settings" id="field-visibility-settings-<?php bp_the_profile_field_id() ?>">
- <fieldset>
- <legend><?php _e( 'Who can see this field?', 'bp-magic' ) ?></legend>
- <?php bpmagic_profile_visibility_radio_buttons() ?>
- </fieldset>
- <a class="field-visibility-settings-close" href="#"><?php _e( 'Close', 'bp-magic' ) ?></a>
- </div>
- <?php else : ?>
- <p class="field-visibility-settings-notoggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
- <?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'bp-magic' ), bp_get_the_profile_field_visibility_level_label() ) ?>
- </p>
- <?php endif ?>
- <?php do_action( 'bp_custom_profile_edit_fields' ); ?>
- </div>
- <?php endwhile; ?>
- <input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="<?php bp_the_profile_group_field_ids(); ?>" />
- <?php
- endwhile;
- endif;
- endif;
- ?>
- <?php do_action( 'bp_after_signup_profile_fields' ); ?>
- </div><!-- #profile-details-section -->
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement