-
Notifications
You must be signed in to change notification settings - Fork 4
/
template-homepage.php
50 lines (44 loc) · 1.28 KB
/
template-homepage.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
<?php
/**
Template Name: Home Page
*/
$wallstreet_pro_options=theme_data_setup();
$current_options = wp_parse_args( get_option( 'wallstreet_pro_options', array() ), $wallstreet_pro_options );
get_header();
get_template_part('index','slider');
$data =is_array($current_options['front_page_data']) ? $current_options['front_page_data'] : explode(",",$current_options['front_page_data']);
if($data)
{
foreach($data as $key=>$value)
{
switch($value)
{
case 'service':
//****** get index service ********
get_template_part('index', 'service');
break;
case 'portfolio':
//****** get index project ********
get_template_part('index', 'portfolio');
break;
case 'testimonials':
//****** get index testimonials ********
get_template_part('index', 'testimonials');
break;
case 'blog':
//****** get index recent blog ********
get_template_part('index', 'blog');
break;
case 'features':
//****** get index Features Section ********
get_template_part('index', 'features');
break;
case 'client':
//****** get index client ********
get_template_part('index', 'client');
break;
}
}
get_footer();
}
?>