Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 42 lines (34 sloc) 1.604 kb
98a8e4e @jayj updated
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 *
bda9730 @jayj PHPDoc changes. You can browse the documentation on http://wpthemes.jayj...
authored
8 * @package Cakifo
9 * @subpackage Template
98a8e4e @jayj updated
authored
10 */
11 ?>
12
e0833f8 @jayj Add styling for a search form in the topbar, if a child theme chooses to...
authored
13 <?php if ( is_singular( 'post' ) ) : ?>
98a8e4e @jayj updated
authored
14
9c103d8 @jayj Let's lower some of the headings to h2
authored
15 <nav class="pagination post-pagination clearfix">
0116328 @jayj Spacing clean ups
authored
16 <h3 class="assistive-text"><?php _e( 'Post navigation', 'cakifo' ); ?></h3>
98a8e4e @jayj updated
authored
17 <?php previous_post_link( '%link', '<span class="previous">&larr; %title</span>' ); ?>
18 <?php next_post_link( '%link', '<span class="next">%title &rarr;</span>' ); ?>
9c103d8 @jayj Let's lower some of the headings to h2
authored
19 </nav> <!-- .pagination.post-pagination -->
98a8e4e @jayj updated
authored
20
20b33e4 @jayj Print style, Slides 1.1.8 and clean up
authored
21 <?php
3fb3ddb @jayj Inline documentation improvements
authored
22 // Pagination if the theme supports "loop-pagination"
e0833f8 @jayj Add styling for a search form in the topbar, if a child theme chooses to...
authored
23 elseif ( ! is_singular() && current_theme_supports( 'loop-pagination' ) ) :
98d2d96 @jayj Code cleanup, a little easter egg, updated scripts and other improvement...
authored
24
9c103d8 @jayj Let's lower some of the headings to h2
authored
25 loop_pagination( array(
0116328 @jayj Spacing clean ups
authored
26 'before' => '<nav class="pagination loop-pagination"><h3 class="assistive-text">' . __( 'Post navigation', 'cakifo' ) . '</h3>',
27 'after' => '</nav>',
28 'mid_size' => 2,
d5b6def @jayj Make the Cakifo textdomain static due to changes in Hybrid Core
authored
29 'prev_text' => __( '&larr; Previous', 'cakifo' ),
30 'next_text' => __( 'Next &rarr;', 'cakifo' )
97f808e @jayj Pinking shears
authored
31 ) );
30f9e0d @jayj Code cleanup
authored
32
3fb3ddb @jayj Inline documentation improvements
authored
33 // Normal 'Previous' and 'Next' links
d5b6def @jayj Make the Cakifo textdomain static due to changes in Hybrid Core
authored
34 elseif ( ! is_singular() && $nav = get_posts_nav_link( array( 'sep' => '', 'prelabel' => '<span class="previous">' . __( '&larr; Previous', 'cakifo' ) . '</span>', 'nxtlabel' => '<span class="next">' . __( 'Next &rarr;', 'cakifo' ) . '</span>' ) ) ) : ?>
9c103d8 @jayj Let's lower some of the headings to h2
authored
35
36 <nav class="pagination">
0116328 @jayj Spacing clean ups
authored
37 <h3 class="assistive-text"><?php _e( 'Post navigation', 'cakifo' ); ?></h3>
98a8e4e @jayj updated
authored
38 <?php echo $nav; ?>
9c103d8 @jayj Let's lower some of the headings to h2
authored
39 </nav> <!-- .pagination.loop-pagination -->
98a8e4e @jayj updated
authored
40
30f9e0d @jayj Code cleanup
authored
41 <?php endif; ?>
Something went wrong with that request. Please try again.