forked from zoerooney/Emi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
54 lines (42 loc) · 1.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
<?php
/**
* The header template
*
* Displays all of the <head> section and everything up till <div id="main">
*
* @package themeHandle
*/
?>
<!DOCTYPE html>
<!--[if lt IE 9]>
<html id="ie" <?php language_attributes(); ?>>
<![endif]-->
<!--[if !(IE 6) | !(IE 7) | !(IE 8) ]><!-->
<html <?php language_attributes(); ?>>
<!--<![endif]-->
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php wp_title( '|', true, 'right' ); ?></title>
<!-- favicon & links -->
<link rel="shortcut icon" href="<?php echo get_template_directory_uri(); ?>/favicon.ico" type="image/x-icon">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<!-- stylesheets are enqueued via functions.php -->
<!-- all other scripts are enqueued via functions.php -->
<!--[if lt IE 9]>
<script src="<?php echo get_template_directory_uri(); ?>/assets/vendor/html5shiv.js" type="text/javascript"></script>
<![endif]-->
<?php // Lets other plugins and files tie into our theme's <head>:
wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id="page">
<header id="site-header" role="banner">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" class="logo">
<img src="<?php echo get_template_directory_uri(); ?>/assets/images/logo.svg" onerror="this.onerror=null; this.src='<?php echo get_template_directory_uri(); ?>/assets/images/logo.png'" alt="<?php bloginfo('name'); ?>">
</a>
<nav id="access" role="navigation">
<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
</nav><!-- #access -->
</header><!-- #branding -->
<div id="main">