forked from ColorlibHQ/illdy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
front-page.php
executable file
·81 lines (70 loc) · 2.47 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
<?php
/**
* The template for displaying the front page.
*
* @package WordPress
* @subpackage illdy
*/
get_header();
if( get_option( 'show_on_front' ) == 'posts' ): ?>
<div class="container">
<div class="row">
<div class="col-sm-7">
<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;
else:
get_template_part( 'template-parts/content', 'none' );
endif;
?>
<?php do_action( 'illdy_after_content_above_footer' ); ?>
</section><!--/#blog-->
</div><!--/.col-sm-7-->
<?php get_sidebar(); ?>
</div><!--/.row-->
</div><!--/.container-->
<?php
else:
$sections_order_first_section = get_theme_mod( 'illdy_general_sections_order_first_section', 1 );
$sections_order_second_section = get_theme_mod( 'illdy_general_sections_order_second_section', 2 );
$sections_order_third_section = get_theme_mod( 'illdy_general_sections_order_third_section', 3 );
$sections_order_fourth_section = get_theme_mod( 'illdy_general_sections_order_fourth_section', 4 );
$sections_order_fifth_section = get_theme_mod( 'illdy_general_sections_order_fifth_section', 5 );
$sections_order_sixth_section = get_theme_mod( 'illdy_general_sections_order_sixth_section', 6 );
$sections_order_seventh_section = get_theme_mod( 'illdy_general_sections_order_seventh_section', 7 );
$sections_order_eighth_section = get_theme_mod( 'illdy_general_sections_order_eighth_section', 8 );
if( have_posts() ):
while( have_posts() ): the_post();
$static_page_content = get_the_content();
if ( $static_page_content != '' ) : ?>
<section class="front-page-section" id="static-page-content">
<div class="section-header">
<div class="container">
<div class="row">
<div class="col-sm-12">
<h3><?php the_title(); ?></h3>
</div><!--/.col-sm-12-->
</div><!--/.row-->
</div><!--/.container-->
</div><!--/.section-header-->
<div class="section-content">
<div class="container-fluid">
<div class="row">
<div class="col-sm-10 col-sm-offset-1">
<?php echo $static_page_content; ?>
</div>
</div>
</div>
</div>
</section>
<?php endif;
endwhile;
endif;
illdy_sections();
endif;
get_footer(); ?>