-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
53 lines (40 loc) · 1.97 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
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width" />
<link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet_uri(); ?>" />
<link rel="icon" type="image/png" href="<?php echo get_bloginfo('template_directory'); ?>/images/favicon.png">
<script src="<?php echo get_bloginfo('template_directory'); ?>/js/modernizr.custom.js"></script>
<?php wp_head(); ?>
<!-- GOOGLE ANALYTICS -->
<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-52175573-1', 'auto');
ga('send', 'pageview');
</script>
</head>
<body id="top">
<div class="body-border body-border--top"></div>
<div class="body-border body-border--left"></div>
<div class="body-border body-border--right"></div>
<div class="body-border body-border--bottom"></div>
<div class="wrap">
<!-- Site Wrap -->
<div id="container">
<?php if( is_front_page() && is_home() ) { ?>
<header id="header" class="header">
<a class="" href="<?php echo site_url(); ?>"><img class="logo" src="<?php echo get_bloginfo('template_directory'); ?>/images/logo.png" data-pin-nopin="true"></a>
<div class="menu desktop"><?php wp_nav_menu( array( 'theme_location' => 'main-menu' ) ); ?></div>
</header>
<?php } else { ?>
<header id="header-small" class="smaller">
<a class="" href="<?php echo site_url(); ?>"><img class="logo" src="<?php echo get_bloginfo('template_directory'); ?>/images/logo.png" data-pin-nopin="true"></a>
<div class="menu desktop"><?php wp_nav_menu( array( 'theme_location' => 'main-menu' ) ); ?></div>
</header>
<?php } ?>
<!-- Top Nav Ends -->
<div id="container">