-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfront-page.php
92 lines (79 loc) · 2.79 KB
/
front-page.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?php
/**
* Template to show the front page.
*
* @package ThemeGrill
* @subpackage ColorMag
* @since ColorMag 1.0
*/
get_header(); ?>
<div class="front-page-top-section clearfix">
<div class="widget_slider_area">
<?php
if( is_active_sidebar( 'colormag_front_page_slider_area' ) ) {
if ( !dynamic_sidebar( 'colormag_front_page_slider_area' ) ):
endif;
}
?>
</div>
<div class="widget_beside_slider">
<?php
if( is_active_sidebar( 'colormag_front_page_area_beside_slider' ) ) {
if ( !dynamic_sidebar( 'colormag_front_page_area_beside_slider' ) ):
endif;
}
?>
</div>
</div>
<div class="main-content-section clearfix">
<div id="primary">
<div id="content" class="clearfix">
<?php
if( is_active_sidebar( 'colormag_front_page_content_top_section' ) ) {
if ( !dynamic_sidebar( 'colormag_front_page_content_top_section' ) ):
endif;
}
if( is_active_sidebar( 'colormag_front_page_content_middle_left_section' ) || is_active_sidebar( 'colormag_front_page_content_middle_right_section' )) {
?>
<div class="tg-one-half">
<?php
if ( !dynamic_sidebar( 'colormag_front_page_content_middle_left_section' ) ):
endif;
?>
</div>
<div class="tg-one-half tg-one-half-last">
<?php
if ( !dynamic_sidebar( 'colormag_front_page_content_middle_right_section' ) ):
endif;
?>
</div>
<div class="clearfix"></div>
<?php
}
if( is_active_sidebar( 'colormag_front_page_content_bottom_section' ) ) {
if ( !dynamic_sidebar( 'colormag_front_page_content_bottom_section' ) ):
endif;
}
if (get_theme_mod('colormag_hide_blog_front', 0) == 0): ?>
<div class="article-container">
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php
if ( is_front_page() && is_home() ) {
get_template_part( 'content', '' );
} elseif ( is_front_page() ) {
get_template_part( 'content', 'page' );
}
?>
<?php endwhile; ?>
<?php get_template_part( 'navigation', 'none' ); ?>
<?php else : ?>
<?php get_template_part( 'no-results', 'none' ); ?>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
</div>
<?php colormag_sidebar_select(); ?>
</div>
<?php get_footer(); ?>