Image navigation improvements

Add a navigation role, replace spans with divs and also add a
'.meta-nav' for both previous and next image links.
This commit is contained in:
Eduardo Zulian 2013-03-16 14:50:02 -03:00
parent 1ba2f62752
commit 37253e11f4
1 changed files with 3 additions and 3 deletions

View File

@ -35,9 +35,9 @@ get_header();
<?php edit_post_link( __( 'Edit', '_s' ), '<span class="sep"> | </span> <span class="edit-link">', '</span>' ); ?>
</div><!-- .entry-meta -->
<nav id="image-navigation" class="navigation-image">
<span class="previous"><?php previous_image_link( false, __( '&larr; Previous', '_s' ) ); ?></span>
<span class="next"><?php next_image_link( false, __( 'Next &rarr;', '_s' ) ); ?></span>
<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>
</nav><!-- #image-navigation -->
</header><!-- .entry-header -->