-
Notifications
You must be signed in to change notification settings - Fork 107
/
page_one-column-template.php
executable file
·73 lines (57 loc) · 2.09 KB
/
page_one-column-template.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
/**
* A clean one-column page template without the navigation bar or site info
*
* Template Name: One-Column, No Nav Bar
*
* @package Independent Publisher
* @since Independent Publisher 1.0
*/
get_header(); ?>
<style type="text/css">
#masthead {
display: none;
}
</style>
<div id="primary" class="content-area">
<div id="content" class="site-content" role="main">
<?php while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php if ( has_post_thumbnail() ) : ?>
<?php the_post_thumbnail( 'independent_publisher_post_thumbnail' ); ?>
<?php endif; ?>
<header class="entry-header">
<h1 class="entry-title"><?php the_title(); ?></h1>
</header>
<!-- .entry-header -->
<div class="entry-content">
<?php the_content(); ?>
<?php if (function_exists('wp_pagenavi')) : // WP-PageNavi support ?>
<?php wp_pagenavi( array( 'type' => 'multipart' ) ); ?>
<?php else: ?>
<?php wp_link_pages(
array(
'before' => '<div class="page-links-next-prev">',
'after' => '</div>',
'nextpagelink' => '<button class="next-page-nav">' . __( 'Next page →', 'independent-publisher' ) . '</button>',
'previouspagelink' => '<button class="previous-page-nav">' . __( '← Previous page', 'independent-publisher' ) . '</button>',
'next_or_number' => 'next'
)
); ?>
<?php wp_link_pages(
array(
'before' => '<div class="page-links">' . __( 'Pages:', 'independent-publisher' ),
'after' => '</div>'
)
); ?>
<?php endif; ?>
</div>
<!-- .entry-content -->
<?php edit_post_link( __( 'Edit', 'independent-publisher' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?>
</article><!-- #post-<?php the_ID(); ?> -->
<?php comments_template( '', true ); ?>
<?php endwhile; // end of the loop. ?>
</div>
<!-- #content .site-content -->
</div><!-- #primary .content-area -->
<?php get_footer(); ?>