Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/11/2014 01:53:34 AM (12 years ago)
Author:
boonebgorges
Message:

Add bulk management for notifications.

Props colabsadmin, lakrisgubben.
Fixes #5513.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/notifications/notifications-loop.php

    r8958 r9132  
    1 <table class="notifications">
    2         <thead>
    3                 <tr>
    4                         <th class="icon"></th>
    5                         <th class="title"><?php _e( 'Notification', 'buddypress' ); ?></th>
    6                         <th class="date"><?php _e( 'Date Received', 'buddypress' ); ?></th>
    7                         <th class="actions"><?php _e( 'Actions',    'buddypress' ); ?></th>
    8                 </tr>
    9         </thead>
     1<form action="" method="post" id="notifications-bulk-management">
     2        <table class="notifications">
     3                <thead>
     4                        <tr>
     5                                <th class="icon"></th>
     6                                <th><label for="select-all-notifications"><?php _e( 'Select all', 'buddypress' ); ?></label><input id="select-all-notifications" type="checkbox"></th>
     7                                <th class="title"><?php _e( 'Notification', 'buddypress' ); ?></th>
     8                                <th class="date"><?php _e( 'Date Received', 'buddypress' ); ?></th>
     9                                <th class="actions"><?php _e( 'Actions',    'buddypress' ); ?></th>
     10                        </tr>
     11                </thead>
    1012
    11         <tbody>
     13                <tbody>
    1214
    13                 <?php while ( bp_the_notifications() ) : bp_the_notification(); ?>
     15                        <?php while ( bp_the_notifications() ) : bp_the_notification(); ?>
    1416
    15                         <tr>
    16                                 <td></td>
    17                                 <td><?php bp_the_notification_description();  ?></td>
    18                                 <td><?php bp_the_notification_time_since();   ?></td>
    19                                 <td><?php bp_the_notification_action_links(); ?></td>
    20                         </tr>
     17                                <tr>
     18                                        <td></td>
     19                                        <td><input id="<?php bp_the_notification_id(); ?>" type="checkbox" name="notifications[]" value="<?php bp_the_notification_id(); ?>" class="notification-check"></td>
     20                                        <td><?php bp_the_notification_description();  ?></td>
     21                                        <td><?php bp_the_notification_time_since();   ?></td>
     22                                        <td><?php bp_the_notification_action_links(); ?></td>
     23                                </tr>
    2124
    22                 <?php endwhile; ?>
     25                        <?php endwhile; ?>
    2326
    24         </tbody>
    25 </table>
     27                </tbody>
     28        </table>
     29
     30        <div class="notifications-options-nav">
     31                <?php bp_notifications_bulk_management_dropdown(); ?>
     32        </div><!-- .notifications-options-nav -->
     33
     34        <?php wp_nonce_field( 'notifications_bulk_nonce', 'notifications_bulk_nonce' ); ?>
     35</form>
Note: See TracChangeset for help on using the changeset viewer.