-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
61 lines (51 loc) · 1.02 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
<?php
/**
* Single Post Template
*
* @since 1.0.0
*
* @package BoxOfScraps
* @subpackage Templates
*/
?>
<?php get_header(); ?>
<?php
do_action( 'boxofscraps_content_before' );
?>
<div class="container py-4">
<?php if ( have_posts() ) : ?>
<?php
do_action( 'boxofscraps_loop_before' );
?>
<div class="columns">
<?php
while ( have_posts() ) :
the_post();
?>
<div class="column">
<div class="post-heading mb-4">
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
<?php the_date(); ?>
</div>
<?php the_content(); ?>
</div>
<?php endwhile; ?>
</div>
<?php
do_action( 'boxofscraps_loop_after' );
?>
<?php
// If comments are open or there is at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) {
comments_template();
}
?>
<?php else : ?>
<?php get_template_part( 'content', 'none' ); ?>
<?php endif; ?>
</div>
<?php
do_action( 'boxofscraps_content_after' );
?>
<?php
get_footer();