-
Notifications
You must be signed in to change notification settings - Fork 0
/
loop-nav.php
34 lines (29 loc) · 849 Bytes
/
loop-nav.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
// Exit if accessed directly
if( !defined( 'ABSPATH' ) ) {
exit;
}
/**
* Loop Navigation Template-Part File
*
* @file loop-nav.php
* @package Responsive
* @author Emil Uzelac
* @copyright 2003 - 2014 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
*/
/**
* Output Prev/Next Posts Links
*/
if( $wp_query->max_num_pages > 1 ) :
?>
<div class="navigation">
<div class="previous"><?php next_posts_link( __( '‹ Older posts', 'responsive' ) ); ?></div>
<div class="next"><?php previous_posts_link( __( 'Newer posts ›', 'responsive' ) ); ?></div>
</div><!-- end of .navigation -->
<?php
endif;