/bp-templates/bp-legacy/buddypress/groups/single/admin/delete-group.php

  1. <?php 
  2. /** 
  3. * BuddyPress - Groups Admin - Delete Group 
  4. * 
  5. * @package BuddyPress 
  6. * @subpackage bp-legacy 
  7. */ 
  8.  
  9. ?> 
  10.  
  11. <h2 class="bp-screen-reader-text"><?php _e( 'Delete Group', 'buddypress' ); ?></h2> 
  12.  
  13. <?php 
  14.  
  15. /** 
  16. * Fires before the display of group delete admin. 
  17. * 
  18. * @since 1.1.0 
  19. */ 
  20. do_action( 'bp_before_group_delete_admin' ); ?> 
  21.  
  22. <div id="message" class="info"> 
  23. <p><?php _e( 'WARNING: Deleting this group will completely remove ALL content associated with it. There is no way back, please be careful with this option.', 'buddypress' ); ?></p> 
  24. </div> 
  25.  
  26. <label for="delete-group-understand"><input type="checkbox" name="delete-group-understand" id="delete-group-understand" value="1" onclick="if(this.checked) { document.getElementById('delete-group-button').disabled = ''; } else { document.getElementById('delete-group-button').disabled = 'disabled'; }" /> <?php _e( 'I understand the consequences of deleting this group.', 'buddypress' ); ?></label> 
  27.  
  28. <?php 
  29.  
  30. /** 
  31. * Fires after the display of group delete admin. 
  32. * 
  33. * @since 1.1.0 
  34. */ 
  35. do_action( 'bp_after_group_delete_admin' ); ?> 
  36.  
  37. <div class="submit"> 
  38. <input type="submit" disabled="disabled" value="<?php esc_attr_e( 'Delete Group', 'buddypress' ); ?>" id="delete-group-button" name="delete-group-button" /> 
  39. </div> 
  40.  
  41. <?php wp_nonce_field( 'groups_delete_group' ); ?> 
.