This repository has been archived by the owner on Feb 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathheader.php
114 lines (102 loc) · 3.75 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
<?php
/**
* The header for our theme
*
* This is the template that displays all of the <head> section and everything up until <div id="content">
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package The_Stanford_Daily
*/
?>
<!doctype html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="https://gmpg.org/xfn/11">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id="fb-root"></div>
<script async defer src="https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.2"></script>
<div id="page" class="site">
<?php
// if (get_post_field( 'post_name', get_post() ) !== 'join-the-daily') {
// include "inc/apply-blurb.php";
// } else {
// include "inc/donate-header.php";
// }
include "inc/donate-header.php";
?>
<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'tsd' ); ?></a>
<div class="background-overlay"></div>
<header id="masthead" class="site-header">
<nav id="site-topbar" class="main-topbar">
<div class="container">
<div class="nav-row">
<div class="nav-col site-topbar-left">
<?php
wp_nav_menu( array(
'theme_location' => 'menu-topbar',
'menu_id' => 'topbar-menu',
) );
?>
</div>
<div class="nav-col site-topbar-right">
<form role="search" method="get" class="topbar-search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<label>
<span class="screen-reader-text">Search for:</span>
<input type="search" class="topbar-search-field" placeholder="Search…" value="<?php the_search_query(); ?>" name="s">
</label>
<button type="submit" class="topbar-search-submit"><i class="fa fa-search"></i></button>
</form>
</div>
</div>
</div>
</nav><!-- #site-topbar -->
<div class="site-branding">
<button class="nav-toggle-button"><i class="fas fa-bars"></i></button>
<div class="container">
<?php
$title_tag = "div";
if ( is_front_page() && is_home() ) {
$title_tag = "h1";
}
?>
<<?php echo $title_tag; ?> class="site-title"><?php
$custom_logo = get_custom_logo();
if (!empty($custom_logo)) {
echo $custom_logo;
} else {
?><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a><?php
}
?></<?php echo $title_tag; ?>>
<?php include "inc/tips-widget-mobile.php"; ?>
<div class="header-right">
<a href="/email-digests/" class="tsd-button outline"><i class="fas fa-envelope" style="margin-right: 8px;"></i>Email Digest</a>
<a href="https://www.facebook.com/stanforddaily/" target="_blank"><i class="fab fa-facebook"></i></a>
<a href="https://twitter.com/StanfordDaily" target="_blank"><i class="fab fa-twitter"></i></a>
<a href="https://www.instagram.com/stanforddaily/" target="_blank"><i class="fab fa-instagram"></i></a>
<a href="https://www.youtube.com/channel/UCWg3QqUzqxXt6herm5sMjNw" target="_blank"><i class="fab fa-youtube"></i></a>
</div>
</div>
</div><!-- .site-branding -->
<nav id="site-navigation" class="main-navigation">
<div class="container">
<div class="nav-row">
<a href="#" class="nav-close-button"><i class="fas fa-times"></i></a>
<?php
wp_nav_menu( array(
'container' => false, // Avoid extra container
'theme_location' => 'menu-primary',
'menu_id' => 'primary-menu',
) );
include "inc/tips-widget.php";
?>
</div>
</div>
</nav><!-- #site-navigation -->
</header><!-- #masthead -->
<div id="content" class="site-content">
<div class="container">