-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
75 lines (64 loc) · 2.51 KB
/
header.php
File metadata and controls
75 lines (64 loc) · 2.51 KB
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
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta charset="<?php bloginfo( 'charset' ); ?>">
<script type="text/javascript">
var pathInfo = {
base: '<?php echo get_template_directory_uri(); ?>/',
css: 'css/',
js: 'js/',
swf: 'swf/',
}
</script>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div class="wrapper">
<!-- header -->
<header class="header affix">
<div class="container">
<nav class="navbar navbar-toggleable navbar-inverse">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon">toggle menu</span>
</button>
<a class="navbar-brand" href="<?=home_url('/');?>">
<?php
$custom_logo_id = get_theme_mod( 'custom_logo' );
$src = wp_get_attachment_image_src($custom_logo_id, 'logo-sm');
if ( is_array($src) ) {
printf( '<img src="%s" width="%s" height="%s" class="hidden-sm-up">', $src[0], $src[1], $src[2]);
}
$src = wp_get_attachment_image_src($custom_logo_id, 'logo-xs');
if ( is_array($src) ) {
printf( '<img src="%s" width="%s" height="%s" class="hidden-xs-down">', $src[0], $src[1], $src[2]);
}
// the_custom_logo();
?>
</a>
<?php
wp_nav_menu([
'theme-location' => 'primary',
'container_class' => 'collapse navbar-collapse',
'container_id' => 'navbarSupportedContent',
'items_wrap' => '<ul id="%1$s" class="navbar-nav %2$s">%3$s</ul>',
// 'walker' => new Custom_Walker_Nav_Menu,
]);
?>
<div class="btn-wrapper">
<a href="#letter" class="btn btn-outline-inverse btn-contact btn-contact-main">
<svg class="icon icon-plane icon-plane" width="1em" height="1em">
<use xlink:href="<?=get_template_directory_uri();?>/images/svg-symbols.svg#plane" width="100%" height="100%"></use>
</svg>
<span>Contact us</span>
</a>
</div>
</nav>
</div>
</header>
<!-- /header -->
<main class="main">
<?php if ( is_front_page() ) : ?>
<div class="fullpage">
<?php endif; ?>