Permalink
Browse files

_s: Re-introduce `nav-` prefix for previous/next links.

This way we can select both links with `[class*="nav-"]`.
  • Loading branch information...
1 parent ee73239 commit 6056c1ed662270b84b35fff09bd561fa78b49d56 @obenland obenland committed Apr 5, 2013
Showing with 10 additions and 10 deletions.
  1. +4 −4 comments.php
  2. +2 −2 image.php
  3. +4 −4 inc/template-tags.php
View
@@ -36,8 +36,8 @@
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
<nav id="comment-nav-above" class="navigation-comment" role="navigation">
<h1 class="screen-reader-text"><?php _e( 'Comment navigation', '_s' ); ?></h1>
- <div class="previous"><?php previous_comments_link( __( '&larr; Older Comments', '_s' ) ); ?></div>
- <div class="next"><?php next_comments_link( __( 'Newer Comments &rarr;', '_s' ) ); ?></div>
+ <div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', '_s' ) ); ?></div>
+ <div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', '_s' ) ); ?></div>
</nav><!-- #comment-nav-before -->
<?php endif; // check for comment navigation ?>
@@ -56,8 +56,8 @@
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
<nav id="comment-nav-below" class="navigation-comment" role="navigation">
<h1 class="screen-reader-text"><?php _e( 'Comment navigation', '_s' ); ?></h1>
- <div class="previous"><?php previous_comments_link( __( '&larr; Older Comments', '_s' ) ); ?></div>
- <div class="next"><?php next_comments_link( __( 'Newer Comments &rarr;', '_s' ) ); ?></div>
+ <div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', '_s' ) ); ?></div>
+ <div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', '_s' ) ); ?></div>
</nav><!-- #comment-nav-below -->
<?php endif; // check for comment navigation ?>
View
@@ -35,8 +35,8 @@
</div><!-- .entry-meta -->
<nav role="navigation" id="image-navigation" class="navigation-image">
- <div class="previous"><?php previous_image_link( false, __( '<span class="meta-nav">&larr;</span> Previous', '_s' ) ); ?></div>
- <div class="next"><?php next_image_link( false, __( 'Next <span class="meta-nav">&rarr;</span>', '_s' ) ); ?></div>
+ <div class="nav-previous"><?php previous_image_link( false, __( '<span class="meta-nav">&larr;</span> Previous', '_s' ) ); ?></div>
+ <div class="nav-next"><?php next_image_link( false, __( 'Next <span class="meta-nav">&rarr;</span>', '_s' ) ); ?></div>
</nav><!-- #image-navigation -->
</header><!-- .entry-header -->
View
@@ -35,17 +35,17 @@ function _s_content_nav( $nav_id ) {
<?php if ( is_single() ) : // navigation links for single posts ?>
- <?php previous_post_link( '<div class="previous">%link</div>', '<span class="meta-nav">' . _x( '&larr;', 'Previous post link', '_s' ) . '</span> %title' ); ?>
- <?php next_post_link( '<div class="next">%link</div>', '%title <span class="meta-nav">' . _x( '&rarr;', 'Next post link', '_s' ) . '</span>' ); ?>
+ <?php previous_post_link( '<div class="nav-previous">%link</div>', '<span class="meta-nav">' . _x( '&larr;', 'Previous post link', '_s' ) . '</span> %title' ); ?>
+ <?php next_post_link( '<div class="nav-next">%link</div>', '%title <span class="meta-nav">' . _x( '&rarr;', 'Next post link', '_s' ) . '</span>' ); ?>
<?php elseif ( $wp_query->max_num_pages > 1 && ( is_home() || is_archive() || is_search() ) ) : // navigation links for home, archive, and search pages ?>
<?php if ( get_next_posts_link() ) : ?>
- <div class="previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', '_s' ) ); ?></div>
+ <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', '_s' ) ); ?></div>
<?php endif; ?>
<?php if ( get_previous_posts_link() ) : ?>
- <div class="next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', '_s' ) ); ?></div>
+ <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', '_s' ) ); ?></div>
<?php endif; ?>
<?php endif; ?>

0 comments on commit 6056c1e

Please sign in to comment.