Advertisement
PhoTonFlinger

Untitled

Nov 22nd, 2018
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.94 KB | None | 0 0
  1. <?php if ( bp_is_active( 'xprofile' ) ) : ?>
  2.  
  3. <?php do_action( 'bp_before_signup_profile_fields' ); ?>
  4.  
  5. <div class="step register-section" id="profile-details-section">
  6. <?php $steps[] = __( 'Profile Details' ); ?>
  7. <h4><?php _e( 'Profile Details', 'bp-magic' ); ?></h4>
  8.  
  9. <?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?>
  10. <?php if ( bp_is_active( 'xprofile' ) ) : if ( bp_has_profile( 'profile_group_id=1' ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
  11.  
  12. <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
  13.  
  14. <div<?php bp_field_css_class( 'editfield' ); ?>>
  15. <?php
  16. $field_type = bp_xprofile_create_field_type( bp_get_the_profile_field_type() );
  17. $field_type->edit_field_html();
  18.  
  19. /**
  20. * Fires before the display of the visibility options for xprofile fields.
  21. *
  22. * @since BuddyPress (1.7.0)
  23. */
  24. do_action( 'bp_custom_profile_edit_fields_pre_visibility' );
  25. ?>
  26.  
  27. <?php if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?>
  28. <p class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
  29. <?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>
  30. </p>
  31.  
  32. <div class="field-visibility-settings" id="field-visibility-settings-<?php bp_the_profile_field_id() ?>">
  33. <fieldset>
  34. <legend><?php _e( 'Who can see this field?', 'bp-magic' ) ?></legend>
  35.  
  36. <?php bpmagic_profile_visibility_radio_buttons() ?>
  37.  
  38. </fieldset>
  39. <a class="field-visibility-settings-close" href="#"><?php _e( 'Close', 'bp-magic' ) ?></a>
  40.  
  41. </div>
  42. <?php else : ?>
  43. <p class="field-visibility-settings-notoggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
  44. <?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() ) ?>
  45. </p>
  46. <?php endif ?>
  47.  
  48.  
  49. <?php do_action( 'bp_custom_profile_edit_fields' ); ?>
  50.  
  51. </div>
  52.  
  53. <?php endwhile; ?>
  54.  
  55. <input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="<?php bp_the_profile_group_field_ids(); ?>" />
  56.  
  57. <?php
  58. endwhile;
  59. endif;
  60. endif;
  61. ?>
  62. <?php do_action( 'bp_after_signup_profile_fields' ); ?>
  63. </div><!-- #profile-details-section -->
  64.  
  65. <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement