Skip to:
Content

BuddyPress.org

Changeset 11128


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

Accessibility: Differentiate navigation landmarks for screen readers.

Fixes #7256.

Location:
trunk/src
Files:
24 edited

Legend:

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

    r11100 r11128  
    42704270function bp_groups_members_template_part() {
    42714271    ?>
    4272     <div class="item-list-tabs" id="subnav" role="navigation">
     4272    <div class="item-list-tabs" id="subnav" aria-label="<?php esc_attr_e( 'Group secondary navigation', 'buddypress' ); ?>" role="navigation">
    42734273        <ul>
    42744274            <li class="groups-members-search" role="search">
  • trunk/src/bp-templates/bp-legacy/buddypress/activity/index.php

    r11126 r11128  
    4242    do_action( 'template_notices' ); ?>
    4343
    44     <div class="item-list-tabs activity-type-tabs" role="navigation">
     44    <div class="item-list-tabs activity-type-tabs" aria-label="<?php esc_attr_e( 'Sitewide activities navigation', 'buddypress' ); ?>" role="navigation">
    4545        <ul>
    4646            <?php
     
    138138    </div><!-- .item-list-tabs -->
    139139
    140     <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
     140    <div class="item-list-tabs no-ajax" id="subnav" aria-label="<?php esc_attr_e( 'Activity secondary navigation', 'buddypress' ); ?>" role="navigation">
    141141        <ul>
    142142            <li class="feed"><a href="<?php bp_sitewide_activity_feed_link(); ?>" title="<?php esc_attr_e( 'RSS Feed', 'buddypress' ); ?>"><?php _e( 'RSS', 'buddypress' ); ?></a></li>
  • trunk/src/bp-templates/bp-legacy/buddypress/blogs/index.php

    r11048 r11128  
    5858    <form action="" method="post" id="blogs-directory-form" class="dir-form">
    5959
    60         <div class="item-list-tabs" role="navigation">
     60        <div class="item-list-tabs" aria-label="<?php esc_attr_e( 'Sites directory main navigation', 'buddypress' ); ?>" role="navigation">
    6161            <ul>
    6262                <li class="selected" id="blogs-all"><a href="<?php bp_root_domain(); ?>/<?php bp_blogs_root_slug(); ?>"><?php printf( __( 'All Sites %s', 'buddypress' ), '<span>' . bp_get_total_blog_count() . '</span>' ); ?></a></li>
     
    8080        </div><!-- .item-list-tabs -->
    8181
    82         <div class="item-list-tabs" id="subnav" role="navigation">
     82        <div class="item-list-tabs" id="subnav" aria-label="<?php esc_attr_e( 'Sites directory secondary navigation', 'buddypress' ); ?>" role="navigation">
    8383            <ul>
    8484
  • trunk/src/bp-templates/bp-legacy/buddypress/forums/index.php

    r11048 r11128  
    5656    <form action="" method="post" id="forums-directory-form" class="dir-form">
    5757
    58         <div class="item-list-tabs" role="navigation">
     58        <div class="item-list-tabs" aria-label="<?php esc_attr_e( 'Forums directory main navigation', 'buddypress' ); ?>" role="navigation">
    5959            <ul>
    6060                <li class="selected" id="forums-all"><a href="<?php echo trailingslashit( bp_get_root_domain() . '/' . bp_get_forums_root_slug() ); ?>"><?php printf( __( 'All Topics %s', 'buddypress' ), '<span>' . bp_get_forum_topic_count() . '</span>' ); ?></a></li>
     
    7878        </div>
    7979
    80         <div class="item-list-tabs" id="subnav" role="navigation">
     80        <div class="item-list-tabs" id="subnav" aria-label="<?php esc_attr_e( 'Forums secondary navigation', 'buddypress' ); ?>" role="navigation">
    8181            <ul>
    8282
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/create.php

    r10968 r11128  
    3636        do_action( 'bp_before_create_group' ); ?>
    3737
    38         <div class="item-list-tabs no-ajax" id="group-create-tabs" role="navigation">
     38        <div class="item-list-tabs no-ajax" id="group-create-tabs">
    3939            <ul>
    4040
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/index.php

    r11048 r11128  
    5454        do_action( 'template_notices' ); ?>
    5555
    56         <div class="item-list-tabs" role="navigation">
     56        <div class="item-list-tabs" aria-label="<?php esc_attr_e( 'Groups directory main navigation' ); ?>">
    5757            <ul>
    5858                <li class="selected" id="groups-all"><a href="<?php bp_groups_directory_permalink(); ?>"><?php printf( __( 'All Groups %s', 'buddypress' ), '<span>' . bp_get_total_group_count() . '</span>' ); ?></a></li>
     
    7474        </div><!-- .item-list-tabs -->
    7575
    76         <div class="item-list-tabs" id="subnav" role="navigation">
     76        <div class="item-list-tabs" id="subnav" aria-label="<?php esc_attr_e( 'Groups directory secondary navigation', 'buddypress' ); ?>" role="navigation">
    7777            <ul>
    7878                <?php
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/single/activity.php

    r11126 r11128  
    88
    99?>
    10 <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
     10<div class="item-list-tabs no-ajax" id="subnav" aria-label="<?php esc_attr_e( 'Group secondary navigation', 'buddypress' ); ?>" role="navigation">
    1111    <ul>
    1212        <li class="feed"><a href="<?php bp_group_activity_feed_link(); ?>" title="<?php esc_attr_e( 'RSS Feed', 'buddypress' ); ?>"><?php _e( 'RSS', 'buddypress' ); ?></a></li>
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/single/admin.php

    r11069 r11128  
    88
    99?>
    10 <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
     10<div class="item-list-tabs no-ajax" id="subnav" aria-label="<?php esc_attr_e( 'Group secondary navigation', 'buddypress' ); ?>" role="navigation">
    1111    <ul>
    1212        <?php bp_group_admin_tabs(); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/single/forum.php

    r10181 r11128  
    2222else : ?>
    2323
    24     <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
     24    <div class="item-list-tabs no-ajax" id="subnav" aria-label="<?php esc_attr_e( 'Group secondary navigation', 'buddypress' ); ?>" role="navigation">
    2525        <ul>
    2626
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/single/forum/edit.php

    r10827 r11128  
    1818    <form action="<?php bp_forum_topic_action(); ?>" method="post" id="forum-topic-form" class="standard-form">
    1919
    20         <div class="item-list-tabs" id="subnav" role="navigation">
     20        <div class="item-list-tabs" id="subnav" aria-label="<?php esc_attr_e( 'Forums secondary navigation', 'buddypress' ); ?>" role="navigation">
    2121            <ul>
    2222                <li>
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/single/forum/topic.php

    r10827 r11128  
    1515
    1616<form action="<?php bp_forum_topic_action(); ?>" method="post" id="forum-topic-form" class="standard-form">
    17     <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
     17    <div class="item-list-tabs no-ajax" id="subnav" aria-label="<?php esc_attr_e( 'Forums secondary navigation', 'buddypress' ); ?>" role="navigation">
    1818        <ul>
    1919            <?php if ( is_user_logged_in() ) : ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/single/home.php

    r10184 r11128  
    3737
    3838    <div id="item-nav">
    39         <div class="item-list-tabs no-ajax" id="object-nav" role="navigation">
     39        <div class="item-list-tabs no-ajax" id="object-nav" aria-label="<?php esc_attr_e( 'Group primary navigation', 'buddypress' ); ?>" role="navigation">
    4040            <ul>
    4141
  • trunk/src/bp-templates/bp-legacy/buddypress/members/index.php

    r11048 r11128  
    5757    <form action="" method="post" id="members-directory-form" class="dir-form">
    5858
    59         <div class="item-list-tabs" role="navigation">
     59        <div class="item-list-tabs" aria-label="<?php esc_attr_e( 'Members directory main navigation', 'buddypress' ); ?>" role="navigation">
    6060            <ul>
    6161                <li class="selected" id="members-all"><a href="<?php bp_members_directory_permalink(); ?>"><?php printf( __( 'All Members %s', 'buddypress' ), '<span>' . bp_get_total_member_count() . '</span>' ); ?></a></li>
     
    7777        </div><!-- .item-list-tabs -->
    7878
    79         <div class="item-list-tabs" id="subnav" role="navigation">
    80             <ul>
     79        <div class="item-list-tabs" id="subnav" aria-label="<?php esc_attr_e( 'Members directory secondary navigation', 'buddypress' ); ?>" role="navigation">
    8180                <?php
    8281
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/activity.php

    r11126 r11128  
    99?>
    1010
    11 <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
     11<div class="item-list-tabs no-ajax" id="subnav" aria-label="<?php esc_attr_e( 'Member secondary navigation', 'buddypress' ); ?>" role="navigation">
    1212    <ul>
    1313
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/blogs.php

    r10150 r11128  
    99?>
    1010
    11 <div class="item-list-tabs" id="subnav" role="navigation">
     11<div class="item-list-tabs" id="subnav" aria-label="<?php esc_attr_e( 'Member secondary navigation', 'buddypress' ); ?>" role="navigation">
    1212    <ul>
    1313
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/forums.php

    r10150 r11128  
    99?>
    1010
    11 <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
     11<div class="item-list-tabs no-ajax" id="subnav" aria-label="<?php esc_attr_e( 'Member secondary navigation', 'buddypress' ); ?>" role="navigation">
    1212    <ul>
    1313        <?php bp_get_options_nav(); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/friends.php

    r10150 r11128  
    99?>
    1010
    11 <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
     11<div class="item-list-tabs no-ajax" id="subnav" aria-label="<?php esc_attr_e( 'Member secondary navigation', 'buddypress' ); ?>" role="navigation">
    1212    <ul>
    1313        <?php if ( bp_is_my_profile() ) bp_get_options_nav(); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/groups.php

    r10150 r11128  
    99?>
    1010
    11 <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
     11<div class="item-list-tabs no-ajax" id="subnav" aria-label="<?php esc_attr_e( 'Member secondary navigation', 'buddypress' ); ?>" role="navigation">
    1212    <ul>
    1313        <?php if ( bp_is_my_profile() ) bp_get_options_nav(); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/home.php

    r10774 r11128  
    3636
    3737    <div id="item-nav">
    38         <div class="item-list-tabs no-ajax" id="object-nav" role="navigation">
     38        <div class="item-list-tabs no-ajax" id="object-nav" aria-label="<?php esc_attr_e( 'Member primary navigation', 'buddypress' ); ?>" role="navigation">
    3939            <ul>
    4040
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/messages.php

    r10150 r11128  
    99?>
    1010
    11 <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
     11<div class="item-list-tabs no-ajax" id="subnav" aria-label="<?php esc_attr_e( 'Member secondary navigation', 'buddypress' ); ?>" role="navigation">
    1212    <ul>
    1313
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/notifications.php

    r10150 r11128  
    99?>
    1010
    11 <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
     11<div class="item-list-tabs no-ajax" id="subnav" aria-label="<?php esc_attr_e( 'Member secondary navigation', 'buddypress' ); ?>" role="navigation">
    1212    <ul>
    1313        <?php bp_get_options_nav(); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/plugins.php

    r10213 r11128  
    1919        <?php if ( ! bp_is_current_component_core() ) : ?>
    2020
    21         <div class="item-list-tabs no-ajax" id="subnav">
     21        <div class="item-list-tabs no-ajax" id="subnav" aria-label="<?php esc_attr_e( 'Member secondary navigation', 'buddypress' ); ?>" role="navigation">
    2222            <ul>
    2323                <?php bp_get_options_nav(); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/profile.php

    r10157 r11128  
    99?>
    1010
    11 <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
     11<div class="item-list-tabs no-ajax" id="subnav" aria-label="<?php esc_attr_e( 'Member secondary navigation', 'buddypress' ); ?>" role="navigation">
    1212    <ul>
    1313        <?php bp_get_options_nav(); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/settings.php

    r10150 r11128  
    99?>
    1010
    11 <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
     11<div class="item-list-tabs no-ajax" id="subnav" aria-label="<?php esc_attr_e( 'Member secondary navigation', 'buddypress' ); ?>" role="navigation">
    1212    <ul>
    1313        <?php if ( bp_core_can_edit_settings() ) : ?>
Note: See TracChangeset for help on using the changeset viewer.