Skip to:
Content

BuddyPress.org

Changeset 3460


Ignore:
Timestamp:
11/21/2010 12:55:18 PM (14 years ago)
Author:
djpaul
Message:

Second pass of WAI ARIA landmark roles for BP templates. Fixes #748.

Location:
trunk/bp-themes/bp-default
Files:
33 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/activity/index.php

    r3306 r3460  
    1616            <?php do_action( 'template_notices' ) ?>
    1717
    18             <div class="item-list-tabs activity-type-tabs">
     18            <div class="item-list-tabs activity-type-tabs" role="navigation">
    1919                <ul>
    2020                    <?php do_action( 'bp_before_activity_type_tab_all' ) ?>
     
    5656            </div><!-- .item-list-tabs -->
    5757
    58             <div class="item-list-tabs no-ajax" id="subnav">
     58            <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    5959                <ul>
    6060                    <li class="feed"><a href="<?php bp_sitewide_activity_feed_link() ?>" title="<?php _e( 'RSS Feed', 'buddypress' ); ?>"><?php _e( 'RSS', 'buddypress' ) ?></a></li>
     
    9696            <?php do_action( 'bp_before_directory_activity_list' ) ?>
    9797
    98             <div class="activity">
     98            <div class="activity" role="main">
    9999                <?php locate_template( array( 'activity/activity-loop.php' ), true ) ?>
    100100            </div><!-- .activity -->
  • trunk/bp-themes/bp-default/activity/post-form.php

    r3387 r3460  
    1 <form action="<?php bp_activity_post_form_action() ?>" method="post" id="whats-new-form" name="whats-new-form">
     1<form action="<?php bp_activity_post_form_action() ?>" method="post" id="whats-new-form" name="whats-new-form" role="complementary">
    22
    33    <?php do_action( 'bp_before_activity_post_form' ) ?>
  • trunk/bp-themes/bp-default/blogs/blogs-loop.php

    r3300 r3460  
    1919    <?php do_action( 'bp_before_directory_blogs_list' ) ?>
    2020
    21     <ul id="blogs-list" class="item-list">
     21    <ul id="blogs-list" class="item-list" role="main">
    2222    <?php while ( bp_blogs() ) : bp_the_blog(); ?>
    2323
  • trunk/bp-themes/bp-default/blogs/create.php

    r3306 r3460  
    44
    55    <div id="content">
    6         <div class="padder">
     6        <div class="padder" role="main">
    77
    88        <?php do_action( 'template_notices' ) ?>
  • trunk/bp-themes/bp-default/blogs/index.php

    r3306 r3460  
    1010            <?php do_action( 'bp_before_directory_blogs_content' ) ?>
    1111
    12             <div id="blog-dir-search" class="dir-search">
     12            <div id="blog-dir-search" class="dir-search" role="search">
    1313                <?php bp_directory_blogs_search_form() ?>
    1414            </div><!-- #blog-dir-search -->
    1515
    16             <div class="item-list-tabs">
     16            <div class="item-list-tabs" role="navigation">
    1717                <ul>
    1818                    <li class="selected" id="blogs-all"><a href="<?php bp_root_domain() ?>"><?php printf( __( 'All Blogs (%s)', 'buddypress' ), bp_get_total_blog_count() ) ?></a></li>
  • trunk/bp-themes/bp-default/forums/index.php

    r3401 r3460  
    1212            <?php do_action( 'bp_before_directory_forums_content' ) ?>
    1313
    14             <div id="forums-dir-search" class="dir-search">
     14            <div id="forums-dir-search" class="dir-search" role="search">
    1515                <?php bp_directory_forums_search_form() ?>
    1616            </div>
     
    7979        <form action="" method="post" id="forums-directory-form" class="dir-form">
    8080
    81             <div class="item-list-tabs">
     81            <div class="item-list-tabs" role="navigation">
    8282                <ul>
    8383                    <li class="selected" id="forums-all"><a href="<?php bp_root_domain() ?>"><?php printf( __( 'All Topics (%s)', 'buddypress' ), bp_get_forum_topic_count() ) ?></a></li>
     
    105105            <?php do_action( 'bp_before_directory_forums_list' ) ?>
    106106
    107             <div id="forums-dir-list" class="forums dir-list">
     107            <div id="forums-dir-list" class="forums dir-list" role="main">
    108108                <?php locate_template( array( 'forums/forums-loop.php' ), true ) ?>
    109109            </div>
  • trunk/bp-themes/bp-default/groups/create.php

    r3306 r3460  
    99            <?php do_action( 'bp_before_create_group' ) ?>
    1010
    11             <div class="item-list-tabs no-ajax" id="group-create-tabs">
     11            <div class="item-list-tabs no-ajax" id="group-create-tabs" role="navigation">
    1212                <ul>
    1313                    <?php bp_group_creation_tabs(); ?>
     
    177177
    178178                            <?php /* The ID 'friend-list' is important for AJAX support. */ ?>
    179                             <ul id="friend-list" class="item-list">
     179                            <ul id="friend-list" class="item-list" role="main">
    180180                            <?php if ( bp_group_has_invites() ) : ?>
    181181
  • trunk/bp-themes/bp-default/groups/groups-loop.php

    r3300 r3460  
    1919    <?php do_action( 'bp_before_directory_groups_list' ) ?>
    2020
    21     <ul id="groups-list" class="item-list">
     21    <ul id="groups-list" class="item-list" role="main">
    2222    <?php while ( bp_groups() ) : bp_the_group(); ?>
    2323
  • trunk/bp-themes/bp-default/groups/index.php

    r3306 r3460  
    99            <?php do_action( 'bp_before_directory_groups_content' ) ?>
    1010
    11             <div id="group-dir-search" class="dir-search">
     11            <div id="group-dir-search" class="dir-search" role="search">
    1212                <?php bp_directory_groups_search_form() ?>
    1313            </div><!-- #group-dir-search -->
    1414
    15             <div class="item-list-tabs">
     15            <div class="item-list-tabs" role="navigation">
    1616                <ul>
    1717                    <li class="selected" id="groups-all"><a href="<?php echo bp_get_root_domain() . '/' . BP_GROUPS_SLUG ?>"><?php printf( __( 'All Groups (%s)', 'buddypress' ), bp_get_total_group_count() ) ?></a></li>
  • trunk/bp-themes/bp-default/groups/single/activity.php

    r3300 r3460  
    1 <div class="item-list-tabs no-ajax" id="subnav">
     1<div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    22    <ul>
    33        <li class="feed"><a href="<?php bp_group_activity_feed_link() ?>" title="<?php _e( 'RSS Feed', 'buddypress' ); ?>"><?php _e( 'RSS', 'buddypress' ) ?></a></li>
     
    3232<?php do_action( 'bp_before_group_activity_content' ) ?>
    3333
    34 <div class="activity single-group">
     34<div class="activity single-group" role="main">
    3535    <?php locate_template( array( 'activity/activity-loop.php' ), true ) ?>
    3636</div><!-- .activity.single-group -->
  • trunk/bp-themes/bp-default/groups/single/admin.php

    r3300 r3460  
    1 <div class="item-list-tabs no-ajax" id="subnav">
     1<div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    22    <ul>
    33        <?php bp_group_admin_tabs(); ?>
     
    55</div><!-- .item-list-tabs -->
    66
    7 <form action="<?php bp_group_admin_form_action() ?>" name="group-settings-form" id="group-settings-form" class="standard-form" method="post" enctype="multipart/form-data">
     7<form action="<?php bp_group_admin_form_action() ?>" name="group-settings-form" id="group-settings-form" class="standard-form" method="post" enctype="multipart/form-data" role="main">
    88
    99<?php do_action( 'bp_before_group_admin_content' ) ?>
  • trunk/bp-themes/bp-default/groups/single/forum.php

    r3335 r3460  
    99<?php else : ?>
    1010
    11     <div class="forums single-forum">
     11    <div class="forums single-forum" role="main">
    1212        <?php locate_template( array( 'forums/forums-loop.php' ), true ) ?>
    1313    </div><!-- .forums.single-forum -->
  • trunk/bp-themes/bp-default/groups/single/forum/topic.php

    r3300 r3460  
    3232        <?php do_action( 'bp_before_group_forum_topic_posts' ) ?>
    3333
    34         <ul id="topic-post-list" class="item-list">
     34        <ul id="topic-post-list" class="item-list" role="main">
    3535            <?php while ( bp_forum_topic_posts() ) : bp_the_forum_topic_post(); ?>
    3636
  • trunk/bp-themes/bp-default/groups/single/home.php

    r3306 r3460  
    77            <?php do_action( 'bp_before_group_home_content' ) ?>
    88
    9             <div id="item-header">
     9            <div id="item-header" role="complementary">
    1010                <?php locate_template( array( 'groups/single/group-header.php' ), true ) ?>
    1111            </div><!-- #item-header -->
    1212
    1313            <div id="item-nav">
    14                 <div class="item-list-tabs no-ajax" id="object-nav">
     14                <div class="item-list-tabs no-ajax" id="object-nav" role="navigation">
    1515                    <ul>
    1616                        <?php bp_get_options_nav() ?>
  • trunk/bp-themes/bp-default/groups/single/members.php

    r3371 r3460  
    1717    <?php do_action( 'bp_before_group_members_list' ) ?>
    1818
    19     <ul id="member-list" class="item-list">
     19    <ul id="member-list" class="item-list" role="main">
    2020        <?php while ( bp_group_members() ) : bp_group_the_member(); ?>
    2121
  • trunk/bp-themes/bp-default/groups/single/plugins.php

    r3306 r3460  
    1212
    1313            <div id="item-nav">
    14                 <div class="item-list-tabs no-ajax" id="object-nav">
     14                <div class="item-list-tabs no-ajax" id="object-nav" role="navigation">
    1515                    <ul>
    1616                        <?php bp_get_options_nav() ?>
  • trunk/bp-themes/bp-default/groups/single/send-invites.php

    r3300 r3460  
    33<?php if ( bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>
    44
    5     <form action="<?php bp_group_send_invite_form_action() ?>" method="post" id="send-invite-form" class="standard-form">
     5    <form action="<?php bp_group_send_invite_form_action() ?>" method="post" id="send-invite-form" class="standard-form" role="main">
    66
    77        <div class="left-menu">
     
    7070<?php else : ?>
    7171
    72     <div id="message" class="info">
     72    <div id="message" class="info" role="main">
    7373        <p><?php _e( 'Once you have built up friend connections you will be able to invite others to your group. You can send invites any time in the future by selecting the "Send Invites" option when viewing your new group.', 'buddypress' ); ?></p>
    7474    </div>
  • trunk/bp-themes/bp-default/header.php

    r3459 r3460  
    3737        <?php do_action( 'bp_before_header' ) ?>
    3838
    39         <div id="header" role="banner">
     39        <div id="header">
    4040
    41             <h1 id="logo"><a href="<?php echo site_url() ?>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php bp_site_name() ?></a></h1>
     41            <h1 id="logo" role="banner"><a href="<?php echo site_url() ?>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php bp_site_name() ?></a></h1>
    4242
    4343            <div id="navigation" role="navigation">
  • trunk/bp-themes/bp-default/members/index.php

    r3306 r3460  
    1010            <?php do_action( 'bp_before_directory_members_content' ) ?>
    1111
    12             <div id="members-dir-search" class="dir-search">
     12            <div id="members-dir-search" class="dir-search" role="search">
    1313                <?php bp_directory_members_search_form() ?>
    1414            </div><!-- #members-dir-search -->
    1515
    16             <div class="item-list-tabs">
     16            <div class="item-list-tabs" role="navigation">
    1717                <ul>
    1818                    <li class="selected" id="members-all"><a href="<?php bp_root_domain() ?>"><?php printf( __( 'All Members (%s)', 'buddypress' ), bp_get_total_member_count() ) ?></a></li>
  • trunk/bp-themes/bp-default/members/members-loop.php

    r3300 r3460  
    1919    <?php do_action( 'bp_before_directory_members_list' ) ?>
    2020
    21     <ul id="members-list" class="item-list">
     21    <ul id="members-list" class="item-list" role="main">
    2222    <?php while ( bp_members() ) : bp_the_member(); ?>
    2323
  • trunk/bp-themes/bp-default/members/single/activity.php

    r2822 r3460  
    1 <div class="item-list-tabs no-ajax" id="subnav">
     1<div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    22    <ul>
    33        <?php bp_get_options_nav() ?>
     
    4444<?php do_action( 'bp_before_member_activity_content' ) ?>
    4545
    46 <div class="activity">
     46<div class="activity" role="main">
    4747    <?php locate_template( array( 'activity/activity-loop.php' ), true ) ?>
    4848</div><!-- .activity -->
  • trunk/bp-themes/bp-default/members/single/activity/permalink.php

    r2170 r3460  
    11<?php get_header() ?>
    22
    3 <div class="activity no-ajax">
     3<div class="activity no-ajax" role="main">
    44    <?php if ( bp_has_activities( 'display_comments=threaded&include=' . bp_current_action() ) ) : ?>
    55
  • trunk/bp-themes/bp-default/members/single/blogs.php

    r3300 r3460  
    1 <div class="item-list-tabs" id="subnav">
     1<div class="item-list-tabs" id="subnav" role="navigation">
    22    <ul>
    33        <?php bp_get_options_nav() ?>
     
    1818<?php do_action( 'bp_before_member_blogs_content' ) ?>
    1919
    20 <div class="blogs myblogs">
     20<div class="blogs myblogs" role="main">
    2121    <?php locate_template( array( 'blogs/blogs-loop.php' ), true ) ?>
    2222</div><!-- .blogs.myblogs -->
  • trunk/bp-themes/bp-default/members/single/friends.php

    r3300 r3460  
    1 <div class="item-list-tabs no-ajax" id="subnav">
     1<div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    22    <ul>
    33        <?php if ( bp_is_my_profile() ) : ?>
  • trunk/bp-themes/bp-default/members/single/friends/requests.php

    r2372 r3460  
    33<?php if ( bp_has_members( 'include=' . bp_get_friendship_requests() . '&per_page=0' ) ) : ?>
    44
    5     <ul id="friend-list" class="item-list">
     5    <ul id="friend-list" class="item-list" role="main">
    66        <?php while ( bp_members() ) : bp_the_member(); ?>
    77
  • trunk/bp-themes/bp-default/members/single/groups.php

    r3300 r3460  
    1 <div class="item-list-tabs no-ajax" id="subnav">
     1<div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    22    <ul>
    33        <?php if ( bp_is_my_profile() ) : ?>
  • trunk/bp-themes/bp-default/members/single/groups/invites.php

    r2339 r3460  
    33<?php if ( bp_has_groups( 'type=invites&user_id=' . bp_loggedin_user_id() ) ) : ?>
    44
    5     <ul id="group-list" class="invites item-list">
     5    <ul id="group-list" class="invites item-list" role="main">
    66
    77        <?php while ( bp_groups() ) : bp_the_group(); ?>
     
    3131<?php else: ?>
    3232
    33     <div id="message" class="info">
     33    <div id="message" class="info" role="main">
    3434        <p><?php _e( 'You have no outstanding group invites.', 'buddypress' ) ?></p>
    3535    </div>
  • trunk/bp-themes/bp-default/members/single/home.php

    r3306 r3460  
    66            <?php do_action( 'bp_before_member_home_content' ) ?>
    77
    8             <div id="item-header">
     8            <div id="item-header" role="complementary">
    99                <?php locate_template( array( 'members/single/member-header.php' ), true ) ?>
    1010            </div><!-- #item-header -->
    1111
    1212            <div id="item-nav">
    13                 <div class="item-list-tabs no-ajax" id="object-nav">
     13                <div class="item-list-tabs no-ajax" id="object-nav" role="navigation">
    1414                    <ul>
    1515                        <?php bp_get_displayed_user_nav() ?>
  • trunk/bp-themes/bp-default/members/single/messages.php

    r3300 r3460  
    1 <div class="item-list-tabs no-ajax" id="subnav">
     1<div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    22    <ul>
    33        <?php bp_get_options_nav() ?>
     
    1515    <?php do_action( 'bp_before_member_messages_content' ) ?>
    1616
    17     <div class="messages">
     17    <div class="messages" role="main">
    1818        <?php if ( 'notices' == bp_current_action() ) : ?>
    1919            <?php locate_template( array( 'members/single/messages/notices-loop.php' ), true ) ?>
  • trunk/bp-themes/bp-default/members/single/messages/compose.php

    r3300 r3460  
    1 <form action="<?php bp_messages_form_action('compose') ?>" method="post" id="send_message_form" class="standard-form">
     1<form action="<?php bp_messages_form_action('compose') ?>" method="post" id="send_message_form" class="standard-form" role="main">
    22
    33    <?php do_action( 'bp_before_messages_compose_content' ) ?>
  • trunk/bp-themes/bp-default/members/single/messages/single.php

    r3384 r3460  
    1 <div id="message-thread">
     1<div id="message-thread" role="main">
    22
    33    <?php do_action( 'bp_before_message_thread_content' ) ?>
  • trunk/bp-themes/bp-default/members/single/plugins.php

    r3306 r3460  
    1111
    1212            <div id="item-nav">
    13                 <div class="item-list-tabs no-ajax" id="object-nav">
     13                <div class="item-list-tabs no-ajax" id="object-nav" role="navigation">
    1414                    <ul>
    1515                        <?php bp_get_displayed_user_nav() ?>
     
    2020            </div><!-- #item-nav -->
    2121
    22             <div id="item-body">
     22            <div id="item-body" role="main">
    2323                <?php do_action( 'bp_before_member_body' ) ?>
    2424
  • trunk/bp-themes/bp-default/members/single/profile.php

    r3300 r3460  
    11<?php if ( bp_is_my_profile() ) : ?>
    2     <div class="item-list-tabs no-ajax" id="subnav">
     2    <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    33        <ul>
    44            <?php bp_get_options_nav() ?>
     
    99<?php do_action( 'bp_before_profile_content' ) ?>
    1010
    11 <div class="profile">
     11<div class="profile" role="main">
    1212    <?php if ( 'edit' == bp_current_action() ) : ?>
    1313        <?php locate_template( array( 'members/single/profile/edit.php' ), true ) ?>
Note: See TracChangeset for help on using the changeset viewer.