-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
executable file
·79 lines (77 loc) · 3.7 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
<!DOCTYPE html>
<html lang="en">
<head>
<title><?php wp_title(); ?></title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<?php wp_head();?>
</head>
<body <?php body_class(); ?>>
<div class="wrap">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="bg-wrap">
<div class="row">
<div class="col-md-6 d-flex align-items-center">
<p class="mb-0 phone pl-md-2">
<?php
$header_phone = get_field('header_phone','option');
if($header_phone){
?>
<a href="tel:<?php echo $header_phone?>" class="mr-2"><span class="fa fa-phone mr-1"></span><?php echo $header_phone?></a>
<?php
}
?>
<?php
$header_email = get_field('header_email','option');
if($header_email){
?>
<a href="mailto:<?php echo $header_email?>"><span class="fa fa-paper-plane mr-1"></span> <?php echo $header_email?></a>
<?php
}
?>
</p>
</div>
<div class="col-md-6 d-flex justify-content-md-end">
<div class="social-media">
<p class="mb-0 d-flex">
<?php
$header_social = get_field('header_social','option');
if($header_social){
foreach($header_social as $social){
?>
<a href="<?php echo $social['icon_url'];?>" class="d-flex align-items-center justify-content-center"><i class="fa <?php echo $social['icon_name'];?>"></i></a>
<?php
}
}
?>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<nav class="navbar navbar-expand-lg navbar-dark ftco_navbar bg-dark ftco-navbar-light" id="ftco-navbar">
<div class="container">
<a class="navbar-brand" href="<?php echo site_url();?>"><?php the_field('header_logo', 'option'); ?></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#ftco-nav" aria-controls="ftco-nav" aria-expanded="false" aria-label="Toggle navigation">
<span class="fa fa-bars"></span> Menu
</button>
<?php
wp_nav_menu(array(
'menu' =>'main-menu',
'theme_location' => 'main-menu',
'depth' => 1,
'menu_class' =>'navbar-nav ml-auto',
'menu_id' => 'main-menu1',
'container_class' => 'collapse navbar-collapse',
'container_id' =>'ftco-nav',
));
?>
</div>
</nav>
<!-- END nav -->