-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfront-page.php
33 lines (27 loc) · 955 Bytes
/
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
<?php
/**
* Template Name: Front Page
*/
get_header();
?>
<?php
if ( have_posts() ) : while ( have_posts() ) : the_post();
if ( have_rows( 'home_page_content' ) ) :
while ( have_rows( 'home_page_content' ) ) : the_row();
// Hero Image
if ( get_row_layout() == "hero_image" ) :
get_template_part('inc/section', 'hero');
endif;
if ( get_row_layout() == "social_proof" ) :
get_template_part( 'inc/section', 'proof' );
endif;
if ( get_row_layout() == "about_section" ) :
get_template_part( 'inc/section', 'about' );
endif;
if ( get_row_layout() == "services_section" ) :
get_template_part( 'inc/section', 'services' );
endif;
endwhile;
endif;
endwhile; endif;
get_footer(); ?>