-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
header-full.php
95 lines (68 loc) · 4.46 KB
/
header-full.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
88
89
90
91
92
93
94
95
<!doctype html>
<!--[if lt IE 7]><html <?php language_attributes(); ?> class="no-js lt-ie9 lt-ie8 lt-ie7"><![endif]-->
<!--[if (IE 7)&!(IEMobile)]><html <?php language_attributes(); ?> class="no-js lt-ie9 lt-ie8"><![endif]-->
<!--[if (IE 8)&!(IEMobile)]><html <?php language_attributes(); ?> class="no-js lt-ie9"><![endif]-->
<!--[if gt IE 8]><!--> <html <?php html_schema(); ?> <?php language_attributes(); ?> class="no-js"><!--<![endif]-->
<head>
<?php // See everything you need to know about the <head> here: https://github.com/joshbuchea/HEAD ?>
<meta charset='<?php bloginfo( 'charset' ); ?>'>
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<?php // favicons (for more: http://www.jonathantneal.com/blog/understand-the-favicon/) ?>
<link rel="icon" href="<?php echo get_theme_file_uri(); ?>/favicon.png">
<!--[if IE]>
<link rel="shortcut icon" href="<?php echo get_theme_file_uri(); ?>/favicon.ico">
<![endif]-->
<!-- Apple Touch Icon -->
<link rel="apple-touch-icon" href="<?php echo get_theme_file_uri(); ?>/library/images/apple-touch-icon.png">
<!-- Safari Pinned Tab Icon -->
<link rel="mask-icon" href="<?php echo get_theme_file_uri(); ?>/library/images/icon.svg" color="#0088cc">
<?php // updated pingback. Thanks @HardeepAsrani https://github.com/HardeepAsrani ?>
<?php if ( is_singular() && pings_open( get_queried_object() ) ) : ?>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php endif; ?>
<?php // put font scripts like Typekit/Adobe Fonts here ?>
<?php // end fonts ?>
<?php // wordpress head functions ?>
<?php wp_head(); ?>
<?php // end of wordpress head ?>
<?php // drop Google Analytics here ?>
<?php // end analytics ?>
</head>
<body <?php body_class(); ?> itemscope itemtype="https://schema.org/WebPage">
<?php // remove grid classes below if you aren't using CSS Grid (but you should) ?>
<div id="container" class="grid grid-full">
<header class="header" id="header" role="banner" itemscope itemtype="https://schema.org/WPHeader">
<div id="inner-header" class="wrap">
<?php // updated with proper markup and wrapping div for organization ?>
<div id="bloginfo" itemscope itemtype="https://schema.org/Organization">
<?php
/*
* You can use text or a logo (or both) in your header. If you use both,
* try placing them in a single link element for better accessibility.
*/
?>
<div id="logo" itemprop="logo">
<a href="<?php echo home_url(); ?>" rel="nofollow" itemprop="url" title="<?php bloginfo('name'); ?>">
<img src="<?php echo get_theme_file_uri(); ?>/library/images/logo.svg" itemprop="logo" alt="site logo" />
</a>
</div>
<div id="site-title" class="site-title" itemprop="name">
<a href="<?php echo home_url(); ?>" rel="nofollow" itemprop="url" title="<?php bloginfo('name'); ?>">
<?php bloginfo('name'); ?>
</a>
</div>
</div>
<nav class="header-nav" role="navigation" itemscope itemtype="https://schema.org/SiteNavigationElement">
<?php // see all default args here: https://developer.wordpress.org/reference/functions/wp_nav_menu/ ?>
<?php wp_nav_menu( array(
'container' => false, // remove nav container
'container_class' => 'menu', // class of container (should you choose to use it)
'menu' => __( 'The Main Menu', 'platetheme' ), // nav name
'menu_class' => 'nav top-nav main-menu', // adding custom nav class
'theme_location' => 'main-nav', // where it's located in the theme
)
); ?>
</nav>
</div>
</header>