/bp-templates/bp-legacy/buddypress/members/single/messages/compose.php

  1. <?php 
  2. /** 
  3. * BuddyPress - Members Single Messages Compose 
  4. * 
  5. * @package BuddyPress 
  6. * @subpackage bp-legacy 
  7. */ 
  8.  
  9. ?> 
  10. <h2 class="bp-screen-reader-text"><?php 
  11. /** translators: accessibility text */ 
  12. _e( 'Compose Message', 'buddypress' ); 
  13. ?></h2> 
  14.  
  15. <form action="<?php bp_messages_form_action('compose' ); ?>" method="post" id="send_message_form" class="standard-form" enctype="multipart/form-data"> 
  16.  
  17. <?php 
  18.  
  19. /** 
  20. * Fires before the display of message compose content. 
  21. * 
  22. * @since 1.1.0 
  23. */ 
  24. do_action( 'bp_before_messages_compose_content' ); ?> 
  25.  
  26. <label for="send-to-input"><?php _e("Send To (Username or Friend's Name)", 'buddypress' ); ?></label> 
  27. <ul class="first acfb-holder"> 
  28. <li> 
  29. <?php bp_message_get_recipient_tabs(); ?> 
  30. <input type="text" name="send-to-input" class="send-to-input" id="send-to-input" /> 
  31. </li> 
  32. </ul> 
  33.  
  34. <?php if ( bp_current_user_can( 'bp_moderate' ) ) : ?> 
  35. <p><label for="send-notice"><input type="checkbox" id="send-notice" name="send-notice" value="1" /> <?php _e( "This is a notice to all users.", 'buddypress' ); ?></label></p> 
  36. <?php endif; ?> 
  37.  
  38. <label for="subject"><?php _e( 'Subject', 'buddypress' ); ?></label> 
  39. <input type="text" name="subject" id="subject" value="<?php bp_messages_subject_value(); ?>" /> 
  40.  
  41. <label for="message_content"><?php _e( 'Message', 'buddypress' ); ?></label> 
  42. <textarea name="content" id="message_content" rows="15" cols="40"><?php bp_messages_content_value(); ?></textarea> 
  43.  
  44. <input type="hidden" name="send_to_usernames" id="send-to-usernames" value="<?php bp_message_get_recipient_usernames(); ?>" class="<?php bp_message_get_recipient_usernames(); ?>" /> 
  45.  
  46. <?php 
  47.  
  48. /** 
  49. * Fires after the display of message compose content. 
  50. * 
  51. * @since 1.1.0 
  52. */ 
  53. do_action( 'bp_after_messages_compose_content' ); ?> 
  54.  
  55. <div class="submit"> 
  56. <input type="submit" value="<?php esc_attr_e( "Send Message", 'buddypress' ); ?>" name="send" id="send" /> 
  57. </div> 
  58.  
  59. <?php wp_nonce_field( 'messages_send_message' ); ?> 
  60. </form> 
  61.  
  62. <script type="text/javascript"> 
  63. document.getElementById("send-to-input").focus(); 
  64. </script> 
.