/
single.php
38 lines (32 loc) · 848 Bytes
/
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
<?php
/**
* Single for post
*
* @package roast-recipe
* @since roast-recipe 1.0
*/
// File Security Check
if ( ! defined( 'ABSPATH' ) ) { exit; } ?>
<?php get_header(); ?>
<div class="container-fluid">
<div class="container">
<div class="blog-container-bg-color">
<div class="col-md-<?php echo getMainColumnSize(); ?>">
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'template/content', 'single' ); ?>
<?php endwhile; ?>
<?php
if ( comments_open() || get_comments_number() ) {
comments_template();
}
?>
</div>
<?php if( getMainColumnSize() != 12): ?>
<div class="col-md-3">
<?php get_sidebar(); ?>
</div>
<?php endif; ?>
</div>
</div>
</div>
<?php get_footer('blog'); ?>