-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
single.php
107 lines (67 loc) · 3.93 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
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
96
97
98
99
100
101
102
103
104
105
106
107
<?php get_template_part( 'header' ); ?>
<?php get_template_part( 'template-parts/header/header-basic' ); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div id="main">
<div class="inner">
<?php
$hovercraft_sidebar_appears = get_theme_mod( 'hovercraft_sidebar_appears', 'everywhere' );
$hovercraft_primary_width = get_theme_mod( 'hovercraft_primary_width', 'narrow_centered' );
if ( $hovercraft_sidebar_appears == 'everywhere' || $hovercraft_sidebar_appears == 'posts_only' ) { ?><div id="primary"><?php }
elseif ( $hovercraft_sidebar_appears == 'none' ) {
if ( $hovercraft_primary_width == 'narrow_centered' ) { ?><div id="primary-center"><?php }
elseif ( $hovercraft_primary_width == 'wide' ) { ?><div id="primary-wide"><?php }
} ?>
<div id="content-wrapper">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php $hovercraft_featured_image_position = get_theme_mod( 'hovercraft_featured_image_position', 'above_title' );
if ( $hovercraft_featured_image_position == 'above_title' ) { ?>
<?php get_template_part( 'template-parts/content/featured-image' ); ?>
<div id="content-padded">
<?php get_template_part( 'template-parts/content/breadcrumbs' ); ?>
<?php get_template_part( 'template-parts/content/title' ); ?>
<?php get_template_part( 'template-parts/content/byline' ); ?>
<?php $hovercraft_social_sharing = get_theme_mod( 'hovercraft_social_sharing', 'bottom_of_post' );
if ( $hovercraft_social_sharing == 'top_of_post' || $hovercraft_social_sharing == 'top_and_bottom_of_post' ) {
get_template_part( 'template-parts/content/social-sharing' );
} ?>
<?php get_template_part( 'template-parts/content/byline-after' ); ?>
<?php } else { ?>
<div id="content-padded">
<?php get_template_part( 'template-parts/content/breadcrumbs' ); ?>
<?php get_template_part( 'template-parts/content/title' ); ?>
<?php get_template_part( 'template-parts/content/byline' ); ?>
<?php $hovercraft_social_sharing = get_theme_mod( 'hovercraft_social_sharing', 'bottom_of_post' );
if ( $hovercraft_social_sharing == 'top_of_post' || $hovercraft_social_sharing == 'top_and_bottom_of_post' ) {
get_template_part( 'template-parts/content/social-sharing' );
} ?>
<?php get_template_part( 'template-parts/content/byline-after' ); ?>
<?php get_template_part( 'template-parts/content/featured-image' ); ?>
<?php } ?>
<?php the_content(); ?>
<?php endwhile; endif; ?><!-- the loop -->
<?php get_template_part( 'template-parts/content/loop-after' ); ?>
<?php $hovercraft_social_sharing = get_theme_mod( 'hovercraft_social_sharing', 'bottom_of_post' );
if ( $hovercraft_social_sharing == 'bottom_of_post' || $hovercraft_social_sharing == 'top_and_bottom_of_post' ) {
get_template_part( 'template-parts/content/social-sharing' );
} ?>
<?php get_template_part( 'template-parts/content/related-posts' ); ?>
<?php get_template_part( 'template-parts/content/biography' ); ?>
<?php get_template_part( 'template-parts/content/tags' ); ?>
<?php get_template_part( 'template-parts/content/link-pages' ); ?>
<?php get_template_part( 'template-parts/content/pagination' ); ?>
</div><!-- content-padded -->
<div class="clear"></div>
</div><!-- content-wrapper -->
<!-- comments template outside of post content div -->
<?php get_template_part( 'template-parts/content/comments' ); ?>
<div class="clear"></div>
</div><!-- primary -->
<?php $hovercraft_sidebar_appears = get_theme_mod( 'hovercraft_sidebar_appears', 'everywhere' );
if ( $hovercraft_sidebar_appears == 'everywhere' || $hovercraft_sidebar_appears == 'posts_only' ) {
get_template_part( 'sidebar' );
} ?>
<div class="clear"></div>
</div><!-- inner -->
</div><!-- main -->
</div><!-- post -->
<?php get_template_part( 'footer' ); ?>