wordpress/php-fpm/wordpress_files/themes/responsive/loop-nav.php
2020-05-22 01:40:23 +00:00

34 lines
847 B
PHP

<?php
/**
* Loop Navigation Template-Part File
*
* @file loop-nav.php
* @package Responsive
* @author CyberChimps
* @copyright 2020 CyberChimps
* @license license.txt
* @version Release: 1.1.0
* @filesource wp-content/themes/responsive/loop-nav.php
* @link http://codex.wordpress.org/Templates
* @since available since Release 1.0
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Output Prev/Next Posts Links
*/
if ( $wp_query->max_num_pages > 1 ) :
?>
<div class="navigation">
<div class="previous"><?php next_posts_link( __( '&#8249; Older posts', 'responsive' ) ); ?></div>
<div class="next"><?php previous_posts_link( __( 'Newer posts &#8250;', 'responsive' ) ); ?></div>
</div><!-- end of .navigation -->
<?php
endif;