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

  1. <?php 
  2.  
  3. /** 
  4. * BuddyPress Delete Account 
  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( 'Capabilities', 'buddypress' ); ?></h3> 
  50.  
  51. <form action="<?php echo bp_displayed_user_domain() . bp_get_settings_slug() . '/capabilities/'; ?>" name="account-capabilities-form" id="account-capabilities-form" class="standard-form" method="post"> 
  52.  
  53. <?php do_action( 'bp_members_capabilities_account_before_submit' ); ?> 
  54.  
  55. <label> 
  56. <input type="checkbox" name="user-spammer" id="user-spammer" value="1" <?php checked( bp_is_user_spammer( bp_displayed_user_id() ) ); ?> /> 
  57. <?php _e( 'This user is a spammer.', 'buddypress' ); ?> 
  58. </label> 
  59.  
  60. <div class="submit"> 
  61. <input type="submit" value="<?php esc_attr_e( 'Save', 'buddypress' ); ?>" id="capabilities-submit" name="capabilities-submit" /> 
  62. </div> 
  63.  
  64. <?php do_action( 'bp_members_capabilities_account_after_submit' ); ?> 
  65.  
  66. <?php wp_nonce_field( 'capabilities' ); ?> 
  67.  
  68. </form> 
  69.  
  70. <?php do_action( 'bp_after_member_body' ); ?> 
  71.  
  72. </div><!-- #item-body --> 
  73.  
  74. <?php do_action( 'bp_after_member_settings_template' ); ?> 
  75.  
  76. </div><!-- .padder --> 
  77. </div><!-- #content --> 
  78.  
  79. <?php get_sidebar( 'buddypress' ); ?> 
  80.  
  81. <?php get_footer( 'buddypress' ); ?> 
.