Add ARIA landmark roles to TwentyTen. Fixes #13055 props demetris.

git-svn-id: http://svn.automattic.com/wordpress/trunk@14549 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2010-05-10 21:10:12 +00:00
parent 51e54f5a0b
commit 5bcf419601
15 changed files with 17 additions and 17 deletions

View File

@ -11,7 +11,7 @@
<?php get_header(); ?> <?php get_header(); ?>
<div id="container"> <div id="container">
<div id="content"> <div id="content" role="main">
<div id="post-0" class="post error404 not-found"> <div id="post-0" class="post error404 not-found">
<h1 class="entry-title"><?php _e( 'Not Found', 'twentyten' ); ?></h1> <h1 class="entry-title"><?php _e( 'Not Found', 'twentyten' ); ?></h1>

View File

@ -16,7 +16,7 @@
<?php get_header(); ?> <?php get_header(); ?>
<div id="container"> <div id="container">
<div id="content"> <div id="content" role="main">
<?php the_post(); ?> <?php the_post(); ?>

View File

@ -11,7 +11,7 @@
<?php get_header(); ?> <?php get_header(); ?>
<div id="container"> <div id="container">
<div id="content"> <div id="content" role="main">
<?php the_post(); ?> <?php the_post(); ?>

View File

@ -11,7 +11,7 @@
<?php get_header(); ?> <?php get_header(); ?>
<div id="container"> <div id="container">
<div id="content"> <div id="content" role="main">
<?php the_post(); ?> <?php the_post(); ?>

View File

@ -11,7 +11,7 @@
<?php get_header(); ?> <?php get_header(); ?>
<div id="container"> <div id="container">
<div id="content"> <div id="content" role="main">
<h1 class="page-title"><?php <h1 class="page-title"><?php
printf( __( 'Category Archives: %s', 'twentyten' ), '<span>' . single_cat_title( '', false ) . '</span>' ); printf( __( 'Category Archives: %s', 'twentyten' ), '<span>' . single_cat_title( '', false ) . '</span>' );

View File

@ -12,7 +12,7 @@
?> ?>
</div><!-- #main --> </div><!-- #main -->
<div id="footer"> <div id="footer" role="contentinfo">
<div id="colophon"> <div id="colophon">
<?php get_sidebar( 'footer' ); ?> <?php get_sidebar( 'footer' ); ?>

View File

@ -45,7 +45,7 @@
<div id="wrapper" class="hfeed"> <div id="wrapper" class="hfeed">
<div id="header"> <div id="header">
<div id="masthead"> <div id="masthead">
<div id="branding"> <div id="branding" role="banner">
<?php $heading_tag = ( is_home() || is_front_page() )? 'h1' : 'div'; ?> <?php $heading_tag = ( is_home() || is_front_page() )? 'h1' : 'div'; ?>
<<?php echo $heading_tag; ?> id="site-title"> <<?php echo $heading_tag; ?> id="site-title">
<span> <span>
@ -67,7 +67,7 @@
<?php endif; ?> <?php endif; ?>
</div><!-- #branding --> </div><!-- #branding -->
<div id="access"> <div id="access" role="navigation">
<div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentyten' ); ?>"><?php _e( 'Skip to content', 'twentyten' ); ?></a></div> <div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentyten' ); ?>"><?php _e( 'Skip to content', 'twentyten' ); ?></a></div>
<?php wp_nav_menu( array( 'sort_column' => 'menu_order', 'container_class' => 'menu-header' ) ); ?> <?php wp_nav_menu( array( 'sort_column' => 'menu_order', 'container_class' => 'menu-header' ) ); ?>
</div><!-- #access --> </div><!-- #access -->

View File

@ -17,7 +17,7 @@
<?php get_header(); ?> <?php get_header(); ?>
<div id="container"> <div id="container">
<div id="content"> <div id="content" role="main">
<?php <?php
/* Run the loop to output the posts. /* Run the loop to output the posts.

View File

@ -14,7 +14,7 @@
<?php get_header(); ?> <?php get_header(); ?>
<div id="container" class="onecolumn"> <div id="container" class="onecolumn">
<div id="content"> <div id="content" role="main">
<?php the_post(); ?> <?php the_post(); ?>

View File

@ -16,7 +16,7 @@
<?php get_header(); ?> <?php get_header(); ?>
<div id="container"> <div id="container">
<div id="content"> <div id="content" role="main">
<?php the_post(); ?> <?php the_post(); ?>

View File

@ -11,7 +11,7 @@
<?php get_header(); ?> <?php get_header(); ?>
<div id="container"> <div id="container">
<div id="content"> <div id="content" role="main">
<?php if ( have_posts() ) : ?> <?php if ( have_posts() ) : ?>
<h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentyten' ), '<span>' . get_search_query() . '</span>' ); ?></h1> <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentyten' ), '<span>' . get_search_query() . '</span>' ); ?></h1>

View File

@ -16,7 +16,7 @@
is_active_sidebar( 'fourth-footer-widget-area' ) is_active_sidebar( 'fourth-footer-widget-area' )
) : ) :
?> ?>
<div id="footer-widget-area"> <div id="footer-widget-area" role="complementary">
<?php if ( is_active_sidebar( 'first-footer-widget-area' ) ) : ?> <?php if ( is_active_sidebar( 'first-footer-widget-area' ) ) : ?>
<div id="first" class="widget-area"> <div id="first" class="widget-area">
<ul class="xoxo"> <ul class="xoxo">

View File

@ -8,7 +8,7 @@
*/ */
?> ?>
<div id="primary" class="widget-area"> <div id="primary" class="widget-area" role="complementary">
<ul class="xoxo"> <ul class="xoxo">
<?php if ( ! dynamic_sidebar( 'primary-widget-area' ) ) : // begin primary widget area ?> <?php if ( ! dynamic_sidebar( 'primary-widget-area' ) ) : // begin primary widget area ?>
<li id="search" class="widget-container widget_search"> <li id="search" class="widget-container widget_search">
@ -35,7 +35,7 @@
</div><!-- #primary .widget-area --> </div><!-- #primary .widget-area -->
<?php if ( is_active_sidebar( 'secondary-widget-area' ) ) : // Nothing here by default and design ?> <?php if ( is_active_sidebar( 'secondary-widget-area' ) ) : // Nothing here by default and design ?>
<div id="secondary" class="widget-area"> <div id="secondary" class="widget-area" role="complementary">
<ul class="xoxo"> <ul class="xoxo">
<?php dynamic_sidebar( 'secondary-widget-area' ); ?> <?php dynamic_sidebar( 'secondary-widget-area' ); ?>
</ul> </ul>

View File

@ -11,7 +11,7 @@
<?php get_header(); ?> <?php get_header(); ?>
<div id="container"> <div id="container">
<div id="content"> <div id="content" role="main">
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>

View File

@ -11,7 +11,7 @@
<?php get_header(); ?> <?php get_header(); ?>
<div id="container"> <div id="container">
<div id="content"> <div id="content" role="main">
<?php the_post(); ?> <?php the_post(); ?>