-
Notifications
You must be signed in to change notification settings - Fork 0
/
template-project.php
48 lines (32 loc) · 1.43 KB
/
template-project.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
<?php
/**
* Template Name: Case Study Page
*/
get_header();
?>
<?php $options = get_option( 'wp10ms_options' );?>
<?php
get_template_part('template-parts/global-elements/breadcrumb');
get_template_part('template-parts/project-sections/project-1');
// 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 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');
}
?>
<?php get_footer(); ?>