-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
executable file
·44 lines (39 loc) · 966 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
39
40
41
42
43
44
<?php
/**
* The template for displaying the single.
*
* @package WordPress
* @subpackage illdy
*/
global $post;
$sidebar_enabled = get_post_meta( $post->ID, 'illdy-sidebar-enable', true );
?>
<?php get_header(); ?>
<div class="container">
<div class="row">
<?php if ( is_active_sidebar( 'blog-sidebar' ) ) { ?>
<div class="col-sm-8">
<?php } else { ?>
<div class="col-sm-8 col-sm-offset-2">
<?php } ?>
<section id="blog">
<?php
if ( have_posts() ) :
while ( have_posts() ) :
the_post();
get_template_part( 'template-parts/content', 'single' );
endwhile;
endif;
?>
</section><!--/#blog-->
</div><!--/.col-sm-7-->
<?php if ( is_active_sidebar( 'blog-sidebar' ) ) { ?>
<div class="col-sm-4">
<div id="sidebar">
<?php dynamic_sidebar( 'blog-sidebar' ); ?>
</div>
</div>
<?php } ?>
</div><!--/.row-->
</div><!--/.container-->
<?php get_footer(); ?>