Skip to:
Content

BuddyPress.org

Ticket #7216: 7216-friends.patch

File 7216-friends.patch, 1.4 KB (added by mercime, 8 years ago)

Screen reader headings for friends screens

  • src/bp-templates/bp-legacy/buddypress/members/single/friends.php

     
    5252                 */
    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
    5763                        <?php bp_get_template_part( 'members/members-loop' ) ?>
  • src/bp-templates/bp-legacy/buddypress/members/single/friends/requests.php

     
    1515
    1616<?php if ( bp_has_members( 'type=alphabetical&include=' . bp_get_friendship_requests() ) ) : ?>
    1717
     18        <h2 class="bp-screen-reader-text"><?php _e( 'Friendship requests', 'buddypress' ); ?></h2>
     19
    1820        <div id="pag-top" class="pagination no-ajax">
    1921
    2022                <div class="pag-count" id="member-dir-count-top">