Skip to:
Content

BuddyPress.org

Changeset 11129


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

Accessibility: Add headings for screen readers in template files.

See #7216.

Location:
trunk/src
Files:
18 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/bp-groups-template.php

    r11128 r11129  
    42914291    </div>
    42924292
     4293    <h2 class="bp-screen-reader-text"><?php _e( 'Members', 'buddypress' ); ?></h2>
     4294
    42934295    <div id="members-group-list" class="group_members dir-list">
    42944296
  • trunk/src/bp-templates/bp-legacy/buddypress/blogs/index.php

    r11128 r11129  
    114114        </div>
    115115
     116        <h2 class="bp-screen-reader-text"><?php _e( 'Sites directory', 'buddypress' ); ?></h2>
     117
    116118        <div id="blogs-dir-list" class="blogs dir-list">
    117119
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/create.php

    r11128 r11129  
    5454            <?php if ( bp_is_group_creation_step( 'group-details' ) ) : ?>
    5555
     56                <h2 class="bp-screen-reader-text"><?php _e( 'Group Details', 'buddypress' ); ?></h2>
     57
    5658                <?php
    5759
     
    8991            <?php /* Group creation step 2: Group settings */ ?>
    9092            <?php if ( bp_is_group_creation_step( 'group-settings' ) ) : ?>
     93
     94                <h2 class="bp-screen-reader-text"><?php _e( 'Group Settings', 'buddypress' ); ?></h2>
    9195
    9296                <?php
     
    185189            <?php /* Group creation step 3: Avatar Uploads */ ?>
    186190            <?php if ( bp_is_group_creation_step( 'group-avatar' ) ) : ?>
     191
     192                <h2 class="bp-screen-reader-text"><?php _e( 'Group Avatar', 'buddypress' ); ?></h2>
    187193
    188194                <?php
     
    266272            <?php if ( bp_is_group_creation_step( 'group-cover-image' ) ) : ?>
    267273
     274                <h2 class="bp-screen-reader-text"><?php _e( 'Cover Image', 'buddypress' ); ?></h2>
     275
    268276                <?php
    269277
     
    296304            <?php /* Group creation step 5: Invite friends to group */ ?>
    297305            <?php if ( bp_is_group_creation_step( 'group-invites' ) ) : ?>
     306
     307                <h2 class="bp-screen-reader-text"><?php _e( 'Group Invites', 'buddypress' ); ?></h2>
    298308
    299309                <?php
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/index.php

    r11128 r11129  
    108108        </div>
    109109
     110        <h2 class="bp-screen-reader-text"><?php _e( 'Groups directory', 'buddypress' ); ?></h2>
     111
    110112        <div id="groups-dir-list" class="groups dir-list">
    111113            <?php bp_get_template_part( 'groups/groups-loop' ); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/single/request-membership.php

    r10562 r11129  
    1515
    1616<?php if ( !bp_group_has_requested_membership() ) : ?>
     17    <h2 class="bp-screen-reader-text"><?php _e( 'Request form', 'buddypress' ); ?></h2>
     18
    1719    <p><?php printf( __( "You are requesting to become a member of the group '%s'.", 'buddypress' ), bp_get_group_name( false ) ); ?></p>
    1820
  • trunk/src/bp-templates/bp-legacy/buddypress/members/index.php

    r11128 r11129  
    110110        </div>
    111111
     112        <h2 class="bp-screen-reader-text"><?php _e( 'Members directory', 'buddypress' ); ?></h2>
     113
    112114        <div id="members-dir-list" class="members dir-list">
    113115            <?php bp_get_template_part( 'members/members-loop' ); ?>
  • 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
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/friends/requests.php

    r10241 r11129  
    1515
    1616<?php if ( bp_has_members( 'type=alphabetical&include=' . bp_get_friendship_requests() ) ) : ?>
     17
     18    <h2 class="bp-screen-reader-text"><?php _e( 'Friendship requests', 'buddypress' ); ?></h2>
    1719
    1820    <div id="pag-top" class="pagination no-ajax">
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/groups.php

    r11128 r11129  
    5555        do_action( 'bp_before_member_groups_content' ); ?>
    5656
     57        <?php if ( is_user_logged_in() ) : ?>
     58            <h2 class="bp-screen-reader-text"><?php _e( 'My groups', 'buddypress' ); ?></h2>
     59        <?php else : ?>
     60            <h2 class="bp-screen-reader-text"><?php _e( 'Member\'s groups', 'buddypress' ); ?></h2>
     61        <?php endif; ?>
     62
    5763        <div class="groups mygroups">
    5864
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/groups/invites.php

    r10181 r11129  
    1515
    1616<?php if ( bp_has_groups( 'type=invites&user_id=' . bp_loggedin_user_id() ) ) : ?>
     17
     18    <h2 class="bp-screen-reader-text"><?php _e( 'Group invitations', 'buddypress' ); ?></h2>
    1719
    1820    <ul id="group-list" class="invites item-list">
  • 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' ); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/messages/compose.php

    r10562 r11129  
    88
    99?>
     10<h2 class="bp-screen-reader-text"><?php _e( 'Compose Message', 'buddypress' ); ?></h2>
     11
    1012<form action="<?php bp_messages_form_action('compose' ); ?>" method="post" id="send_message_form" class="standard-form" enctype="multipart/form-data">
    1113
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/messages/messages-loop.php

    r10827 r11129  
    1515
    1616<?php if ( bp_has_message_threads( bp_ajax_querystring( 'messages' ) ) ) : ?>
     17
     18    <h2 class="bp-screen-reader-text"><?php _e( 'Starred messages', 'buddypress' ); ?></h2>
    1719
    1820    <div class="pagination no-ajax" id="user-pag">
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/notifications/read.php

    r10181 r11129  
    1010
    1111<?php if ( bp_has_notifications() ) : ?>
     12
     13    <h2 class="bp-screen-reader-text"><?php _e( 'Notifications', 'buddypress' ); ?></h2>
    1214
    1315    <div id="pag-top" class="pagination no-ajax">
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/notifications/unread.php

    r10181 r11129  
    1010
    1111<?php if ( bp_has_notifications() ) : ?>
     12
     13    <h2 class="bp-screen-reader-text"><?php _e( 'Unread notifications', 'buddypress' ); ?></h2>
    1214
    1315    <div id="pag-top" class="pagination no-ajax">
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/settings/general.php

    r10827 r11129  
    99/** This action is documented in bp-templates/bp-legacy/buddypress/members/single/settings/profile.php */
    1010do_action( 'bp_before_member_settings_template' ); ?>
     11
     12<h2 class="bp-screen-reader-text"><?php _e( 'Account settings', 'buddypress' ); ?></h2>
    1113
    1214<form action="<?php echo bp_displayed_user_domain() . bp_get_settings_slug() . '/general'; ?>" method="post" class="standard-form" id="settings-form">
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/settings/notifications.php

    r10235 r11129  
    99/** This action is documented in bp-templates/bp-legacy/buddypress/members/single/settings/profile.php */
    1010do_action( 'bp_before_member_settings_template' ); ?>
     11
     12<h2 class="bp-screen-reader-text"><?php _e( 'Notification settings', 'buddypress' ); ?></h2>
    1113
    1214<form action="<?php echo bp_displayed_user_domain() . bp_get_settings_slug() . '/notifications'; ?>" method="post" class="standard-form" id="settings-form">
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/settings/profile.php

    r10181 r11129  
    1313 */
    1414do_action( 'bp_before_member_settings_template' ); ?>
     15
     16<h2 class="bp-screen-reader-text"><?php _e( 'Profile visibility settings', 'buddypress' ); ?></h2>
    1517
    1618<form action="<?php echo trailingslashit( bp_displayed_user_domain() . bp_get_settings_slug() . '/profile' ); ?>" method="post" class="standard-form" id="settings-form">
Note: See TracChangeset for help on using the changeset viewer.