forked from mirror/_s
_s: Adding ARIA navigation roles to the all the nav elements
git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@8851 d957f892-c61d-0410-b221-f235e6eecf30
This commit is contained in:
parent
44c46fd181
commit
0a42cc02cb
|
@ -35,7 +35,7 @@
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
|
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
|
||||||
<nav id="comment-nav-above" class="site-navigation comment-navigation">
|
<nav role="navigation" id="comment-nav-above" class="site-navigation comment-navigation">
|
||||||
<h1 class="assistive-text"><?php _e( 'Comment navigation', '_s' ); ?></h1>
|
<h1 class="assistive-text"><?php _e( 'Comment navigation', '_s' ); ?></h1>
|
||||||
<div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', '_s' ) ); ?></div>
|
<div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', '_s' ) ); ?></div>
|
||||||
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', '_s' ) ); ?></div>
|
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', '_s' ) ); ?></div>
|
||||||
|
@ -55,7 +55,7 @@
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
|
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
|
||||||
<nav id="comment-nav-below" class="site-navigation comment-navigation">
|
<nav role="navigation" id="comment-nav-below" class="site-navigation comment-navigation">
|
||||||
<h1 class="assistive-text"><?php _e( 'Comment navigation', '_s' ); ?></h1>
|
<h1 class="assistive-text"><?php _e( 'Comment navigation', '_s' ); ?></h1>
|
||||||
<div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', '_s' ) ); ?></div>
|
<div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', '_s' ) ); ?></div>
|
||||||
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', '_s' ) ); ?></div>
|
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', '_s' ) ); ?></div>
|
||||||
|
|
|
@ -22,7 +22,7 @@ function _s_content_nav( $nav_id ) {
|
||||||
$nav_class = 'site-navigation post-navigation';
|
$nav_class = 'site-navigation post-navigation';
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<nav id="<?php echo $nav_id; ?>" class="<?php echo $nav_class; ?>">
|
<nav role="navigation" id="<?php echo $nav_id; ?>" class="<?php echo $nav_class; ?>">
|
||||||
<h1 class="assistive-text"><?php _e( 'Post navigation', '_s' ); ?></h1>
|
<h1 class="assistive-text"><?php _e( 'Post navigation', '_s' ); ?></h1>
|
||||||
|
|
||||||
<?php if ( is_single() ) : // navigation links for single posts ?>
|
<?php if ( is_single() ) : // navigation links for single posts ?>
|
||||||
|
|
Reference in New Issue