forked from ThemeZee/courage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.php
46 lines (26 loc) · 1.04 KB
/
home.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
<?php get_header(); ?>
<?php // Get Theme Options from Database
$theme_options = courage_theme_options();
// Display Featured Post Slideshow if activated
if ( isset($theme_options['slider_active_blog']) and $theme_options['slider_active_blog'] == true ) :
get_template_part( 'featured-content-slider' );
endif;
?>
<div id="wrap" class="clearfix">
<section id="content" class="primary" role="main">
<?php if ( function_exists( 'themezee_breadcrumbs' ) ) themezee_breadcrumbs(); ?>
<?php // Display Magazine Homepage Widgets.
if ( ! is_paged() && is_active_sidebar( 'magazine-homepage' ) ) : ?>
<div id="magazine-homepage-widgets" class="widget-area clearfix">
<?php dynamic_sidebar( 'magazine-homepage' ); ?>
</div><!-- #magazine-homepage-widgets -->
<?php endif; ?>
<?php if (have_posts()) : while (have_posts()) : the_post();
get_template_part( 'content', $theme_options['posts_length'] );
endwhile;
courage_display_pagination();
endif; ?>
</section>
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>