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

  1. <?php do_action( 'bp_before_notices_loop' ); ?> 
  2.  
  3. <?php if ( bp_has_message_threads() ) : ?> 
  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_notices_pagination' ); ?> 
  18. <?php do_action( 'bp_before_notices' ); ?> 
  19.  
  20. <table id="message-threads" class="messages-notices"> 
  21. <?php while ( bp_message_threads() ) : bp_message_thread(); ?> 
  22. <tr id="notice-<?php bp_message_notice_id(); ?>" class="<?php bp_message_css_class(); ?>"> 
  23. <td width="1%"></td> 
  24. <td width="38%"> 
  25. <strong><?php bp_message_notice_subject(); ?></strong> 
  26. <?php bp_message_notice_text(); ?> 
  27. </td> 
  28. <td width="21%"> 
  29.  
  30. <?php if ( bp_messages_is_active_notice() ) : ?> 
  31.  
  32. <strong><?php bp_messages_is_active_notice(); ?></strong> 
  33.  
  34. <?php endif; ?> 
  35.  
  36. <span class="activity"><?php _e( 'Sent:', 'buddypress' ); ?> <?php bp_message_notice_post_date(); ?></span> 
  37. </td> 
  38.  
  39. <?php do_action( 'bp_notices_list_item' ); ?> 
  40.  
  41. <td width="10%"> 
  42. <a class="button" href="<?php bp_message_activate_deactivate_link(); ?>" class="confirm"><?php bp_message_activate_deactivate_text(); ?></a> 
  43. <a class="button" href="<?php bp_message_notice_delete_link(); ?>" class="confirm" title="<?php esc_attr_e( "Delete Message", "buddypress" ); ?>">x</a> 
  44. </td> 
  45. </tr> 
  46. <?php endwhile; ?> 
  47. </table><!-- #message-threads --> 
  48.  
  49. <?php do_action( 'bp_after_notices' ); ?> 
  50.  
  51. <?php else: ?> 
  52.  
  53. <div id="message" class="info"> 
  54. <p><?php _e( 'Sorry, no notices were found.', 'buddypress' ); ?></p> 
  55. </div> 
  56.  
  57. <?php endif;?> 
  58.  
  59. <?php do_action( 'bp_after_notices_loop' ); ?> 
.