-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfront-page.php
43 lines (37 loc) · 1.13 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
<?php
/**
* The template for displaying front-page.
*
* @package understrap
*/
?>
<?php get_header();
$container = get_theme_mod( 'understrap_container_type' );?>
<?php
while (have_rows ('modules_home_page')) :the_row ();
switch (get_row_layout()) {
case 'slider_section' :
get_template_part ('page-templates/modules/slider');
break;
case 'service_section' :
get_template_part ('page-templates/modules/steps');
break;
case 'portfolio_list' :
get_template_part ('page-templates/modules/portfolio-list');
break;
case 'about_section' :
get_template_part ('page-templates/modules/about');
break;
case 'featured_clients' :
get_template_part ('page-templates/modules/featured-clients');
break;
case 'top_blog' :
get_template_part ('page-templates/modules/blog');
break;
case 'contact-info' :
get_template_part ('page-templates/modules/contact-info');
break;
default: break;
}
endwhile; ?>
<?php get_footer(); ?>