forked from mirror/_s
_s: Make it easier to target post navigation links.
Removed in 3f4effb
when we split the template tag, this will restore
parity with `_s_paging_nav()`.
Props @gatespace for initial patch. Fixes #371.
This commit is contained in:
parent
288e5ba49c
commit
e55cb8a038
|
@ -55,10 +55,10 @@ function _s_post_nav() {
|
||||||
<nav class="navigation post-navigation" role="navigation">
|
<nav class="navigation post-navigation" role="navigation">
|
||||||
<h1 class="screen-reader-text"><?php _e( 'Post navigation', '_s' ); ?></h1>
|
<h1 class="screen-reader-text"><?php _e( 'Post navigation', '_s' ); ?></h1>
|
||||||
<div class="nav-links">
|
<div class="nav-links">
|
||||||
|
<?php
|
||||||
<?php previous_post_link( '%link', _x( '<span class="meta-nav">←</span> %title', 'Previous post link', '_s' ) ); ?>
|
previous_post_link( '<div class="nav-previous">%link</div>', _x( '<span class="meta-nav">←</span> %title', 'Previous post link', '_s' ) );
|
||||||
<?php next_post_link( '%link', _x( '%title <span class="meta-nav">→</span>', 'Next post link', '_s' ) ); ?>
|
next_post_link( '<div class="nav-next">%link</div>', _x( '%title <span class="meta-nav">→</span>', 'Next post link', '_s' ) );
|
||||||
|
?>
|
||||||
</div><!-- .nav-links -->
|
</div><!-- .nav-links -->
|
||||||
</nav><!-- .navigation -->
|
</nav><!-- .navigation -->
|
||||||
<?php
|
<?php
|
||||||
|
|
Reference in New Issue