<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[BuddyPress] [3459] trunk/bp-themes/bp-default:
Add first pass of WAI ARIA support for WP templates.</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd>3459</dd>
<dt>Author</dt> <dd>djpaul</dd>
<dt>Date</dt> <dd>2010-11-20 23:52:05 +0000 (Sat, 20 Nov 2010)</dd>
</dl>
<h3>Log Message</h3>
<pre>Add first pass of WAI ARIA support for WP templates. See #748.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkbpthemesbpdefaultarchivephp">trunk/bp-themes/bp-default/archive.php</a></li>
<li><a href="#trunkbpthemesbpdefaultfooterphp">trunk/bp-themes/bp-default/footer.php</a></li>
<li><a href="#trunkbpthemesbpdefaultheaderphp">trunk/bp-themes/bp-default/header.php</a></li>
<li><a href="#trunkbpthemesbpdefaultindexphp">trunk/bp-themes/bp-default/index.php</a></li>
<li><a href="#trunkbpthemesbpdefaultlinksphp">trunk/bp-themes/bp-default/links.php</a></li>
<li><a href="#trunkbpthemesbpdefaultonecolumnpagephp">trunk/bp-themes/bp-default/onecolumn-page.php</a></li>
<li><a href="#trunkbpthemesbpdefaultpagephp">trunk/bp-themes/bp-default/page.php</a></li>
<li><a href="#trunkbpthemesbpdefaultsearchphp">trunk/bp-themes/bp-default/search.php</a></li>
<li><a href="#trunkbpthemesbpdefaultsearchformphp">trunk/bp-themes/bp-default/searchform.php</a></li>
<li><a href="#trunkbpthemesbpdefaultsidebarphp">trunk/bp-themes/bp-default/sidebar.php</a></li>
<li><a href="#trunkbpthemesbpdefaultsinglephp">trunk/bp-themes/bp-default/single.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkbpthemesbpdefaultarchivephp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/archive.php (3458 => 3459)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/archive.php        2010-11-20 18:41:55 UTC (rev 3458)
+++ trunk/bp-themes/bp-default/archive.php        2010-11-20 23:52:05 UTC (rev 3459)
</span><span class="lines">@@ -5,7 +5,7 @@
</span><span class="cx">
</span><span class="cx">                 <?php do_action( 'bp_before_archive' ) ?>
</span><span class="cx">
</span><del>-                <div class="page" id="blog-archives">
</del><ins>+                <div class="page" id="blog-archives" role="main">
</ins><span class="cx">
</span><span class="cx">                         <h3 class="pagetitle"><?php printf( __( 'You are browsing the archive for %1$s.', 'buddypress' ), wp_title( false, false ) ); ?></h3>
</span><span class="cx">
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultfooterphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/footer.php (3458 => 3459)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/footer.php        2010-11-20 18:41:55 UTC (rev 3458)
+++ trunk/bp-themes/bp-default/footer.php        2010-11-20 23:52:05 UTC (rev 3459)
</span><span class="lines">@@ -6,7 +6,7 @@
</span><span class="cx">                 <div id="footer">
</span><span class="cx">                         <?php get_sidebar( 'footer' ) ?>
</span><span class="cx">
</span><del>-                        <div id="site-generator">
</del><ins>+                        <div id="site-generator" role="contentinfo">
</ins><span class="cx">                                 <p><?php printf( __( '%s is proudly powered by <a href="http://wordpress.org">WordPress</a> and <a href="http://buddypress.org">BuddyPress</a>', 'buddypress' ), get_bloginfo( 'name' ) ); ?></p>
</span><span class="cx">                         </div>
</span><span class="cx">
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultheaderphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/header.php (3458 => 3459)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/header.php        2010-11-20 18:41:55 UTC (rev 3458)
+++ trunk/bp-themes/bp-default/header.php        2010-11-20 23:52:05 UTC (rev 3459)
</span><span class="lines">@@ -36,13 +36,15 @@
</span><span class="cx">
</span><span class="cx">                 <?php do_action( 'bp_before_header' ) ?>
</span><span class="cx">
</span><del>-                <div id="header">
</del><ins>+                <div id="header" role="banner">
</ins><span class="cx">
</span><span class="cx">                         <h1 id="logo"><a href="<?php echo site_url() ?>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php bp_site_name() ?></a></h1>
</span><span class="cx">
</span><del>-                        <?php wp_nav_menu( array( 'container' => false, 'menu_id' => 'nav', 'theme_location' => 'primary', 'fallback_cb' => 'bp_dtheme_main_nav' ) ); ?>
</del><ins>+                        <div id="navigation" role="navigation">
+                                <?php wp_nav_menu( array( 'container' => false, 'menu_id' => 'nav', 'theme_location' => 'primary', 'fallback_cb' => 'bp_dtheme_main_nav' ) ); ?>
+                        </div>
</ins><span class="cx">
</span><del>-                        <div id="search-bar">
</del><ins>+                        <div id="search-bar" role="search">
</ins><span class="cx">                                 <div class="padder">
</span><span class="cx">
</span><span class="cx">                                 <?php if ( bp_search_form_enabled() ) : ?>
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultindexphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/index.php (3458 => 3459)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/index.php        2010-11-20 18:41:55 UTC (rev 3458)
+++ trunk/bp-themes/bp-default/index.php        2010-11-20 23:52:05 UTC (rev 3459)
</span><span class="lines">@@ -5,7 +5,7 @@
</span><span class="cx">
</span><span class="cx">                 <?php do_action( 'bp_before_blog_home' ) ?>
</span><span class="cx">
</span><del>-                <div class="page" id="blog-latest">
</del><ins>+                <div class="page" id="blog-latest" role="main">
</ins><span class="cx">
</span><span class="cx">                         <?php if ( have_posts() ) : ?>
</span><span class="cx">
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultlinksphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/links.php (3458 => 3459)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/links.php        2010-11-20 18:41:55 UTC (rev 3458)
+++ trunk/bp-themes/bp-default/links.php        2010-11-20 23:52:05 UTC (rev 3459)
</span><span class="lines">@@ -11,7 +11,7 @@
</span><span class="cx">
</span><span class="cx">                 <?php do_action( 'bp_before_blog_links' ) ?>
</span><span class="cx">
</span><del>-                <div class="page" id="blog-latest">
</del><ins>+                <div class="page" id="blog-latest" role="main">
</ins><span class="cx">
</span><span class="cx">                         <h2 class="pagetitle"><?php _e( 'Links', 'buddypress' ) ?></h2>
</span><span class="cx">
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultonecolumnpagephp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/onecolumn-page.php (3458 => 3459)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/onecolumn-page.php        2010-11-20 18:41:55 UTC (rev 3458)
+++ trunk/bp-themes/bp-default/onecolumn-page.php        2010-11-20 23:52:05 UTC (rev 3459)
</span><span class="lines">@@ -16,7 +16,7 @@
</span><span class="cx">
</span><span class="cx">                 <?php do_action( 'bp_before_blog_page' ) ?>
</span><span class="cx">
</span><del>-                <div class="page" id="blog-page">
</del><ins>+                <div class="page" id="blog-page" role="main">
</ins><span class="cx">
</span><span class="cx">                         <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
</span><span class="cx">
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultpagephp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/page.php (3458 => 3459)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/page.php        2010-11-20 18:41:55 UTC (rev 3458)
+++ trunk/bp-themes/bp-default/page.php        2010-11-20 23:52:05 UTC (rev 3459)
</span><span class="lines">@@ -5,7 +5,7 @@
</span><span class="cx">
</span><span class="cx">                 <?php do_action( 'bp_before_blog_page' ) ?>
</span><span class="cx">
</span><del>-                <div class="page" id="blog-page">
</del><ins>+                <div class="page" id="blog-page" role="main">
</ins><span class="cx">
</span><span class="cx">                         <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
</span><span class="cx">
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultsearchphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/search.php (3458 => 3459)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/search.php        2010-11-20 18:41:55 UTC (rev 3458)
+++ trunk/bp-themes/bp-default/search.php        2010-11-20 23:52:05 UTC (rev 3459)
</span><span class="lines">@@ -5,7 +5,7 @@
</span><span class="cx">
</span><span class="cx">                 <?php do_action( 'bp_before_blog_search' ) ?>
</span><span class="cx">
</span><del>-                <div class="page" id="blog-search">
</del><ins>+                <div class="page" id="blog-search" role="main">
</ins><span class="cx">
</span><span class="cx">                         <h2 class="pagetitle"><?php _e( 'Blog', 'buddypress' ) ?></h2>
</span><span class="cx">
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultsearchformphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/searchform.php (3458 => 3459)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/searchform.php        2010-11-20 18:41:55 UTC (rev 3458)
+++ trunk/bp-themes/bp-default/searchform.php        2010-11-20 23:52:05 UTC (rev 3459)
</span><span class="lines">@@ -1,6 +1,6 @@
</span><span class="cx"> <?php do_action( 'bp_before_blog_search_form' ) ?>
</span><span class="cx">
</span><del>-<form method="get" id="searchform" action="<?php echo home_url() ?>/">
</del><ins>+<form role="search" method="get" id="searchform" action="<?php echo home_url() ?>/">
</ins><span class="cx">         <input type="text" value="<?php the_search_query(); ?>" name="s" id="s" />
</span><span class="cx">         <input type="submit" id="searchsubmit" value="<?php _e( 'Search', 'buddypress' ) ?>" />
</span><span class="cx">
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultsidebarphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/sidebar.php (3458 => 3459)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/sidebar.php        2010-11-20 18:41:55 UTC (rev 3458)
+++ trunk/bp-themes/bp-default/sidebar.php        2010-11-20 23:52:05 UTC (rev 3459)
</span><span class="lines">@@ -1,6 +1,6 @@
</span><span class="cx"> <?php do_action( 'bp_before_sidebar' ) ?>
</span><span class="cx">
</span><del>-<div id="sidebar">
</del><ins>+<div id="sidebar" role="complementary">
</ins><span class="cx">         <div class="padder">
</span><span class="cx">
</span><span class="cx">         <?php do_action( 'bp_inside_before_sidebar' ) ?>
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultsinglephp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/single.php (3458 => 3459)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/single.php        2010-11-20 18:41:55 UTC (rev 3458)
+++ trunk/bp-themes/bp-default/single.php        2010-11-20 23:52:05 UTC (rev 3459)
</span><span class="lines">@@ -5,7 +5,7 @@
</span><span class="cx">
</span><span class="cx">                 <?php do_action( 'bp_before_blog_single_post' ) ?>
</span><span class="cx">
</span><del>-                <div class="page" id="blog-single">
</del><ins>+                <div class="page" id="blog-single" role="main">
</ins><span class="cx">
</span><span class="cx">                         <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
</span><span class="cx">
</span></span></pre>
</div>
</div>
</body>
</html>