[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-templates/bp-legacy/buddypress/members/single/messages/ -> notices-loop.php (source)

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


Generated: Fri Apr 26 01:01:11 2024 Cross-referenced by PHPXref 0.7.1