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

  1. <?php do_action( 'bp_before_member_messages_loop' ); ?> 
  2.  
  3. <?php if ( bp_has_message_threads( bp_ajax_querystring( 'messages' ) ) ) : ?> 
  4.  
  5. <div class="pagination no-ajax" id="user-pag"> 
  6.  
  7. <div class="pag-count" id="messages-dir-count"> 
  8. <?php bp_messages_pagination_count(); ?> 
  9. </div> 
  10.  
  11. <div class="pagination-links" id="messages-dir-pag"> 
  12. <?php bp_messages_pagination(); ?> 
  13. </div> 
  14.  
  15. </div><!-- .pagination --> 
  16.  
  17. <?php do_action( 'bp_after_member_messages_pagination' ); ?> 
  18.  
  19. <?php do_action( 'bp_before_member_messages_threads' ); ?> 
  20.  
  21. <table id="message-threads" class="messages-notices"> 
  22. <?php while ( bp_message_threads() ) : bp_message_thread(); ?> 
  23.  
  24. <tr id="m-<?php bp_message_thread_id(); ?>" class="<?php bp_message_css_class(); ?><?php if ( bp_message_thread_has_unread() ) : ?> unread<?php else: ?> read<?php endif; ?>"> 
  25. <td width="1%" class="thread-count"> 
  26. <span class="unread-count"><?php bp_message_thread_unread_count(); ?></span> 
  27. </td> 
  28. <td width="1%" class="thread-avatar"><?php bp_message_thread_avatar(); ?></td> 
  29.  
  30. <?php if ( 'sentbox' != bp_current_action() ) : ?> 
  31. <td width="30%" class="thread-from"> 
  32. <?php _e( 'From:', 'buddypress' ); ?> <?php bp_message_thread_from(); ?><br /> 
  33. <span class="activity"><?php bp_message_thread_last_post_date(); ?></span> 
  34. </td> 
  35. <?php else: ?> 
  36. <td width="30%" class="thread-from"> 
  37. <?php _e( 'To:', 'buddypress' ); ?> <?php bp_message_thread_to(); ?><br /> 
  38. <span class="activity"><?php bp_message_thread_last_post_date(); ?></span> 
  39. </td> 
  40. <?php endif; ?> 
  41.  
  42. <td width="50%" class="thread-info"> 
  43. <p><a href="<?php bp_message_thread_view_link(); ?>" title="<?php esc_attr_e( "View Message", "buddypress" ); ?>"><?php bp_message_thread_subject(); ?></a></p> 
  44. <p class="thread-excerpt"><?php bp_message_thread_excerpt(); ?></p> 
  45. </td> 
  46.  
  47. <?php do_action( 'bp_messages_inbox_list_item' ); ?> 
  48.  
  49. <td width="13%" class="thread-options"> 
  50. <input type="checkbox" name="message_ids[]" value="<?php bp_message_thread_id(); ?>" /> 
  51. <a class="button confirm" href="<?php bp_message_thread_delete_link(); ?>" title="<?php esc_attr_e( "Delete Message", "buddypress" ); ?>"><?php _e( 'Delete', 'buddypress' ); ?></a>   
  52. </td> 
  53. </tr> 
  54.  
  55. <?php endwhile; ?> 
  56. </table><!-- #message-threads --> 
  57.  
  58. <div class="messages-options-nav"> 
  59. <?php bp_messages_options(); ?> 
  60. </div><!-- .messages-options-nav --> 
  61.  
  62. <?php do_action( 'bp_after_member_messages_threads' ); ?> 
  63.  
  64. <?php do_action( 'bp_after_member_messages_options' ); ?> 
  65.  
  66. <?php else: ?> 
  67.  
  68. <div id="message" class="info"> 
  69. <p><?php _e( 'Sorry, no messages were found.', 'buddypress' ); ?></p> 
  70. </div> 
  71.  
  72. <?php endif;?> 
  73.  
  74. <?php do_action( 'bp_after_member_messages_loop' ); ?> 
.