-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
67 lines (66 loc) · 1.52 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
<?php
/**
* Single blog post template.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package archetype
*/
get_header(); ?>
<div id="content" <?php echo ( has_post_thumbnail() ) ? 'class="noGap"' : ''; ?>>
<?php if ( has_post_thumbnail() ) { ?>
<div class="blog-image">
<div id="page-header" class="hero">
<div class="container">
<div class="twelve columns">
<div class="banner">
<img src="<?php the_post_thumbnail_url(); ?>" alt="<?php the_title(); ?>">
</div>
</div>
</div>
</div>
</div>
<?php } ?>
<div class="container blog-post">
<div class="nine columns">
<?php
if ( have_posts() ) {
while ( have_posts() ) {
the_post();
?>
<div class="post white padded rounded shadow" id="post-<?php the_ID(); ?>">
<div id="bread">
<?php
if ( function_exists( 'yoast_breadcrumb' ) ) {
yoast_breadcrumb();
}
if ( function_exists( 'seopress_display_breadcrumbs' ) ) {
seopress_display_breadcrumbs();
}
?>
</div>
<h1><?php the_title(); ?></h1>
<div class="entry">
<?php the_content(); ?>
</div>
<?php get_template_part( 'includes/meta' ); ?>
</div>
<div class="white padded rounded shadow" id="comment-list">
<?php
if ( comments_open() || get_comments_number() ) {
comments_template();
} else {
?>
<em><?php echo esc_html__( 'No comments yet.', 'archetype' ); ?></em>
<?php
}
?>
</div>
<?php
}
}
?>
</div>
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>