Twenty Twelve: add ARIA role of "navigation" to the all nav elements. Props iandstewart, see #19978.
git-svn-id: https://develop.svn.wordpress.org/trunk@19960 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e8635f412d
commit
c3e0e18f8a
@ -36,7 +36,7 @@
|
||||
</h2>
|
||||
|
||||
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
|
||||
<nav id="comment-nav-above">
|
||||
<nav id="comment-nav-above" role="navigation">
|
||||
<h1 class="assistive-text section-heading"><?php _e( 'Comment navigation', 'twentytwelve' ); ?></h1>
|
||||
<div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentytwelve' ) ); ?></div>
|
||||
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentytwelve' ) ); ?></div>
|
||||
@ -48,7 +48,7 @@
|
||||
</ol>
|
||||
|
||||
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
|
||||
<nav id="comment-nav-below">
|
||||
<nav id="comment-nav-below" role="navigation">
|
||||
<h1 class="assistive-text section-heading"><?php _e( 'Comment navigation', 'twentytwelve' ); ?></h1>
|
||||
<div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentytwelve' ) ); ?></div>
|
||||
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentytwelve' ) ); ?></div>
|
||||
|
@ -225,7 +225,7 @@ function twentytwelve_content_nav( $nav_id ) {
|
||||
global $wp_query;
|
||||
|
||||
if ( $wp_query->max_num_pages > 1 ) : ?>
|
||||
<nav id="<?php echo $nav_id; ?>">
|
||||
<nav id="<?php echo $nav_id; ?>" role="navigation">
|
||||
<h3 class="assistive-text"><?php _e( 'Post navigation', 'twentytwelve' ); ?></h3>
|
||||
<div class="nav-previous alignleft"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentytwelve' ) ); ?></div>
|
||||
<div class="nav-next alignright"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?></div>
|
||||
|
@ -35,7 +35,7 @@ get_header(); ?>
|
||||
<?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
|
||||
</div><!-- .entry-meta -->
|
||||
|
||||
<nav id="image-navigation">
|
||||
<nav id="image-navigation" role="navigation">
|
||||
<span class="previous-image"><?php previous_image_link( false, __( '← Previous', 'twentytwelve' ) ); ?></span>
|
||||
<span class="next-image"><?php next_image_link( false, __( 'Next →', 'twentytwelve' ) ); ?></span>
|
||||
</nav><!-- #image-navigation -->
|
||||
|
Loading…
Reference in New Issue
Block a user