This repository was archived by the owner on Jul 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsingle.php
More file actions
executable file
·95 lines (82 loc) · 2.72 KB
/
single.php
File metadata and controls
executable file
·95 lines (82 loc) · 2.72 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?php
/**
* The template for displaying single posts
*
* @since 1.0
*/
get_header(); ?>
<header class="page-titles">
<div class="container clearfix">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<!-- Post title -->
<h1 class="entry-title"><?php the_title(); ?></h1>
<!-- Subtitle -->
<?php if ( get_post_meta( $post->ID, 'subtitle', true ) ) { ?>
<h3 class="entry-subtitle"><?php echo get_post_meta( $post->ID, 'subtitle', true ) ?></h3>
<?php } ?>
<!-- Post meta -->
<h3 class="entry-subtitle">
<span class="blog-entry-date">
<span>
<em><?php _e( 'by', 'north' ); ?></em> <?php the_author_posts_link(); ?>
</span>
<span>
<em><?php _e( 'on', 'north' ); ?></em> <?php echo get_the_date(); ?>
</span>
<span>
<em><?php _e( 'with', 'north' ); ?></em> <?php comments_popup_link( __( 'No Comments', 'north' ), __( '1 Comment', 'north' ), __( '% Comments', 'north' ) ); ?></a>
</span>
</span>
</h3>
<?php endwhile; ?>
<?php endif; ?>
</div>
</header>
<section class="main">
<div class="container clearfix">
<div id="content">
<div class="posts">
<!-- Grab the posts -->
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<article <?php post_class('post'); ?>>
<div class="box-wrap">
<div class="box">
<!-- post content -->
<div class="post-content">
<!-- Grab featured image, gallery, or video embed -->
<?php get_template_part( 'template-gallery' ); ?>
<?php the_content( __( 'Read More','north' ) ); ?>
<div class="pagelink">
<?php wp_link_pages(); ?>
</div>
<!-- Grab meta template -->
<?php get_template_part( 'template-meta' ); ?>
</div><!-- post content -->
</div><!-- box -->
</div><!-- box wrap -->
</article><!-- post-->
<?php endwhile; ?>
<?php endif; ?>
</div><!-- posts -->
<!-- post navigation -->
<?php if( is_single() ) { ?>
<div class="post-navigation-wrap">
<ul class="post-navigation clearfix">
<li class="prev-nav"><?php previous_post_link('%link', '%title'); ?></li>
<li class="next-nav"><?php next_post_link('%link', '%title'); ?></li>
</ul>
</div>
<?php } ?>
<!-- comments -->
<?php if ( 'open' == $post->comment_status ) { ?>
<div id="comment-jump" class="comments">
<?php comments_template(); ?>
</div>
<?php } ?>
</div><!-- content -->
<!-- Sidebar -->
<?php get_sidebar(); ?>
</div><!-- container -->
</section><!-- main -->
<!-- footer -->
<?php get_footer(); ?>