Repository navigation
Expand file tree
/
Copy pathheader.php
More file actions
103 lines (94 loc) · 3.54 KB
/
Copy pathheader.php
File metadata and controls
103 lines (94 loc) · 3.54 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
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
<?php
/**
* The header for our theme.
*
* This is the template that displays all of the <head> section and everything up until <div id="content">
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Heisenberg
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php echo file_get_contents( get_template_directory() . '/assets/dist/sprite/sprite.svg' ); ?>
<div class="off-canvas-wrapper">
<div class="off-canvas-wrapper-inner" data-off-canvas-wrapper>
<!-- Title Bar -->
<div class="title-bar show-for-small-only">
<div class="title-bar-left">
<button class="menu-icon" type="button" data-toggle="offCanvasLeft"></button>
<span class="title-bar-title"><?php bloginfo( 'name' ); ?></span>
</div>
</div>
<!-- .title-bar -->
<div class="off-canvas position-left" id="offCanvasLeft" data-off-canvas>
<button class="close-button" aria-label="Close menu" type="button" data-close>
<span aria-hidden="true">×</span>
</button>
<?php
$args = array (
'theme_location' => 'primary',
'container' => 'nav',
'container_class' => 'offcanvas-navigation',
'menu_class' => 'mobile-menu',
);
wp_nav_menu( $args );
?>
<?php do_action( 'did_displays_menu' ); ?>
</div>
<!-- #offCanvasLeft -->
<div class="off-canvas-content" data-off-canvas-content>
<header id="masthead" class="" role="banner" style="width:100%">
<div class="row">
<div class="small-12 medium-3 medium-offset-1 large-3 large-offset-1">
<a href="<?php esc_attr_e( home_url( '/' ) ); ?>" rel="home">
<?php the_custom_logo(); ?>
</a>
</div>
<div class="small-12 medium-6 medium-offset-1 large-6 large-offset-1">
<div class="row align-right menu-align-bottom">
<?php if ( get_theme_mod( 'di_social_twitter' ) ) { ?>
<a class="di-social-icon"
href="http://twitter.com/<?php echo get_theme_mod( 'di_social_twitter' ) ?> ">
<img src="<?php echo get_template_directory_uri(); ?>/assets/dist/img/twitter.gif"/>
</a>
<?php }; ?>
<?php if ( get_theme_mod( 'di_social_linkedin' ) ) { ?>
<a class="di-social-icon"
href="http://uk.linkedin.com/in/<?php echo get_theme_mod( 'di_social_linkedin' ) ?>">
<img
src="<?php echo get_template_directory_uri(); ?>/assets/dist/img/linkedin.gif"/>
</a>
<?php }; ?>
<?php if ( get_theme_mod( 'di_social_youtube' ) ) { ?>
<a class="di-social-icon"
href="http://www.youtube.com/user/<?php echo get_theme_mod( 'di_social_youtube' ) ?>">
<img src="<?php echo get_template_directory_uri(); ?>/assets/dist/img/youtube.gif"/>
</a>
<?php }; ?>
</div>
<div class="row align-right hide-for-small-only">
<div class="main-navigation">
<?php wp_nav_menu(
array(
'theme_location' => 'primary',
'container_class' => 'main-nav',
)
); ?>
</div>
</div>
</div>
<div class="hide-for-small-only medium-1 large-1"></div>
</div>
<div class="bottom-blue"></div>
</header><!-- #masthead -->
<div id="content" class="site-content">
<?php do_action( 'did_show_banner' ); ?>