-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
76 lines (70 loc) · 2.67 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
72
73
74
75
76
<!--[if IE 7]>
<html class="ie ie7" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 8]>
<html class="ie ie8" <?php language_attributes(); ?>>
<![endif]-->
<!--[if !(IE 7) & !(IE 8)]><!-->
<!DOCTYPE html>
<!--[if lt IE 9]>
<script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/html5shiv.js"></script>
<script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/respond.js"></script>
<![endif]-->
<html <?php language_attributes(); ?> class="no-js">
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<?php wp_head(); ?>
<?php require_once __DIR__ . '/inc/customizer/css-customizer-dynamic.php'; ?>
</head>
<body <?php body_class(); ?>>
<div id="wrapper">
<header class="top-header-outer">
<div class="top-header-inner-wrapper container">
<div class="icons">
</div>
<div class="top-menu">
<?php
wp_nav_menu( array(
'theme_location' => 'top_header',
'container' => false
));
?>
</div>
</div>
</header>
<header class="main-header-outer">
<div class="main-header-inner-wrapper container">
<a class="logo-section" href="<?php echo get_home_url(); ?>">
<?php
if ( get_theme_mod( 'your_theme_logo' ) ) : ?>
<img src="<?php echo get_theme_mod( 'your_theme_logo' ); ?>" alt="<?php echo get_bloginfo('name'); ?>" title="<?php echo get_bloginfo('name'); ?>" class="img-responsive" />
<?php
else : ?>
<div class="wp-default-title--block">
<h1 class="site-title">
<?php bloginfo( 'name' ); ?>
</h1>
<p>
<?php bloginfo( 'description' ); ?>
</p>
</div>
<?php endif; ?>
</a>
<div class="main-navigation">
<nav>
<?php
wp_nav_menu( array(
'theme_location' => 'main_header_menu',
'container' => false
));
?>
</nav>
</div>
</div>
</header>
<?php if ( get_header_image() ) : ?>
<div id="site-header">
<img src="<?php header_image(); ?>" width="<?php echo absint( get_custom_header()->width ); ?>" height="<?php echo absint( get_custom_header()->height ); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>">
</div>
<?php endif; ?>