-
Notifications
You must be signed in to change notification settings - Fork 0
/
template-home.php
190 lines (172 loc) · 11.1 KB
/
template-home.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
<?php
/**
* Template Name: Home Page
*/
get_header();
$options = get_option( 'wp10ms_options' );
// Include hero section files
if ( isset( $options['hero-select'] ) && $options['hero-select'] === 'hero-1' ) {
get_template_part('template-parts/hero-sections/hero-1');
} elseif ( isset( $options['hero-select'] ) && $options['hero-select'] === 'hero-2' ) {
get_template_part('template-parts/hero-sections/hero-2');
} elseif ( isset( $options['hero-select'] ) && $options['hero-select'] === 'hero-3' ) {
get_template_part('template-parts/hero-sections/hero-3');
} elseif ( isset( $options['hero-select'] ) && $options['hero-select'] === 'hero-4' ) {
get_template_part('template-parts/hero-sections/hero-4');
} elseif ( isset( $options['hero-select'] ) && $options['hero-select'] === 'hero-5' ) {
get_template_part('template-parts/hero-sections/hero-5');
} elseif ( isset( $options['hero-select'] ) && $options['hero-select'] === 'hero-6' ) {
get_template_part('template-parts/hero-sections/hero-6');
}
// Include feature section files
if ( isset( $options['feature-select'] ) && $options['feature-select'] === 'feature-1' ) {
get_template_part('template-parts/feature-sections/feature-1');
} elseif ( isset( $options['feature-select'] ) && $options['feature-select'] === 'feature-2' ) {
get_template_part('template-parts/feature-sections/feature-2');
} elseif ( isset( $options['feature-select'] ) && $options['feature-select'] === 'feature-3' ) {
get_template_part('template-parts/feature-sections/feature-3');
}
// Include about section files
if ( isset( $options['about-select'] ) && $options['about-select'] === 'about-us-1' ) {
get_template_part('template-parts/about-sections/about-us-1');
} elseif ( isset( $options['about-select'] ) && $options['about-select'] === 'about-us-2' ) {
get_template_part('template-parts/about-sections/about-us-2');
} elseif ( isset( $options['about-select'] ) && $options['about-select'] === 'about-us-3' ) {
get_template_part('template-parts/about-sections/about-us-3');
} elseif ( isset( $options['about-select'] ) && $options['about-select'] === 'about-us-4' ) {
get_template_part('template-parts/about-sections/about-us-4');
} elseif ( isset( $options['about-select'] ) && $options['about-select'] === 'about-us-5' ) {
get_template_part('template-parts/about-sections/about-us-5');
} elseif ( isset( $options['about-select'] ) && $options['about-select'] === 'about-us-6' ) {
get_template_part('template-parts/about-sections/about-us-6');
}
// Include service section files
if ( isset( $options['service-select'] ) && $options['service-select'] === 'service-1' ) {
get_template_part('template-parts/service-sections/service-1');
} elseif ( isset( $options['service-select'] ) && $options['service-select'] === 'service-2' ) {
get_template_part('template-parts/service-sections/service-2');
} elseif ( isset( $options['service-select'] ) && $options['service-select'] === 'service-3' ) {
get_template_part('template-parts/service-sections/service-3');
} elseif ( isset( $options['service-select'] ) && $options['service-select'] === 'service-4' ) {
get_template_part('template-parts/service-sections/service-4');
} elseif ( isset( $options['service-select'] ) && $options['service-select'] === 'service-5' ) {
get_template_part('template-parts/service-sections/service-5');
} elseif ( isset( $options['service-select'] ) && $options['service-select'] === 'service-6' ) {
get_template_part('template-parts/service-sections/service-6');
} elseif ( isset( $options['service-select'] ) && $options['service-select'] === 'service-7' ) {
get_template_part('template-parts/service-sections/service-7');
} elseif ( isset( $options['service-select'] ) && $options['service-select'] === 'service-8' ) {
get_template_part('template-parts/service-sections/service-8');
} elseif ( isset( $options['service-select'] ) && $options['service-select'] === 'service-9' ) {
get_template_part('template-parts/service-sections/service-9');
} elseif ( isset( $options['service-select'] ) && $options['service-select'] === 'service-10' ) {
get_template_part('template-parts/service-sections/service-10');
} elseif ( isset( $options['service-select'] ) && $options['service-select'] === 'service-11' ) {
get_template_part('template-parts/service-sections/service-11');
}
// // Include process section files
// if ( isset( $options['process-select'] ) && $options['process-select'] === 'process-1' ) {
// get_template_part('template-parts/process-sections/process-1');
// } elseif ( isset( $options['process-select'] ) && $options['process-select'] === 'process-2' ) {
// get_template_part('template-parts/process-sections/process-2');
// } elseif ( isset( $options['process-select'] ) && $options['process-select'] === 'process-3' ) {
// get_template_part('template-parts/process-sections/process-3');
// }
// // Include funfact section files
// if ( isset( $options['funfact-select'] ) && $options['funfact-select'] === 'funfact-1' ) {
// get_template_part('template-parts/funfact-sections/funfact-1');
// } elseif ( isset( $options['funfact-select'] ) && $options['funfact-select'] === 'funfact-2' ) {
// get_template_part('template-parts/funfact-sections/funfact-2');
// } elseif ( isset( $options['funfact-select'] ) && $options['funfact-select'] === 'funfact-3' ) {
// get_template_part('template-parts/funfact-sections/funfact-3');
// } elseif ( isset( $options['funfact-select'] ) && $options['funfact-select'] === 'funfact-4' ) {
// get_template_part('template-parts/funfact-sections/funfact-4');
// }
// // Include faq section files
// if ( isset( $options['faq-select'] ) && $options['faq-select'] === 'faq-1' ) {
// get_template_part('template-parts/faq-sections/faq-1');
// } elseif ( isset( $options['faq-select'] ) && $options['faq-select'] === 'faq-2' ) {
// get_template_part('template-parts/faq-sections/faq-2');
// }
// // Include team section files
// if ( isset( $options['team-select'] ) && $options['team-select'] === 'team-1' ) {
// get_template_part('template-parts/team-sections/team-1');
// } elseif ( isset( $options['team-select'] ) && $options['team-select'] === 'team-2' ) {
// get_template_part('template-parts/team-sections/team-2');
// } elseif ( isset( $options['team-select'] ) && $options['team-select'] === 'team-3' ) {
// get_template_part('template-parts/team-sections/team-3');
// } elseif ( isset( $options['team-select'] ) && $options['team-select'] === 'team-4' ) {
// get_template_part('template-parts/team-sections/team-4');
// } elseif ( isset( $options['team-select'] ) && $options['team-select'] === 'team-5' ) {
// get_template_part('template-parts/team-sections/team-5');
// }
// Include project section files
if ( isset( $options['project-select'] ) && $options['project-select'] === 'project-1' ) {
get_template_part('template-parts/project-sections/project-1');
} elseif ( isset( $options['project-select'] ) && $options['project-select'] === 'project-2' ) {
get_template_part('template-parts/project-sections/project-2');
} elseif ( isset( $options['project-select'] ) && $options['project-select'] === 'project-3' ) {
get_template_part('template-parts/project-sections/project-3');
} elseif ( isset( $options['project-select'] ) && $options['project-select'] === 'project-4' ) {
get_template_part('template-parts/project-sections/project-4');
} elseif ( isset( $options['project-select'] ) && $options['project-select'] === 'project-5' ) {
get_template_part('template-parts/project-sections/project-5');
} elseif ( isset( $options['project-select'] ) && $options['project-select'] === 'project-6' ) {
get_template_part('template-parts/project-sections/project-6');
}
// Include brand section files
if ( isset( $options['brand-select'] ) && $options['brand-select'] === 'brand-1' ) {
get_template_part('template-parts/brand-sections/brand-1');
} elseif ( isset( $options['brand-select'] ) && $options['brand-select'] === 'brand-2' ) {
get_template_part('template-parts/brand-sections/brand-2');
}
// Include pricing section files
if ( isset( $options['pricing-select'] ) && $options['pricing-select'] === 'pricing-1' ) {
get_template_part('template-parts/pricing-sections/pricing-1');
} elseif ( isset( $options['pricing-select'] ) && $options['pricing-select'] === 'pricing-2' ) {
get_template_part('template-parts/pricing-sections/pricing-2');
} elseif ( isset( $options['pricing-select'] ) && $options['pricing-select'] === 'pricing-3' ) {
get_template_part('template-parts/pricing-sections/pricing-3');
}
// Include testimonial section files
if ( isset( $options['testimonial-select'] ) && $options['testimonial-select'] === 'testimonial-1' ) {
get_template_part('template-parts/testimonial-sections/testimonial-1');
} elseif ( isset( $options['testimonial-select'] ) && $options['testimonial-select'] === 'testimonial-2' ) {
get_template_part('template-parts/testimonial-sections/testimonial-2');
} elseif ( isset( $options['testimonial-select'] ) && $options['testimonial-select'] === 'testimonial-3' ) {
get_template_part('template-parts/testimonial-sections/testimonial-3');
} elseif ( isset( $options['testimonial-select'] ) && $options['testimonial-select'] === 'testimonial-4' ) {
get_template_part('template-parts/testimonial-sections/testimonial-4');
}
// Include blog section files
if ( isset( $options['blog-select'] ) && $options['blog-select'] === 'blog-1' ) {
get_template_part('template-parts/blog-sections/blog-1');
} elseif ( isset( $options['blog-select'] ) && $options['blog-select'] === 'blog-2' ) {
get_template_part('template-parts/blog-sections/blog-2');
} elseif ( isset( $options['blog-select'] ) && $options['blog-select'] === 'blog-3' ) {
get_template_part('template-parts/blog-sections/blog-3');
} elseif ( isset( $options['blog-select'] ) && $options['blog-select'] === 'blog-4' ) {
get_template_part('template-parts/blog-sections/blog-4');
} elseif ( isset( $options['blog-select'] ) && $options['blog-select'] === 'blog-5' ) {
get_template_part('template-parts/blog-sections/blog-5');
} elseif ( isset( $options['blog-select'] ) && $options['blog-select'] === 'blog-6' ) {
get_template_part('template-parts/blog-sections/blog-6');
} elseif ( isset( $options['blog-select'] ) && $options['blog-select'] === 'blog-7' ) {
get_template_part('template-parts/blog-sections/blog-7');
}
// Include contact section files
if ( isset( $options['contact-select'] ) && $options['contact-select'] === 'contact-1' ) {
get_template_part('template-parts/contact-sections/contact-1');
} elseif ( isset( $options['contact-select'] ) && $options['contact-select'] === 'contact-2' ) {
get_template_part('template-parts/contact-sections/contact-2');
} elseif ( isset( $options['contact-select'] ) && $options['contact-select'] === 'contact-3' ) {
get_template_part('template-parts/contact-sections/contact-3');
}
// Include cta section files
if ( isset( $options['cta-select'] ) && $options['cta-select'] === 'cta-1' ) {
get_template_part('template-parts/cta-sections/cta-1');
} elseif ( isset( $options['cta-select'] ) && $options['cta-select'] === 'cta-2' ) {
get_template_part('template-parts/cta-sections/cta-2');
}
get_footer();
?>