-
Notifications
You must be signed in to change notification settings - Fork 1
/
header.php
343 lines (273 loc) · 13.2 KB
/
header.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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
<?php global $redux ?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<title><?php wp_title(); ?></title>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="X-Ua-Compatible" content="IE=edge,chrome=1">
<meta property="fb:admins" content="<?php echo $redux['fba'] ?>" />
<?php if( !empty( $redux['logo']['url'] ) ) : ?>
<link rel="shortcut icon" href="<?php echo $redux['logo']['url']; ?>">
<?php else : ?>
<link rel="shortcut icon" href="<?php bloginfo('template_url'); ?>/img/logo.png">
<?php endif; ?>
<?php wp_head(); ?>
<?php echo $redux['htmlh'] ?>
<style>
<?php echo $redux['css'] ?>
.navbar {
background: <?php echo $redux['ou1cnb'] ?> !important;
}
.nav-link,
.navbar-brand {
color: <?php echo $redux['ou1cn'] ?> !important;
}
.nav-link:hover {
background: <?php echo $redux['ou1cnh'] ?>;
}
input,
button {
color: <?php echo $redux['ou1cs'] ?>;
border-color: <?php echo $redux['ou1csb'] ?>;
}
input::placeholder {
color: <?php echo $redux['ou1cs'] ?>;
}
button {
background: <?php echo $redux['ou1csb'] ?>;
}
</style>
</head>
<body <?php body_class(); ?>>
<nav id="nav" class="navbar sticky-top navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand m-0 pl-3 pr-2" href="#header">
<?php if( !empty( $redux['logo']['url'] ) ) : ?>
<img src="<?php echo $redux['logo']['url']; ?>" width="50" height="50">
<?php else : ?>
<img src="<?php bloginfo('template_url'); ?>/img/logo.png" width="50" height="50">
<?php endif; ?>
</a>
<a class="navbar-brand m-0 pl-2 pr-3" href="<?php echo site_url(); ?>">
<?php bloginfo('name'); ?>
</a>
<a class="nav-link d-lg-none px-3" data-toggle="collapse" data-target="#menu1"
aria-controls="menu" aria-expanded="false" aria-label="Toggle navigation">
<i class="fas fa-bars"></i>
</a>
<div class="collapse navbar-collapse" id="menu1">
<div class="navbar-nav ml-auto">
<?php if( $redux['sf1'] == 1 ) : ?>
<div class="my-4 my-lg-auto px-2 px-lg-3"><?php get_search_form() ?></div>
<?php endif; ?>
<?php $defaults = array(
'theme_location' => 'menu1',
'menu_class' => 'navbar-nav ml-auto',
'items_wrap' => '<div class="%2$s">%3$s</div>',
'depth' => 2,
'walker' => new wp_bootstrap_navwalker(),
'fallback_cb' => 'wp_bootstrap_navwalker::fallback',
);
wp_nav_menu( $defaults ); ?>
<?php if( $redux['fbs'] == 1 ) : ?>
<a class="nav-link px-3" href="<?php echo $redux['fbl'] ?>" target="_blank">
<i class="fab fa-facebook-f"></i></a>
<?php endif; ?>
<?php if( $redux['igs'] == 1 ) : ?>
<a class="nav-link px-3" href="<?php echo $redux['igl'] ?>" target="_blank">
<i class="fab fa-instagram"></i></a>
<?php endif; ?>
<?php if( $redux['lis'] == 1 ) : ?>
<a class="nav-link px-3" href="<?php echo $redux['lil'] ?>" target="_blank">
<i class="fab fa-linkedin-in"></i></a>
<?php endif; ?>
<?php if( $redux['ems'] == 1 ) : ?>
<a class="nav-link px-3" href="mailto:<?php echo $redux['ema'] ?>">
<i class="far fa-envelope"></i></a>
<?php endif; ?>
<?php if( $redux['ses'] == 1 ) : ?>
<a class="nav-link px-3" data-toggle="modal" data-target=".modal1">
<i class="fas fa-search"></i></a>
<?php endif; ?>
</div>
</div>
</nav>
<?php if( is_home() ) : ?>
<header id="header" class="std content">
<?php if( $redux['sp1v1'] == 1 ) : ?>
<div id="sp1">
<?php if ( isset( $redux['sp1c'] ) && !empty( $redux['sp1c'] )
&& $redux['sp1c'][0]['title']!='' ) : ?>
<div class="bd-example">
<div id="carouselExampleCaptions" class="carousel slider slide" data-ride="carousel">
<ol class="carousel-indicators slider-indicators">
<?php foreach( $redux['sp1c'] as $key => $box ) { ?>
<li data-target="#carouselExampleCaptions" data-slide-to="$key"
class="<?php if ( $key == 0 ) echo 'active' ?>"></li>
<?php } ?>
</ol>
<div class="carousel-inner slider-inner">
<?php foreach( $redux['sp1c'] as $key => $box ) { ?>
<div class="carousel-item slider-item <?php if ( $key == 0 ) echo 'active' ?>">
<img src="<?php echo $box['image'] ?>" class="d-block w-100 h-100">
<div class="carousel-caption slider-caption">
<h1 class="my-3"><a class="text-reset text-decoration-none"
href="<?php echo site_url(); ?>"><?php echo $box['title'] ?></a></h1>
<h3 class="my-3"><?php echo do_shortcode( $box['description'] ) ?></h3>
<h4 class="my-3"><?php echo $box['url'] ?></h4>
<?php if( $redux['sp1v2'] == 1 ) : ?>
<a class="btn btn-primary btn-lg rounded-pill mr-2 my-2"
href="<?php echo $redux['sp1b1l'] ?>"<?php if ( $redux['sp1b1n'] == 1 )
{ echo ' target="_blank" '; } ?>><?php echo $redux['sp1b1t'] ?></a>
<a class="btn btn-primary btn-lg rounded-pill my-2"
href="<?php echo $redux['sp1b2l'] ?>"<?php if ( $redux['sp1b2n'] == 1 )
{ echo ' target="_blank" '; } ?>><?php echo $redux['sp1b2t'] ?></a>
<?php endif; ?>
</div>
</div>
<?php } ?>
</div>
<a class="carousel-control-prev" href="#carouselExampleCaptions" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselExampleCaptions" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
<?php endif; ?>
<?php echo $redux['sp1html'] ?>
<style>
<?php echo $redux['sp1css'] ?>
</style>
</div>
<?php endif; ?>
<?php if( $redux['sp2v1'] == 1 ) : ?>
<div id="sp2">
<div class="jumbotron hero jumbotron-fluid m-0 p-4 p-md-5">
<div class="container p-4 p-md-5 text-center position-relative">
<div class="row">
<div class="col-md-7">
<h1 class="my-3"><a class="text-reset text-decoration-none"
href="<?php echo site_url(); ?>"><?php echo $redux['sp2t'] ?></a></h1>
<h3 class="my-3"><?php echo do_shortcode( $redux['sp2p1'] ) ?></h3>
<h4 class="my-3"><?php echo $redux['sp2p2'] ?></h4>
<?php if( $redux['sp2v2'] == 1 ) : ?>
<a class="btn btn-outline-primary btn-lg rounded-pill mr-2 my-2"
href="<?php echo $redux['sp2b1l'] ?>"<?php if ( $redux['sp2b1n'] == 1 )
{ echo ' target="_blank" '; } ?>><?php echo $redux['sp2b1t'] ?></a>
<a class="btn btn-outline-primary btn-lg rounded-pill my-2"
href="<?php echo $redux['sp2b2l'] ?>"<?php if ( $redux['sp2b2n'] == 1 )
{ echo ' target="_blank" '; } ?>><?php echo $redux['sp2b2t'] ?></a>
<?php endif; ?>
</div>
<div class="col-md-5">
<?php if( !empty( $redux['sp2g']['url'] ) ) : ?>
<img class="img-fluid mw-100 mh-100" src="<?php echo $redux['sp2g']['url']; ?>"
width="400" height="400">
<?php else : ?>
<img class="img-fluid mw-100 mh-100" src="<?php bloginfo('template_url'); ?>/img/logo.png"
width="400" height="400">
<?php endif; ?>
</div>
</div>
</div>
</div>
<?php echo $redux['sp2html'] ?>
<style>
<?php echo $redux['sp2css'] ?>
</style>
</div>
<?php endif; ?>
</header>
<?php else : ?>
<header id="header" class="std content">
<?php if( $redux['sp1v1'] == 1 ) : ?>
<div id="sp1">
<?php if ( isset( $redux['sp1c'] ) && !empty( $redux['sp1c'] )
&& $redux['sp1c'][0]['title']!='' ) : ?>
<div class="bd-example">
<div id="carouselExampleCaptions" class="carousel slider slide" data-ride="carousel">
<ol class="carousel-indicators slider-indicators">
<?php foreach( $redux['sp1c'] as $key => $box ) { ?>
<li data-target="#carouselExampleCaptions" data-slide-to="$key"
class="<?php if ( $key == 0 ) echo 'active' ?>"></li>
<?php } ?>
</ol>
<div class="carousel-inner slider-inner">
<?php foreach( $redux['sp1c'] as $key => $box ) { ?>
<div class="carousel-item slider-item short <?php if ( $key == 0 ) echo 'active' ?>">
<img src="<?php echo $box['image'] ?>" class="d-block w-100 h-100">
<div class="carousel-caption slider-caption small">
<h1 class="my-2"><a class="text-reset text-decoration-none"
href="<?php echo site_url(); ?>"><?php echo $box['title'] ?></a></h1>
<h3 class="my-2"><?php echo do_shortcode( $box['description'] ) ?></h3>
<?php if( $redux['sp1v2'] == 1 ) : ?>
<a class="btn btn-primary btn-lg rounded-pill mr-2 my-2"
href="<?php echo $redux['sp1b1l'] ?><?php if ( $redux['sp1b1n'] == 1 )
{ echo ' target="_blank" '; } ?>"><?php echo $redux['sp1b1t'] ?></a>
<a class="btn btn-primary btn-lg rounded-pill my-2"
href="<?php echo $redux['sp1b2l'] ?>"<?php if ( $redux['sp1b2n'] == 1 )
{ echo ' target="_blank" '; } ?>><?php echo $redux['sp1b2t'] ?></a>
<?php endif; ?>
</div>
</div>
<?php } ?>
</div>
<a class="carousel-control-prev" href="#carouselExampleCaptions" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselExampleCaptions" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
<?php endif; ?>
<?php echo $redux['sp1html'] ?>
<style>
<?php echo $redux['sp1css'] ?>
</style>
</div>
<?php endif; ?>
<?php if( $redux['sp2v1'] == 1 ) : ?>
<div id="sp2">
<div class="jumbotron hero jumbotron-fluid m-0 p-4 p-md-5">
<div class="container p-3 p-md-4 text-center position-relative">
<div class="row">
<div class="col-md-7 small">
<h1 class="my-2"><a class="text-reset text-decoration-none"
href="<?php echo site_url(); ?>"><?php echo $redux['sp2t'] ?></a></h1>
<h3 class="my-2"><?php echo do_shortcode( $redux['sp2p1'] ) ?></h3>
<?php if( $redux['sp2v2'] == 1 ) : ?>
<a class="btn btn-outline-primary btn-lg rounded-pill mr-2 my-2"
href="<?php echo $redux['sp2b1l'] ?>"<?php if ( $redux['sp2b1n'] == 1 )
{ echo ' target="_blank" '; } ?>><?php echo $redux['sp2b1t'] ?></a>
<a class="btn btn-outline-primary btn-lg rounded-pill my-2"
href="<?php echo $redux['sp2b2l'] ?>"<?php if ( $redux['sp2b2n'] == 1 )
{ echo ' target="_blank" '; } ?>><?php echo $redux['sp2b2t'] ?></a>
<?php endif; ?>
</div>
<div class="col-md-5">
<?php if( !empty( $redux['sp2g']['url'] ) ) : ?>
<img class="img-fluid mw-100 mh-100" src="<?php echo $redux['sp2g']['url']; ?>"
width="200" height="200">
<?php else : ?>
<img class="img-fluid mw-100 mh-100" src="<?php bloginfo('template_url'); ?>/img/logo.png"
width="200" height="200">
<?php endif; ?>
</div>
</div>
</div>
</div>
<?php echo $redux['sp2html'] ?>
<style>
<?php echo $redux['sp2css'] ?>
</style>
</div>
<?php endif; ?>
</header>
<?php endif; ?>