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/friends.php

    r11128 r11129  
    5353        do_action( 'bp_before_member_friends_content' ); ?>
    5454
     55        <?php if (is_user_logged_in() ) : ?>
     56            <h2 class="bp-screen-reader-text"><?php _e( 'My friends', 'buddypress' ); ?></h2>
     57        <?php else : ?>
     58            <h2 class="bp-screen-reader-text"><?php _e( 'Friends', 'buddypress' ); ?></h2>
     59        <?php endif ?>
     60
    5561        <div class="members friends">
    5662
Note: See TracChangeset for help on using the changeset viewer.