/bp-themes/bp-default/members/single/messages/single.php

  1. <div id="message-thread" role="main"> 
  2.  
  3. <?php do_action( 'bp_before_message_thread_content' ); ?> 
  4.  
  5. <?php if ( bp_thread_has_messages() ) : ?> 
  6.  
  7. <h3 id="message-subject"><?php bp_the_thread_subject(); ?></h3> 
  8.  
  9. <p id="message-recipients"> 
  10. <span class="highlight"> 
  11.  
  12. <?php if ( !bp_get_the_thread_recipients() ) : ?> 
  13.  
  14. <?php _e( 'You are alone in this conversation.', 'buddypress' ); ?> 
  15.  
  16. <?php else : ?> 
  17.  
  18. <?php printf( __( 'Conversation between %s and you.', 'buddypress' ), bp_get_the_thread_recipients() ); ?> 
  19.  
  20. <?php endif; ?> 
  21.  
  22. </span> 
  23.  
  24. <a class="button confirm" href="<?php bp_the_thread_delete_link(); ?>" title="<?php esc_attr_e( "Delete Message", "buddypress" ); ?>"><?php _e( 'Delete', 'buddypress' ); ?></a>   
  25. </p> 
  26.  
  27. <?php do_action( 'bp_before_message_thread_list' ); ?> 
  28.  
  29. <?php while ( bp_thread_messages() ) : bp_thread_the_message(); ?> 
  30.  
  31. <div class="message-box <?php bp_the_thread_message_alt_class(); ?>"> 
  32.  
  33. <div class="message-metadata"> 
  34.  
  35. <?php do_action( 'bp_before_message_meta' ); ?> 
  36.  
  37. <?php bp_the_thread_message_sender_avatar( 'type=thumb&width=30&height=30' ); ?> 
  38. <strong><a href="<?php bp_the_thread_message_sender_link(); ?>" title="<?php bp_the_thread_message_sender_name(); ?>"><?php bp_the_thread_message_sender_name(); ?></a> <span class="activity"><?php bp_the_thread_message_time_since(); ?></span></strong> 
  39.  
  40. <?php do_action( 'bp_after_message_meta' ); ?> 
  41.  
  42. </div><!-- .message-metadata --> 
  43.  
  44. <?php do_action( 'bp_before_message_content' ); ?> 
  45.  
  46. <div class="message-content"> 
  47.  
  48. <?php bp_the_thread_message_content(); ?> 
  49.  
  50. </div><!-- .message-content --> 
  51.  
  52. <?php do_action( 'bp_after_message_content' ); ?> 
  53.  
  54. <div class="clear"></div> 
  55.  
  56. </div><!-- .message-box --> 
  57.  
  58. <?php endwhile; ?> 
  59.  
  60. <?php do_action( 'bp_after_message_thread_list' ); ?> 
  61.  
  62. <?php do_action( 'bp_before_message_thread_reply' ); ?> 
  63.  
  64. <form id="send-reply" action="<?php bp_messages_form_action(); ?>" method="post" class="standard-form"> 
  65.  
  66. <div class="message-box"> 
  67.  
  68. <div class="message-metadata"> 
  69.  
  70. <?php do_action( 'bp_before_message_meta' ); ?> 
  71.  
  72. <div class="avatar-box"> 
  73. <?php bp_loggedin_user_avatar( 'type=thumb&height=30&width=30' ); ?> 
  74.  
  75. <strong><?php _e( 'Send a Reply', 'buddypress' ); ?></strong> 
  76. </div> 
  77.  
  78. <?php do_action( 'bp_after_message_meta' ); ?> 
  79.  
  80. </div><!-- .message-metadata --> 
  81.  
  82. <div class="message-content"> 
  83.  
  84. <?php do_action( 'bp_before_message_reply_box' ); ?> 
  85.  
  86. <textarea name="content" id="message_content" rows="15" cols="40"></textarea> 
  87.  
  88. <?php do_action( 'bp_after_message_reply_box' ); ?> 
  89.  
  90. <div class="submit"> 
  91. <input type="submit" name="send" value="<?php esc_attr_e( 'Send Reply', 'buddypress' ); ?>" id="send_reply_button"/> 
  92. </div> 
  93.  
  94. <input type="hidden" id="thread_id" name="thread_id" value="<?php bp_the_thread_id(); ?>" /> 
  95. <input type="hidden" id="messages_order" name="messages_order" value="<?php bp_thread_messages_order(); ?>" /> 
  96. <?php wp_nonce_field( 'messages_send_message', 'send_message_nonce' ); ?> 
  97.  
  98. </div><!-- .message-content --> 
  99.  
  100. </div><!-- .message-box --> 
  101.  
  102. </form><!-- #send-reply --> 
  103.  
  104. <?php do_action( 'bp_after_message_thread_reply' ); ?> 
  105.  
  106. <?php endif; ?> 
  107.  
  108. <?php do_action( 'bp_after_message_thread_content' ); ?> 
  109.  
  110. </div> 
.