-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
69 lines (57 loc) · 1.79 KB
/
single.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
<?php
/**
* The Template for displaying all single posts.
*
* @package YIKES Starter
*/
get_header(); ?>
<div class="archive-subheader">
<div class="jumbotron">
<div class="container">
<header class="archive-header">
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
</header><!-- .archive-header -->
</div><!-- .container -->
</div><!-- /.jumbotron -->
</div>
<div id="main" tabindex="-1" class="site-main" role="main">
<div class="container">
<div class="row">
<div class="col-sm-9">
<div id="primary" class="content-area">
<div id="content" class="site-content clearfix" role="main">
<?php
while ( have_posts() ) :
the_post();
// Check for custom post types.
if ( 'post' === get_post_type() ) {
get_template_part( 'template-parts/content/single' );
} else {
// NOTE! We use single-post_type_{shows|character}.php for the
// individual CPTs.
get_template_part( 'template-parts/content/' . get_post_type() );
}
// Force Jetpack to display sharing links where we want them.
lwtv_plugin()->jetpack_post_meta();
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || '0' !== get_comments_number() ) {
comments_template();
}
// Only show post nav on posts (to not break facet).
if ( 'post' === get_post_type() ) {
yikes_starter_post_nav();
}
endwhile;
// end of the loop.
?>
</div><!-- #content -->
</div><!-- #primary -->
</div><!-- .col-sm-9 -->
<div class="col-sm-3 site-sidebar site-loop">
<?php get_sidebar(); ?>
</div><!-- .col-sm-3 -->
</div><!-- .row -->
</div><!-- .container -->
</div><!-- #main -->
<?php
get_footer();