Skip to:
Content

BuddyPress.org

Ticket #7256: 7256-general-2.patch

File 7256-general-2.patch, 17.0 KB (added by mercime, 4 years ago)

Add overlooked navigation landmarks

  • src/bp-groups/bp-groups-template.php

     
    42734273 */
    42744274function bp_groups_members_template_part() {
    42754275        ?>
    4276         <div class="item-list-tabs" id="subnav" role="navigation">
     4276        <div class="item-list-tabs" id="subnav" role="navigation" aria-label="<?php esc_attr_e( 'Groups secondary menu', 'buddypress' ); ?>">
    42774277                <ul>
    42784278                        <li class="groups-members-search" role="search">
    42794279                                <?php bp_directory_members_search_form(); ?>
  • src/bp-templates/bp-legacy/buddypress/activity/index.php

     
    4141         */
    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" role="navigation" aria-label="<?php esc_attr_e( 'Sitewide activities menu', 'buddypress' ); ?>">
    4545                <ul>
    4646                        <?php
    4747
     
    137137                </ul>
    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" role="navigation" aria-label="<?php esc_attr_e( 'Activity secondary menu', 'buddypress' ); ?>">
    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>
    143143
  • src/bp-templates/bp-legacy/buddypress/blogs/index.php

     
    5757
    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" role="navigation" aria-label="<?php esc_attr_e( 'Sites directory menu', 'buddypress' ); ?>">
    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>
    6363
     
    7979                        </ul>
    8080                </div><!-- .item-list-tabs -->
    8181
    82                 <div class="item-list-tabs" id="subnav" role="navigation">
     82                <div class="item-list-tabs" id="subnav" role="navigation" aria-label="<?php esc_attr_e( 'Sites secondary menu', 'buddypress' ); ?>">
    8383                        <ul>
    8484
    8585                                <?php
  • src/bp-templates/bp-legacy/buddypress/forums/index.php

     
    5555
    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" role="navigation" aria-label="<?php esc_attr_e( 'Forums', 'buddypress' ); ?>">
    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>
    6161
     
    7777                        </ul>
    7878                </div>
    7979
    80                 <div class="item-list-tabs" id="subnav" role="navigation">
     80                <div class="item-list-tabs" id="subnav" role="navigation" aria-label="<?php esc_attr_e( 'Forums secondary menu', 'buddypress' ); ?>">
    8181                        <ul>
    8282
    8383                                <?php
  • src/bp-templates/bp-legacy/buddypress/groups/create.php

     
    3535                 */
    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" role="navigation" aria-label="<?php esc_attr_e( 'Group creation tabs', 'buddypress' ); ?>">
    3939                        <ul>
    4040
    4141                                <?php bp_group_creation_tabs(); ?>
  • src/bp-templates/bp-legacy/buddypress/groups/index.php

     
    5353                /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
    5454                do_action( 'template_notices' ); ?>
    5555
    56                 <div class="item-list-tabs" role="navigation">
     56                <div class="item-list-tabs" role="navigation" aria-label="<?php esc_attr_e( 'Groups directory menu' ); ?>">
    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>
    5959
     
    7373                        </ul>
    7474                </div><!-- .item-list-tabs -->
    7575
    76                 <div class="item-list-tabs" id="subnav" role="navigation">
     76                <div class="item-list-tabs" id="subnav" role="navigation" aria-label="<?php esc_attr_e( 'Groups secondary menu', 'buddypress' ); ?>">
    7777                        <ul>
    7878                                <?php
    7979
  • src/bp-templates/bp-legacy/buddypress/groups/single/activity.php

     
    77 */
    88
    99?>
    10 <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
     10<div class="item-list-tabs no-ajax" id="subnav" role="navigation" aria-label="<?php esc_attr_e( 'Group secondary menu', 'buddypress' ); ?>">
    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>
    1313
  • src/bp-templates/bp-legacy/buddypress/groups/single/admin.php

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

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

     
    1717
    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" role="navigation" aria-label="<?php esc_attr_e( 'Forums secondary menu', 'buddypress' ); ?>">
    2121                        <ul>
    2222                                <li>
    2323                                        <a href="#post-topic-reply"><?php _e( 'Reply', 'buddypress' ); ?></a>
  • src/bp-templates/bp-legacy/buddypress/groups/single/forum/topic.php

     
    1414do_action( 'bp_before_group_forum_topic' ); ?>
    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" role="navigation" aria-label="<?php esc_attr_e( 'Forums secondary menu', 'buddypress' ); ?>">
    1818                <ul>
    1919                        <?php if ( is_user_logged_in() ) : ?>
    2020
  • src/bp-templates/bp-legacy/buddypress/groups/single/home.php

     
    3636        </div><!-- #item-header -->
    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" role="navigation" aria-label="<?php esc_attr_e( 'Group primary menu', 'buddypress' ); ?>">
    4040                        <ul>
    4141
    4242                                <?php bp_get_options_nav(); ?>
  • src/bp-templates/bp-legacy/buddypress/members/index.php

     
    5656
    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" role="navigation" aria-label="<?php esc_attr_e( 'Members directory menu', 'buddypress' ); ?>">
    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>
    6262
     
    7676                        </ul>
    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" role="navigation" aria-label="<?php esc_attr_e( 'Members secondary menu', 'buddypress' ); ?>">
    8180                                <?php
    8281
    8382                                /**
  • src/bp-templates/bp-legacy/buddypress/members/single/activity.php

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

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

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

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

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

     
    3535        </div><!-- #item-header -->
    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" role="navigation" aria-label="<?php esc_attr_e( 'Member primary menu', 'buddypress' ); ?>">
    3939                        <ul>
    4040
    4141                                <?php bp_get_displayed_user_nav(); ?>
  • src/bp-templates/bp-legacy/buddypress/members/single/messages.php

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

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

     
    1818
    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" role="navigation" aria-label="<?php esc_attr_e( 'Member secondary menu', 'buddypress' ); ?>">
    2222                        <ul>
    2323                                <?php bp_get_options_nav(); ?>
    2424
  • src/bp-templates/bp-legacy/buddypress/members/single/profile.php

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

     
    88
    99?>
    1010
    11 <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
     11<div class="item-list-tabs no-ajax" id="subnav" role="navigation" aria-label="<?php esc_attr_e( 'Member secondary menu', 'buddypress' ); ?>">
    1212        <ul>
    1313                <?php if ( bp_core_can_edit_settings() ) : ?>
    1414