/bp-templates/bp-legacy/buddypress/members/single/messages/notices-loop.php

  1. <?php 
  2. /** 
  3. * BuddyPress - Members Single Messages Notice Loop 
  4. * 
  5. * @package BuddyPress 
  6. * @subpackage bp-legacy 
  7. */ 
  8.  
  9. /** 
  10. * Fires before the members notices loop. 
  11. * 
  12. * @since 1.2.0 
  13. */ 
  14. do_action( 'bp_before_notices_loop' ); ?> 
  15.  
  16. <?php if ( bp_has_message_threads() ) : ?> 
  17.  
  18. <div class="pagination no-ajax" id="user-pag"> 
  19.  
  20. <div class="pag-count" id="messages-dir-count"> 
  21. <?php bp_messages_pagination_count(); ?> 
  22. </div> 
  23.  
  24. <div class="pagination-links" id="messages-dir-pag"> 
  25. <?php bp_messages_pagination(); ?> 
  26. </div> 
  27.  
  28. </div><!-- .pagination --> 
  29.  
  30. <?php 
  31.  
  32. /** 
  33. * Fires after the members notices pagination display. 
  34. * 
  35. * @since 1.2.0 
  36. */ 
  37. do_action( 'bp_after_notices_pagination' ); ?> 
  38. <?php 
  39.  
  40. /** 
  41. * Fires before the members notice items. 
  42. * 
  43. * @since 1.2.0 
  44. */ 
  45. do_action( 'bp_before_notices' ); ?> 
  46.  
  47. <table id="message-threads" class="messages-notices sitewide-notices"> 
  48. <?php while ( bp_message_threads() ) : bp_message_thread(); ?> 
  49. <tr id="notice-<?php bp_message_notice_id(); ?>" class="<?php bp_message_css_class(); ?>"> 
  50. <td width="1%"></td> 
  51. <td width="38%"> 
  52. <strong><?php bp_message_notice_subject(); ?></strong> 
  53. <?php bp_message_notice_text(); ?> 
  54. </td> 
  55. <td width="21%"> 
  56.  
  57. <?php if ( bp_messages_is_active_notice() ) : ?> 
  58.  
  59. <strong><?php bp_messages_is_active_notice(); ?></strong> 
  60.  
  61. <?php endif; ?> 
  62.  
  63. <span class="activity"><?php _e( 'Sent:', 'buddypress' ); ?> <?php bp_message_notice_post_date(); ?></span> 
  64. </td> 
  65.  
  66. <?php 
  67.  
  68. /** 
  69. * Fires inside the display of a member notice list item. 
  70. * 
  71. * @since 1.2.0 
  72. */ 
  73. do_action( 'bp_notices_list_item' ); ?> 
  74.  
  75. <td width="10%"> 
  76. <a class="button" href="<?php bp_message_activate_deactivate_link(); ?>" class="confirm"><?php bp_message_activate_deactivate_text(); ?></a> 
  77. <a class="button" href="<?php bp_message_notice_delete_link(); ?>" class="confirm" title="<?php esc_attr_e( "Delete Message", 'buddypress' ); ?>">x</a> 
  78. </td> 
  79. </tr> 
  80. <?php endwhile; ?> 
  81. </table><!-- #message-threads --> 
  82.  
  83. <?php 
  84.  
  85. /** 
  86. * Fires after the members notice items. 
  87. * 
  88. * @since 1.2.0 
  89. */ 
  90. do_action( 'bp_after_notices' ); ?> 
  91.  
  92. <?php else: ?> 
  93.  
  94. <div id="message" class="info"> 
  95. <p><?php _e( 'Sorry, no notices were found.', 'buddypress' ); ?></p> 
  96. </div> 
  97.  
  98. <?php endif;?> 
  99.  
  100. <?php 
  101.  
  102. /** 
  103. * Fires after the members notices loop. 
  104. * 
  105. * @since 1.2.0 
  106. */ 
  107. do_action( 'bp_after_notices_loop' ); ?> 
.