Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/21/2016 08:49:01 AM (8 years ago)
Author:
mercime
Message:

Accessibility: Add headings for screen readers in template files.

See #7216.

File:
1 edited

Legend:

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

    r11128 r11129  
    3838        do_action( 'bp_before_member_messages_content' ); ?>
    3939
     40        <?php if ( bp_is_messages_inbox() ) : ?>
     41            <h2 class="bp-screen-reader-text"><?php _e( 'Messages inbox', 'buddypress' ); ?></h2>
     42        <?php elseif ( bp_is_messages_sentbox() ) : ?>
     43            <h2 class="bp-screen-reader-text"><?php _e( 'Sent Messages', 'buddypress' ); ?></h2>
     44        <?php endif; ?>
     45
    4046        <div class="messages">
    4147            <?php bp_get_template_part( 'members/single/messages/messages-loop' ); ?>
     
    7278        do_action( 'bp_before_member_messages_content' ); ?>
    7379
     80        <h2 class="bp-screen-reader-text"><?php _e( 'Sitewide Notices', 'buddypress' ); ?></h2>
     81
    7482        <div class="messages">
    7583            <?php bp_get_template_part( 'members/single/messages/notices-loop' ); ?>
Note: See TracChangeset for help on using the changeset viewer.