/bp-themes/bp-default/members/single/settings/profile.php

  1. <?php 
  2.  
  3. /** 
  4. * BuddyPress Member Settings 
  5. * 
  6. * @package BuddyPress 
  7. * @subpackage bp-default 
  8. */ 
  9.  
  10. get_header( 'buddypress' ); ?> 
  11.  
  12. <div id="content"> 
  13. <div class="padder"> 
  14.  
  15. <?php do_action( 'bp_before_member_settings_template' ); ?> 
  16.  
  17. <div id="item-header"> 
  18.  
  19. <?php locate_template( array( 'members/single/member-header.php' ), true ); ?> 
  20.  
  21. </div><!-- #item-header --> 
  22.  
  23. <div id="item-nav"> 
  24. <div class="item-list-tabs no-ajax" id="object-nav" role="navigation"> 
  25. <ul> 
  26.  
  27. <?php bp_get_displayed_user_nav(); ?> 
  28.  
  29. <?php do_action( 'bp_member_options_nav' ); ?> 
  30.  
  31. </ul> 
  32. </div> 
  33. </div><!-- #item-nav --> 
  34.  
  35. <div id="item-body" role="main"> 
  36.  
  37. <?php do_action( 'bp_before_member_body' ); ?> 
  38.  
  39. <div class="item-list-tabs no-ajax" id="subnav"> 
  40. <ul> 
  41.  
  42. <?php bp_get_options_nav(); ?> 
  43.  
  44. <?php do_action( 'bp_member_plugin_options_nav' ); ?> 
  45.  
  46. </ul> 
  47. </div><!-- .item-list-tabs --> 
  48.  
  49. <h3><?php _e( 'Profile Settings', 'buddypress' ); ?></h3> 
  50.  
  51. <?php do_action( 'bp_template_content' ); ?> 
  52.  
  53. <form action="<?php echo trailingslashit( bp_displayed_user_domain() . bp_get_settings_slug() . '/profile' ); ?>" method="post" class="standard-form" id="settings-form"> 
  54.  
  55. <?php if ( bp_xprofile_get_settings_fields() ) : ?> 
  56.  
  57. <?php while ( bp_profile_groups() ) : bp_the_profile_group(); ?> 
  58.  
  59. <?php if ( bp_profile_fields() ) : ?> 
  60.  
  61. <table class="profile-settings" id="xprofile-settings-<?php bp_the_profile_group_slug(); ?>"> 
  62. <thead> 
  63. <tr> 
  64. <th class="title field-group-name"><?php bp_the_profile_group_name(); ?></th> 
  65. <th class="title"><?php _e( 'Visibility', 'buddypress' ); ?></th> 
  66. </tr> 
  67. </thead> 
  68.  
  69. <tbody> 
  70.  
  71. <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?> 
  72.  
  73. <tr <?php bp_field_css_class(); ?>> 
  74. <td class="field-name"><?php bp_the_profile_field_name(); ?></td> 
  75. <td class="field-visibility"><?php bp_profile_settings_visibility_select(); ?></td> 
  76. </tr> 
  77.  
  78. <?php endwhile; ?> 
  79.  
  80. </tbody> 
  81. </table> 
  82.  
  83. <?php endif; ?> 
  84.  
  85. <?php endwhile; ?> 
  86.  
  87. <?php endif; ?> 
  88.  
  89. <?php do_action( 'bp_core_xprofile_settings_before_submit' ); ?> 
  90.  
  91. <div class="submit"> 
  92. <input id="submit" type="submit" name="xprofile-settings-submit" value="<?php esc_attr_e( 'Save Settings', 'buddypress' ); ?>" class="auto" /> 
  93. </div> 
  94.  
  95. <?php do_action( 'bp_core_xprofile_settings_after_submit' ); ?> 
  96.  
  97. <?php wp_nonce_field( 'bp_xprofile_settings' ); ?> 
  98.  
  99. <input type="hidden" name="field_ids" id="field_ids" value="<?php bp_the_profile_group_field_ids(); ?>" /> 
  100.  
  101. </form> 
  102.  
  103. </div><!-- #item-body --> 
  104.  
  105. <?php do_action( 'bp_after_member_settings_template' ); ?> 
  106.  
  107. </div><!-- .padder --> 
  108. </div><!-- #content --> 
  109.  
  110. <?php get_sidebar( 'buddypress' ); ?> 
  111.  
  112. <?php get_footer( 'buddypress' ); ?> 
.