Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/29/2024 06:50:42 PM (20 months ago)
Author:
imath
Message:

BP Legacy: improve PHP code standards using WPCS

See #7228 (trunk)

File:
1 edited

Legend:

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

    r12082 r13822  
    1414            <tr>
    1515                <th class="icon"></th>
    16                 <th class="bulk-select-all"><input id="select-all-notifications" type="checkbox"><label class="bp-screen-reader-text" for="select-all-notifications"><?php
    17                     /* translators: accessibility text */
    18                     _e( 'Select all', 'buddypress' );
    19                 ?></label></th>
    20                 <th class="title"><?php _e( 'Notification', 'buddypress' ); ?></th>
    21                 <th class="date"><?php _e( 'Date Received', 'buddypress' ); ?></th>
    22                 <th class="actions"><?php _e( 'Actions',    'buddypress' ); ?></th>
     16                <th class="bulk-select-all"><input id="select-all-notifications" type="checkbox">
     17                    <label class="bp-screen-reader-text" for="select-all-notifications">
     18                        <?php
     19                            /* translators: accessibility text */
     20                            esc_html_e( 'Select all', 'buddypress' );
     21                        ?>
     22                    </label>
     23                </th>
     24                <th class="title"><?php esc_html_e( 'Notification', 'buddypress' ); ?></th>
     25                <th class="date"><?php esc_html_e( 'Date Received', 'buddypress' ); ?></th>
     26                <th class="actions"><?php esc_html_e( 'Actions', 'buddypress' ); ?></th>
    2327            </tr>
    2428        </thead>
     
    3034                <tr>
    3135                    <td></td>
    32                     <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
    33                         /* translators: accessibility text */
    34                         _e( 'Select this notification', 'buddypress' );
    35                     ?></span></label></td>
    36                     <td class="notification-description"><?php bp_the_notification_description();  ?></td>
    37                     <td class="notification-since"><?php bp_the_notification_time_since();   ?></td>
     36                    <td class="bulk-select-check">
     37                        <label for="<?php bp_the_notification_id(); ?>">
     38                            <input id="<?php bp_the_notification_id(); ?>" type="checkbox" name="notifications[]" value="<?php bp_the_notification_id(); ?>" class="notification-check">
     39                            <span class="bp-screen-reader-text">
     40                                <?php
     41                                    /* translators: accessibility text */
     42                                    esc_html_e( 'Select this notification', 'buddypress' );
     43                                ?>
     44                            </span>
     45                        </label>
     46                    </td>
     47                    <td class="notification-description"><?php bp_the_notification_description(); ?></td>
     48                    <td class="notification-since"><?php bp_the_notification_time_since(); ?></td>
    3849                    <td class="notification-actions"><?php bp_the_notification_action_links(); ?></td>
    3950                </tr>
Note: See TracChangeset for help on using the changeset viewer.