[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-templates/bp-nouveau/buddypress/members/single/notifications/ -> notifications-loop.php (source)

   1  <?php
   2  /**
   3   * BuddyPress - Members Notifications Loop
   4   *
   5   * @since 3.0.0
   6   * @version 3.1.0
   7   */
   8  
   9  if ( bp_has_notifications( bp_ajax_querystring( 'notifications' ) ) ) :
  10  
  11      bp_nouveau_pagination( 'top' ); ?>
  12  
  13      <form action="" method="post" id="notifications-bulk-management" class="standard-form">
  14          <table class="notifications bp-tables-user">
  15              <thead>
  16                  <tr>
  17                      <th class="icon"></th>
  18                      <th class="bulk-select-all"><input id="select-all-notifications" type="checkbox"><label class="bp-screen-reader-text" for="select-all-notifications"><?php esc_html_e( 'Select all', 'buddypress' ); ?></label></th>
  19                      <th class="title"><?php esc_html_e( 'Notification', 'buddypress' ); ?></th>
  20                      <th class="date">
  21                          <?php esc_html_e( 'Date Received', 'buddypress' ); ?>
  22                          <?php bp_nouveau_notifications_sort_order_links(); ?>
  23                      </th>
  24                      <th class="actions"><?php esc_html_e( 'Actions', 'buddypress' ); ?></th>
  25                  </tr>
  26              </thead>
  27  
  28              <tbody>
  29  
  30                  <?php
  31                  while ( bp_the_notifications() ) :
  32                      bp_the_notification();
  33                  ?>
  34  
  35                      <tr>
  36                          <td></td>
  37                          <td class="bulk-select-check"><label for="<?php bp_the_notification_id(); ?>"><input id="<?php bp_the_notification_id(); ?>" type="checkbox" name="notifications[]" value="<?php bp_the_notification_id(); ?>" class="notification-check"><span class="bp-screen-reader-text"><?php esc_html_e( 'Select this notification', 'buddypress' ); ?></span></label></td>
  38                          <td class="notification-description"><?php bp_the_notification_description(); ?></td>
  39                          <td class="notification-since"><?php bp_the_notification_time_since(); ?></td>
  40                          <td class="notification-actions"><?php bp_the_notification_action_links(); ?></td>
  41                      </tr>
  42  
  43                  <?php endwhile; ?>
  44  
  45              </tbody>
  46          </table>
  47  
  48          <div class="notifications-options-nav">
  49              <?php bp_nouveau_notifications_bulk_management_dropdown(); ?>
  50          </div><!-- .notifications-options-nav -->
  51  
  52          <?php wp_nonce_field( 'notifications_bulk_nonce', 'notifications_bulk_nonce' ); ?>
  53      </form>
  54  
  55      <?php bp_nouveau_pagination( 'bottom' ); ?>
  56  
  57  <?php else : ?>
  58  
  59      <?php bp_nouveau_user_feedback( 'member-notifications-none' ); ?>
  60  
  61  <?php endif;


Generated: Thu Apr 25 01:01:12 2024 Cross-referenced by PHPXref 0.7.1