-
Notifications
You must be signed in to change notification settings - Fork 0
/
template-about.php
82 lines (67 loc) · 3.72 KB
/
template-about.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
<?php
/**
* Template Name: About Page
*/
get_header();
$options = get_option( 'wp10ms_options' );
get_template_part('template-parts/global-elements/breadcrumb');
get_template_part('template-parts/service-sections/service-6');
get_template_part('template-parts/testimonial-sections/testimonial-3');
// 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 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 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();
?>