Skip to:
Content

BuddyPress.org

Changeset 7538


Ignore:
Timestamp:
11/09/2013 04:34:08 AM (11 years ago)
Author:
johnjamesjacoby
Message:

Clean up notifications template parts to better utilize notifications-loop.php. See #5148.

Location:
trunk/bp-templates/bp-legacy/buddypress/members/single/notifications
Files:
3 edited

Legend:

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

    r7526 r7538  
    1 <div class="notification-pagination">
    2     <?php bp_notifications_pagination_links() ?>
    3 </div>
     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>
    410
    5 <?php while ( bp_the_notifications() ) : bp_the_notification(); ?>
     11    <tbody>
    612
    7     <tr>
    8         <td></td>
    9         <td><?php bp_the_notification_description(); ?></td>
    10         <td><?php bp_the_notification_time_since(); ?></td>
    11         <td><?php bp_the_notification_action_links(); ?></td>
    12     </tr>
     13        <?php while ( bp_the_notifications() ) : bp_the_notification(); ?>
    1314
    14 <?php endwhile;
     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>
     21
     22        <?php endwhile; ?>
     23
     24    <tbody>
     25</table>
  • trunk/bp-templates/bp-legacy/buddypress/members/single/notifications/read.php

    r7526 r7538  
    1111    </div>
    1212
    13     <table class="notifications">
    14         <thead>
    15             <tr>
    16                 <th class="icon"></th>
    17                 <th class="title"><?php _e( 'Notification', 'buddypress' ) ?></th>
    18                 <th class="date"><?php _e( 'Date Received', 'buddypress' ) ?></th>
    19                 <th class="actions"><?php _e( 'Actions',    'buddypress' ); ?></th>
    20             </tr>
    21         </thead>
    22 
    23         <tbody>
    24             <?php bp_get_template_part( 'members/single/notifications/notifications-loop' ); ?>
    25         </tbody>
    26     </table>
     13    <?php bp_get_template_part( 'members/single/notifications/notifications-loop' ); ?>
    2714
    2815    <div id="pag-bottom" class="pagination no-ajax">
  • trunk/bp-templates/bp-legacy/buddypress/members/single/notifications/unread.php

    r7526 r7538  
    1111    </div>
    1212
    13     <table class="notifications">
    14         <thead>
    15             <tr>
    16                 <th class="icon"></th>
    17                 <th class="title"><?php _e( 'Notification', 'buddypress' ); ?></th>
    18                 <th class="date"><?php _e( 'Date Received', 'buddypress' ); ?></th>
    19                 <th class="actions"><?php _e( 'Actions',    'buddypress' ); ?></th>
    20             </tr>
    21         </thead>
    22 
    23         <tbody>
    24             <?php bp_get_template_part( 'members/single/notifications/notifications-loop' ); ?>
    25         </tbody>
    26     </table>
     13    <?php bp_get_template_part( 'members/single/notifications/notifications-loop' ); ?>
    2714
    2815    <div id="pag-bottom" class="pagination no-ajax">
Note: See TracChangeset for help on using the changeset viewer.