-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsingle.php
More file actions
125 lines (84 loc) · 4.09 KB
/
single.php
File metadata and controls
125 lines (84 loc) · 4.09 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
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
$show_sidebar = hovercraft_should_show_sidebar();
$hovercraft_primary_width = get_theme_mod( 'hovercraft_primary_width', 'narrow_centered' );
?>
<?php if ( $show_sidebar ) : ?>
<div id="primary">
<?php else : ?>
<?php if ( $hovercraft_primary_width === 'narrow_centered' ) : ?>
<div id="primary-center">
<?php elseif ( $hovercraft_primary_width === 'wide' ) : ?>
<div id="primary-wide">
<?php endif; // end primary width ?>
<?php endif; // end sidebar ?>
<div id="content-wrapper">
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : ?>
<?php the_post(); ?>
<?php $hovercraft_featured_image_position = get_theme_mod( 'hovercraft_featured_image_position', 'above_title' ); ?>
<?php 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/misc/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' );
?>
<?php if ( $hovercraft_social_sharing === 'top_of_post' || $hovercraft_social_sharing === 'top_and_bottom_of_post' ) : ?>
<?php get_template_part( 'template-parts/content/social-sharing' ); ?>
<?php endif; // end social sharing ?>
<?php get_template_part( 'template-parts/content/byline-after' ); ?>
<?php else : ?>
<div id="content-padded">
<?php get_template_part( 'template-parts/misc/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' );
?>
<?php if ( $hovercraft_social_sharing === 'top_of_post' || $hovercraft_social_sharing === 'top_and_bottom_of_post' ) : ?>
<?php get_template_part( 'template-parts/content/social-sharing' ); ?>
<?php endif; // end social sharing ?>
<?php get_template_part( 'template-parts/content/byline-after' ); ?>
<?php get_template_part( 'template-parts/content/featured-image' ); ?>
<?php endif; // end featured image position ?>
<?php the_content(); ?>
<?php endwhile; // end single post ?>
<?php endif; ?><!-- end the loop -->
<?php get_template_part( 'template-parts/content/loop-after' ); ?>
<?php
$hovercraft_social_sharing = get_theme_mod( 'hovercraft_social_sharing', 'bottom_of_post' );
?>
<?php if ( $hovercraft_social_sharing === 'bottom_of_post' || $hovercraft_social_sharing === 'top_and_bottom_of_post' ) : ?>
<?php get_template_part( 'template-parts/content/social-sharing' ); ?>
<?php endif; // end 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/misc/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 if ( $show_sidebar ) : ?>
<?php get_template_part( 'sidebar' ); ?>
<?php endif; // end sidebar ?>
<div class="clear"></div>
</div><!-- inner -->
</div><!-- main -->
</div><!-- post -->
<?php get_template_part( 'footer' ); ?>