Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 34 lines (26 sloc) 1.31 kb
7c50385 Adding the initial Prototype 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 *
839713b Updates galore for the Prototype theme.
greenshady authored
8 * @package Prototype
7c50385 Adding the initial Prototype files and folders.
greenshady authored
9 * @subpackage Template
10 */
11 ?>
12
13 <?php if ( is_attachment() ) : ?>
14
a1b4520 Updates galore for Prototype.
greenshady authored
15 <div class="loop-nav">
f11b428 @justintadlock Change all instances of hybrid_get_textdomain() to 'prototype'.
authored
16 <?php previous_post_link( '%link', '<span class="previous">' . __( '&larr; Return to entry', 'prototype' ) . '</span>' ); ?>
a1b4520 Updates galore for Prototype.
greenshady authored
17 </div><!-- .loop-nav -->
7c50385 Adding the initial Prototype files and folders.
greenshady authored
18
19 <?php elseif ( is_singular( 'post' ) ) : ?>
20
a1b4520 Updates galore for Prototype.
greenshady authored
21 <div class="loop-nav">
f11b428 @justintadlock Change all instances of hybrid_get_textdomain() to 'prototype'.
authored
22 <?php previous_post_link( '<div class="previous">' . __( 'Previous Entry: %link', 'prototype' ) . '</div>', '%title' ); ?>
23 <?php next_post_link( '<div class="next">' . __( 'Next Entry: %link', 'prototype' ) . '</div>', '%title' ); ?>
a1b4520 Updates galore for Prototype.
greenshady authored
24 </div><!-- .loop-nav -->
7c50385 Adding the initial Prototype files and folders.
greenshady authored
25
26 <?php elseif ( !is_singular() && current_theme_supports( 'loop-pagination' ) ) : loop_pagination(); ?>
27
f11b428 @justintadlock Change all instances of hybrid_get_textdomain() to 'prototype'.
authored
28 <?php elseif ( !is_singular() && $nav = get_posts_nav_link( array( 'sep' => '', 'prelabel' => '<span class="previous">' . __( '&larr; Previous', 'prototype' ) . '</span>', 'nxtlabel' => '<span class="next">' . __( 'Next &rarr;', 'prototype' ) . '</span>' ) ) ) : ?>
7c50385 Adding the initial Prototype files and folders.
greenshady authored
29
a1b4520 Updates galore for Prototype.
greenshady authored
30 <div class="loop-nav">
7c50385 Adding the initial Prototype files and folders.
greenshady authored
31 <?php echo $nav; ?>
a1b4520 Updates galore for Prototype.
greenshady authored
32 </div><!-- .loop-nav -->
7c50385 Adding the initial Prototype files and folders.
greenshady authored
33
34 <?php endif; ?>
Something went wrong with that request. Please try again.