-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathservices.php
118 lines (106 loc) · 3.55 KB
/
services.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
<?php /* Template Name: Services */ ?>
<?php
/*
* The Services page template.
*
* @package Valhalla
* @subpackage Templates
*/
// Do not allow directly accessing this file.
if ( ! defined( 'ABSPATH' ) ) {
exit( 'Direct script access denied.' );
}
?>
<?php get_header('2'); ?>
<div class="main-content-area">
<div class="container-fluid services-section1">
<div class="row services-section1-border">
<div class="col-md">
<p class="services-section1-heading">
<?php echo esc_html( get_theme_mod( 'valhalla_services_s1_heading') ); ?>
</p>
<?php if ( true == get_theme_mod( 'valhalla_services_s1_html_enable') ) : ?>
<?php echo wp_kses_post( get_theme_mod( 'valhalla_services_s1_html') ); ?>
<?php else : ?>
<p class="services-section1-text">
<?php echo esc_html( get_theme_mod( 'valhalla_services_s1_text') ); ?>
</p>
<?php endif; ?>
</div>
<div class="col-md services-section1-img-div">
<?php if ( get_theme_mod( 'valhalla_services_s1_image') ) : ?>
<img src="<?php echo esc_url( get_theme_mod( 'valhalla_services_s1_image') ); ?>" class="img-fluid services-section1-image" alt="<?php echo esc_attr( get_theme_mod( 'valhalla_services_s1_img_alt') ); ?>">
<?php endif; ?>
</div>
</div>
</div>
<?php if ( true == get_theme_mod( 'valhalla_services_s1_display') ) : ?>
<div class="content-separator"></div>
<?php endif; ?>
<div class="container-fluid services-section2">
<div class="row">
<?php $settings = get_theme_mod( 'valhalla_services_add_boxes'); ?>
<div class="col">
<div class="card-deck">
<?php if ( 'bg-light' == get_theme_mod( 'valhalla_services_s2_feature_style') ) : ?>
<?php foreach( $settings as $setting ) : ?>
<div class="card bg-light mb-3">
<div class="card-header services-box-header"><i class="fa fa-2x fa-<?php echo esc_attr( get_theme_mod( 'valhalla_services_s2_icon', 'star' ) ); ?> services-box-icon"></i></div>
<div class="card-body">
<h5 class="card-title services-box-title">
<?php echo esc_html( $setting['field1'] ); ?>
</h5>
<p class="card-text services-box-text">
<?php echo esc_html( $setting['field2'] ); ?>
</p>
</div>
</div>
<?php endforeach; ?>
<?php else : ?>
<?php foreach( $settings as $setting ) : ?>
<div class="card text-white <?php echo esc_attr( get_theme_mod( 'valhalla_services_s2_feature_style', 'bg-info' ) ); ?> mb-3">
<div class="card-header services-box-header"><i class="fa fa-2x fa-<?php echo esc_attr( get_theme_mod( 'valhalla_services_s2_icon', 'star' ) ); ?> services-box-icon"></i></div>
<div class="card-body">
<h5 class="card-title services-box-title">
<?php echo esc_html( $setting['field1'] ); ?>
</h5>
<p class="card-text services-box-text">
<?php echo esc_html( $setting['field2'] ); ?>
</p>
</div>
</div>
<?php endforeach; ?>
<?php endif; ?>
</div>
</div>
</div>
</div>
<?php if ( true == get_theme_mod( 'valhalla_services_s2_display') ) : ?>
<div class="content-separator"></div>
<?php endif; ?>
<div class="container services-section3">
<div id="tabs">
<ul>
<?php $settings = get_theme_mod( 'valhalla_services_add_services');
$tabs = 0;
$tabs2 = 0;
?>
<?php foreach( $settings as $setting ) : ?>
<?php $tabs = $tabs + 1; ?>
<li><a href="#tabs-<?php echo esc_attr( $tabs ); ?>">
<?php echo esc_html( $setting['field1'] ); ?></a></li>
<?php endforeach; ?>
</ul>
<?php foreach( $settings as $setting ) : ?>
<?php $tabs2 = $tabs2 + 1; ?>
<div id="tabs-<?php echo esc_attr( $tabs2 ); ?>" class="services-section3-text">
<?php echo wp_kses_post( $setting['field2'] ); ?>
</div>
<?php endforeach; ?>
</div>
</div>
<?php if ( true == get_theme_mod( 'valhalla_services_s3_display') ) : ?>
<div class="content-separator"></div>
<?php endif; ?>
</div>
<?php get_footer(); ?>