-
Notifications
You must be signed in to change notification settings - Fork 1
/
header.php
156 lines (140 loc) · 6.92 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<!DOCTYPE html>
<!-- This site was created in Webflow. http://www.webflow.com-->
<!-- Last Published: Tue Jun 02 2015 21:03:32 GMT+0000 (UTC) -->
<html data-wf-site="55550013bb87e1146ef89e94" data-wf-page="55550013bb87e1146ef89e95" xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://ogp.me/ns/fb#">
<head>
<meta charset="utf-8">
<title>
<?php bloginfo('name'); // show the blog name, from settings ?> |
<?php is_front_page() ? bloginfo('description') : wp_title(''); // if we're on the home page, show the description, from the site's settings - otherwise, show the title of the post or page ?>
</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="generator" content="Webflow">
<?php if (get_field('google_analytics', 'option')): ?>
<!-- Google Analytics -->
<?php the_field('google_analytics', 'option'); ?>
<?php endif; ?>
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/css/normalize.css"> <!-- RESET -->
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/css/webflow.css"> <!-- WEBFLOW RESET -->
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/css/rockharbor-stories.webflow.css"> <!-- THEME -->
<!-- CAMPUS NAV -->
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/campusnav/campusnav.css">
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/style.css"> <!-- OVERRIDES -->
<!-- FONTS -->
<!-- <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"> -->
<script src="https://ajax.googleapis.com/ajax/libs/webfont/1.4.7/webfont.js"></script>
<script>
WebFont.load({
google: {
families: ["Montserrat:400,700"]
}
});
</script>
<!-- JQUERY -->
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<!-- WEBFLOW FUNCTIONALITY -->
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/webflow.js"></script>
<!--[if lte IE 9]><script src="https://cdnjs.cloudflare.com/ajax/libs/placeholders/3.0.2/placeholders.min.js"></script><![endif]-->
<!-- FIT VID to make videos fit the width of their containers -->
<script src="<?php bloginfo('template_directory'); ?>/js/jquery.fitvids.js"></script>
<script>
$(document).ready(function(){
// Target your .container, .wrapper, .post, etc.
$("article").fitVids();
});
</script>
<!-- CAMPUS NAV MENU -->
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/campusnav/jquery.sidr.min.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/campusnav/campusnav.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/modernizr.js"></script> <!-- RESET -->
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/ajax-frontpage.js"></script> <!-- Load more posts using ajax -->
<!-- FAVICONS -->
<link rel="apple-touch-icon-precomposed" sizes="180x180" href="<?php bloginfo( 'template_directory' ); ?>/images/appicon-180.png">
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="<?php bloginfo( 'template_directory' ); ?>/images/appicon-152.png">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="<?php bloginfo( 'template_directory' ); ?>/images/appicon-144.png">
<link rel="icon" type="image/x-icon" href="<?php bloginfo( 'template_directory' ); ?>/images/favicon.ico">
<!-- OpenGraph -->
<meta property="og:title" content="<?php bloginfo('name'); ?> | <?php is_front_page() ? bloginfo('description') : wp_title(''); ?>" />
<meta property="og:type" content="<?php
if ( is_single() ) {
if ( get_post_format() == 'video') {
echo "video.other";
} else {
echo "article";
}
} else {
echo "website";
}?>" />
<meta property="og:image" content="<?php
if ( is_single() ) {
$postThumbnailId = get_post_thumbnail_id();
if ( !is_null( $postThumbnailId ) ) {
echo wp_get_attachment_url( $postThumbnailId );
} else {
echo get_bloginfo( 'template_directory' ) . '/images/appicon-180.png';
}
} else {
echo get_bloginfo( 'template_directory' ) . '/images/appicon-180.png';
}?>" />
<meta property="og:url" content="<?php
if ( is_single() ) {
the_permalink();
} else {
echo get_site_url() . $_SERVER['REQUEST_URI'];
}?>" />
<meta property="og:description" content="<?php
if ( is_single() ) {
if ( have_posts() ) {
the_post();
echo wp_kses( get_the_excerpt(), array() );
rewind_posts();
}
} else {
echo get_bloginfo( 'description' );
}?>" />
<link type="application/opensearchdescription+xml" rel="search" href="<?php echo get_bloginfo( 'template_directory' ) . '/opensearch.php'; ?>" />
</head>
<body>
<div class="w-section navigation">
<?php include (TEMPLATEPATH . '/campusnav/global_campus_nav.php' ); //CAMPUS NAV PLACEMENT ?>
<div class="w-nav navbar" data-collapse="medium" data-animation="default" data-duration="400">
<div class="w-container">
<a class="w-inline-block logo" href="/"><img src="<?php the_field('top_logo', 'option'); ?>" width="300">
</a>
<nav class="w-nav-menu menubg" role="navigation">
<?php if(have_rows('top_level_menu_item', 'option')): ?>
<?php while(has_sub_field('top_level_menu_item', 'option')): ?>
<?php if ( get_sub_field('add_sub_menu') == false ) { ?>
<a class="w-nav-link navlink" href="<?php the_sub_field('link', 'option'); ?>"><?php the_sub_field('title', 'option'); ?></a>
<?php } else { ?>
<div class="w-dropdown" data-delay="200">
<div class="w-dropdown-toggle navlink">
<div><?php the_sub_field('title', 'option'); ?></div>
</div>
<?php if(get_sub_field('sub_menu', 'option')): ?>
<nav class="w-dropdown-list dropdownlist">
<?php while(has_sub_field('sub_menu', 'option')): ?>
<?php if(get_sub_field('link', 'option')){ ?>
<a class="w-dropdown-link dropdownlink" href="<?php the_sub_field('link', 'option'); ?>"><?php the_sub_field('title', 'option'); ?></a>
<?php } else { ?>
<?php
$term = get_sub_field('category', 'option');
if( $term ): ?>
<a class="w-dropdown-link dropdownlink" href="<?php echo get_term_link( $term ); ?>"><?php echo $term->name; ?></a>
<?php endif; ?>
<?php } ?>
<?php endwhile; ?>
</nav>
<?php endif; ?>
</div>
<?php } ?>
<?php endwhile; ?>
<?php endif; ?>
</nav>
<div class="w-nav-button">
<div class="w-icon-nav-menu"></div>
</div>
</div>
</div>
</div>
<?php include (TEMPLATEPATH . '/campusnav/campusnav_slideouts.php' ); //CAMPUS SLIDE OUT PLACEMENT ?>