public/wordpress/wp-content/themes/puro/inc/template-tags.php
/**
 * Display navigation to next/previous post when applicable.
 *
 * @todo Remove this function when WordPress 4.3 is released.
 */
Display navigation to next/previous post when applicable.
@todo Remove this function when WordPress 4.3 is released.
Display navigation to next / previous post when applicable . @todo Remove this function when WordPress 4 . 3 is released .
function the_post_navigation() {
	$previous = ( is_attachment() ) ? get_post( get_post()->post_parent ) : get_adjacent_post( false, '', true );
	$next     = get_adjacent_post( false, '', false );
	if ( ! $next && ! $previous ) {
		return;
	}
	?>
	<nav class="navigation post-navigation" role="navigation">
		<h1 class="screen-reader-text"><?php _e( 'Post navigation', 'puro' ); ?></h1>
		<div class="nav-links">
			<?php
				previous_post_link( '<div class="nav-previous">%link</div>', _x( '%title', 'Previous post link', 'puro' ) );
				next_post_link(     '<div class="nav-next">%link</div>',     _x( '%title', 'Next post link',     'puro' ) );
			?>
		</div><!-- .nav-links -->
	</nav><!-- .navigation -->
	<?php
}
function the_post_navigation ( ) { $ previous = ( is_attachment ( ) ) ? get_post ( get_post ( ) -> post_parent ) : get_adjacent_post ( false , '' , true ) ; $ next = get_adjacent_post ( false , '' , false ) ; if ( ! $ next && ! $ previous ) { return ; } ?> <nav class="navigation post-navigation" role="navigation">
		<h1 class="screen-reader-text"> <?php _e ( 'Post navigation' , 'puro' ) ; ?> </h1>
		<div class="nav-links">
			 <?php previous_post_link ( '<div class="nav-previous">%link</div>' , _x ( '%title' , 'Previous post link' , 'puro' ) ) ; next_post_link ( '<div class="nav-next">%link</div>' , _x ( '%title' , 'Next post link' , 'puro' ) ) ; ?> </div><!-- .nav-links -->
	</nav><!-- .navigation -->
	 <?php }
Display navigation to next/previous post when applicable.
Display navigation to next / previous post when applicable .
// Don't print empty markup if there's nowhere to navigate.