forked from aspirepress/site-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
61 lines (54 loc) · 2.23 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
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<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">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<?php wp_head(); ?>
<link href="https://fonts.googleapis.com/css?family=Lato:300|PT+Serif:400,400i,700,700i" rel="stylesheet">
</head>
<body <?php body_class(); ?>>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-365662-1', 'auto');
ga('send', 'pageview');
</script>
<div class="blog-masthead">
<div class="container-fluid">
<div class="blog-header">
<?php
$custom_logo_id = get_theme_mod( 'custom_logo' );
$custom_logo_url = wp_get_attachment_image_url( $custom_logo_id , 'full' );
if ($custom_logo_url) {
echo '<div><a href="/"><img style="display: block; clear: both; margin: 0px auto; border: none" src="' . esc_url($custom_logo_url) . '" alt="logo"></a></div>';
}
?>
<div style="text-align: center">
<!---<div class="h1 blog-title"><a href="/"><?php bloginfo( 'name' ); ?></a></div>-->
<?php $description = get_bloginfo( 'description', 'display' ); ?>
<?php if ($description) : ?>
<p class="lead blog-description"><?php echo $description ?></p>
<?php endif ?>
</div>
<div class="nav-menu" style="text-align: center">
<?php
wp_nav_menu([
'theme_location' => 'header-menu',
'menu_class' => 'blog-nav list-inline',
'container' => false,
]);
?>
</div>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row">