Skip to:
Content

BuddyPress.org

Ticket #7216: 7216-member-screens.patch

File 7216-member-screens.patch, 7.4 KB (added by mercime, 8 years ago)

Screen reader headings for member screens

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

     
    5454                 */
    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
    5965                        <?php bp_get_template_part( 'groups/groups-loop' ); ?>
  • src/bp-templates/bp-legacy/buddypress/members/single/groups/invites.php

     
    1515
    1616<?php if ( bp_has_groups( 'type=invites&user_id=' . bp_loggedin_user_id() ) ) : ?>
    1717
     18        <h2 class="bp-screen-reader-text"><?php _e( 'Group invitations', 'buddypress' ); ?></h2>
     19
    1820        <ul id="group-list" class="invites item-list">
    1921
    2022                <?php while ( bp_groups() ) : bp_the_group(); ?>
  • src/bp-templates/bp-legacy/buddypress/members/single/messages.php

     
    3737                 */
    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' ); ?>
    4248                </div><!-- .messages -->
     
    7177                 */
    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' ); ?>
    7684                </div><!-- .messages -->
  • src/bp-templates/bp-legacy/buddypress/members/single/messages/compose.php

     
    77 */
    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
    1214        <?php
  • src/bp-templates/bp-legacy/buddypress/members/single/messages/messages-loop.php

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

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

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

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

     
    99/** This action is documented in bp-templates/bp-legacy/buddypress/members/single/settings/profile.php */
    1010do_action( 'bp_before_member_settings_template' ); ?>
    1111
     12<h2 class="bp-screen-reader-text"><?php _e( 'Notification settings', 'buddypress' ); ?></h2>
     13
    1214<form action="<?php echo bp_displayed_user_domain() . bp_get_settings_slug() . '/notifications'; ?>" method="post" class="standard-form" id="settings-form">
    1315        <p><?php _e( 'Send an email notice when:', 'buddypress' ); ?></p>
    1416
  • src/bp-templates/bp-legacy/buddypress/members/single/settings/profile.php

     
    1313 */
    1414do_action( 'bp_before_member_settings_template' ); ?>
    1515
     16<h2 class="bp-screen-reader-text"><?php _e( 'Profile visibility settings', 'buddypress' ); ?></h2>
     17
    1618<form action="<?php echo trailingslashit( bp_displayed_user_domain() . bp_get_settings_slug() . '/profile' ); ?>" method="post" class="standard-form" id="settings-form">
    1719
    1820        <?php if ( bp_xprofile_get_settings_fields() ) : ?>