-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
123 lines (90 loc) · 5.17 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
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" <?php language_attributes(); ?>> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" <?php language_attributes(); ?>> <!--<![endif]-->
<head>
<meta charset="utf-8">
<!-- Force IE to use the latest rendering engine available -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Google site verification tag -->
<meta name="google-site-verification" content="MDxDCoHq0DTBgwUXoywukVIYRXQBzyNIDqcNTY2uVy8" />
<!-- Mobile Meta -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta class="foundation-mq">
<!-- If Site Icon isn't set in customizer -->
<?php if ( ! function_exists( 'has_site_icon' ) || ! has_site_icon() ) { ?>
<!-- Icons & Favicons -->
<link rel="icon" href="<?php echo get_template_directory_uri(); ?>/favicon.png">
<link rel="icon" sizes="32x32" href="<?php echo get_template_directory_uri(); ?>/favicon-32x32.png">
<link rel="icon" href="<?php echo get_template_directory_uri(); ?>/favicon.png">
<link href="<?php echo get_template_directory_uri(); ?>/apple-icon-touch.png" rel="apple-touch-icon" />
<link rel="mask-icon" href="<?php echo get_template_directory_uri(); ?>/safari-pinned-tab.svg" color="#60b58c" />
<!--[if IE]>
<link rel="shortcut icon" href="<?php echo get_template_directory_uri(); ?>/favicon.ico">
<![endif]-->
<meta name="msapplication-TileColor" content="#f01d4f">
<meta name="msapplication-TileImage" content="<?php echo get_template_directory_uri(); ?>/assets/images/win8-tile-icon.png">
<meta name="theme-color" content="#ffffff">
<?php } ?>
<?php if(is_singular('post')):
$desc = get_the_excerpt();
if (!$desc) {
$desc = get_the_title();
}
?>
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@<?php echo get_theme_mod( 'tcx_twitter_handle' );?>" />
<meta name="twitter:creator" content="@<?php echo get_theme_mod( 'tcx_twitter_handle' );?>" />
<meta property="og:url" content="<?php the_permalink();?>" />
<meta property="og:title" content="<?php the_title();?>" />
<meta property="og:description" content="<?php echo wp_strip_all_tags($desc);?>" />
<meta property="og:image" content="<?php the_post_thumbnail_url('full');?>" />
<?php endif;?>
<?php if(is_singular('resources')):?>
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@<?php echo get_theme_mod( 'tcx_twitter_handle' );?>" />
<meta name="twitter:creator" content="@<?php echo get_theme_mod( 'tcx_twitter_handle' );?>" />
<meta property="og:url" content="<?php the_permalink();?>" />
<meta property="og:title" content="<?php the_title();?>" />
<meta property="og:description" content="Resources for connecting communities" />
<meta property="og:image" content="<?php echo get_template_directory_uri(); ?>/assets/images/resources.png"/>
<?php endif;?>
<?php
$path = get_page_by_path( 'events' );
if(is_page($path)):?>
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@<?php echo get_theme_mod( 'tcx_twitter_handle' );?>" />
<meta name="twitter:creator" content="@<?php echo get_theme_mod( 'tcx_twitter_handle' );?>" />
<meta property="og:url" content="<?php the_permalink();?>" />
<meta property="og:title" content="<?php the_title();?>" />
<meta property="og:description" content="<?php echo wp_strip_all_tags(get_the_excerpt( ));?>" />
<meta property="og:image" content="<?php the_post_thumbnail_url('full');?>" />
<?php endif;?>
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
<style id="inverter" media="none">
html { background-color: #eee; filter: invert(100%); }
.drag-target {background: transparent;}
* { background-color: inherit; }
#map div {background-color: transparent;}
img:not([src*=".svg"]), [style*="url("] { filter: invert(100%);
}
</style>
<!--[if lt IE 9]>
<link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/assets/css/styleie.css" />
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.2/html5shiv.js"></script>
<script src="//s3.amazonaws.com/nwapi/nwmatcher/nwmatcher-1.2.5-min.js"></script>
<script src="//html5base.googlecode.com/svn-history/r38/trunk/js/selectivizr-1.0.3b.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/respond.js/1.1.0/respond.min.js"></script>
<![endif]-->
<?php wp_head(); ?>
<!-- Drop Google Analytics here -->
<!-- end analytics -->
</head>
<!-- Uncomment this line if using the Off-Canvas Menu -->
<body <?php body_class('white'); ?>>
<header class="header navbar-fixed valign-wrapper" role="banner">
<a class="skip-link btn-large" href="#maincontent">Skip to main content</a>
<?php get_template_part( 'parts/nav', 'topbar' ); ?>
</header> <!-- end .header -->