-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
87 lines (69 loc) · 3.65 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
<?php
defined('ABSPATH') || exit;
// variables
$linkedIn_url="https://www.linkedin.com/in/";
$fb_url="https://www.facebook.com/";
$social_url = get_template_directory_uri( ) . '/assets'
?>
<!doctype html>
<html <?php language_attributes(); ?>>
<head>
<title><?php bloginfo('name');?></title>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<?php wp_head();?>
</head>
<body <?php body_class();?>>
<div class="wrapper">
<!-- Header -->
<header>
<div class="container-fluid">
<div class="row">
<div class="col-xl-3 col-lg-2 col-md-3 col-sm-3 col-4">
<div class="logo">
<?php
$custom_logo_id = get_theme_mod( 'custom_logo' );
$logo = wp_get_attachment_image_src( $custom_logo_id , 'full' );
if ( has_custom_logo() ) {
?>
<a href="<?php home_url(); ?>"><img class="img-fluid" src="<?php echo $logo[0];?>" alt="'.get_bloginfo( 'name' ).'"></a>
<?php
}
else {
echo '<h1>'. get_bloginfo( 'name' ) .'</h1>';
}
?>
</div>
</div>
<div class="col-xl-7 col-lg-8 col-md-7 col-sm-6 col-4 d-flex justify-content-center position-static">
<div class="nav-menu d-flex justify-content-start align-items-center">
<button class="nav-menu-btn" type="button">
<span></span>
<span></span>
<span></span>
</button>
<?php
if(has_nav_menu('primary')){
wp_nav_menu(
array(
'theme_location ' =>'primary',
'container' => '',
'menu_class' =>'list-unstyled p-0 m-0 d-flex justify-content-start align-items-center',
)
);
get_search_form();
}
?>
</div>
</div>
<div class="col-xl-2 col-lg-2 col-md-2 col-sm-3 col-4 d-flex justify-content-end">
<div class="social-menu d-flex">
<ul class="list-unstyled p-0 m-0 d-flex justify-content-start align-items-center">
<li><a href="<?php echo $linkedIn_url;?><?php echo get_theme_mod('linkedin_social_links');?>"><img src=" <?php echo $social_url;?>/images/linkedin-icon.png" alt=""></a></li>
<li><a href="<?php echo $fb_url;?><?php echo get_theme_mod('facebook_social_links');?>"><img src="<?php echo $social_url;?>/images/facebook.png" alt=""></a></li>
</ul>
</div>
</div>
</div>
</div>
</header>