forked from ColorlibHQ/illdy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
executable file
·49 lines (42 loc) · 1.13 KB
/
index.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
<?php
/**
* The template for dispalying the index.
*
* @package WordPress
* @subpackage illdy
*/
?>
<?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 do_action( 'illdy_above_content_after_header' ); ?>
<?php
if ( have_posts() ):
while ( have_posts() ):
the_post();
get_template_part( 'template-parts/content', get_post_format() );
endwhile;
wp_reset_query();
else:
get_template_part( 'template-parts/content', 'none' );
endif;
?>
<?php do_action( 'illdy_after_content_above_footer' ); ?>
</section><!--/#blog-->
</div><!--/.col-sm-7/12-->
<?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(); ?>