/
header.php
executable file
·71 lines (49 loc) · 2.15 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
<?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 Midwest Inland Port 2015
*/
global $mip_2015_themekit;
?><!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
do_action( 'after_body' );
?><a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'mip-2015' ); ?></a>
<div id="page" class="hfeed site">
<header id="masthead" class="site-header" role="banner">
<div class="wrap wrap-header">
<div class="site-branding"><?php
if ( is_front_page() && is_home() ) {
?><h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><img src="<?php echo esc_url( get_theme_mod( 'site_logo' ) ); ?>" class="site-logo" /></a></h1><?php
} else {
?><p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><img src="<?php echo esc_url( get_theme_mod( 'site_logo' ) ); ?>" class="site-logo" /></a></p><?php
}
?></div><!-- .site-branding --><?php
get_template_part( 'menus/menu', 'social' );
?>
</div><!-- .header_wrap -->
<nav id="site-navigation" class="main-navigation" role="navigation">
<button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false"><?php esc_html_e( 'Menu', 'mip-2015' ); ?></button><?php
wp_nav_menu( array( 'theme_location' => 'primary', 'menu_id' => 'primary-menu' ) );
?></nav><!-- #site-navigation -->
</header><!-- #masthead --><?php
do_action( 'after_header' );
?><div class="breadcrumbs">
<div class="wrap-crumbs"><?php
do_action( 'mip_2015_breadcrumbs' );
?></div><!-- .wrap-crumbs -->
</div><!-- .breadcrumbs -->
<div id="content" class="site-content">
<div class="wrap wrap-content">