Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 35 lines (26 sloc) 1.585 kb
b32764d Importing the Trending theme files and folders.
greenshady authored
1 <?php
2 /**
3 * Loop Nav Template
4 *
5 * This template is used to show your your next/previous post links on singular pages and
6 * the next/previous posts links on the home/posts page and archive pages.
7 *
c4bc693 Ready for beta 1.
greenshady authored
8 * @package Trending
b32764d Importing the Trending theme files and folders.
greenshady authored
9 * @subpackage Template
10 */
11 ?>
12
13 <?php if ( is_attachment() ) : ?>
14
15 <div class="loop-nav">
d596624 @justintadlock Don't use function for theme's textdomain. Hardcode it.
authored
16 <?php previous_post_link( '%link', '<span class="previous">' . __( '<span class="meta-nav">&larr;</span> Return to entry', 'trending' ) . '</span>' ); ?>
b32764d Importing the Trending theme files and folders.
greenshady authored
17 </div><!-- .loop-nav -->
18
19 <?php elseif ( is_singular( 'post' ) ) : ?>
20
21
22 <div class="loop-nav">
d596624 @justintadlock Don't use function for theme's textdomain. Hardcode it.
authored
23 <?php previous_post_link( '%link', '<span class="previous">' . __( '<span class="meta-nav">&larr;</span> Previous', 'trending' ) . '</span>' ); ?>
24 <?php next_post_link( '%link', '<span class="next">' . __( 'Next <span class="meta-nav">&rarr;</span>', 'trending' ) . '</span>' ); ?>
b32764d Importing the Trending theme files and folders.
greenshady authored
25 </div><!-- .loop-nav -->
26
d596624 @justintadlock Don't use function for theme's textdomain. Hardcode it.
authored
27 <?php elseif ( !is_singular() && current_theme_supports( 'loop-pagination' ) ) : loop_pagination( array( 'prev_text' => __( '<span class="meta-nav">&larr;</span> Previous', 'trending' ), 'next_text' => __( 'Next <span class="meta-nav">&rarr;</span>', 'trending' ) ) ); ?>
b32764d Importing the Trending theme files and folders.
greenshady authored
28
d596624 @justintadlock Don't use function for theme's textdomain. Hardcode it.
authored
29 <?php elseif ( !is_singular() && $nav = get_posts_nav_link( array( 'sep' => '', 'prelabel' => '<span class="previous">' . __( '<span class="meta-nav">&larr;</span> Previous', 'trending' ) . '</span>', 'nxtlabel' => '<span class="next">' . __( 'Next &rarr;', 'trending' ) . '</span>' ) ) ) : ?>
b32764d Importing the Trending theme files and folders.
greenshady authored
30
31 <div class="loop-nav">
32 <?php echo $nav; ?>
33 </div><!-- .loop-nav -->
34
35 <?php endif; ?>
Something went wrong with that request. Please try again.