This repository has been archived by the owner on Aug 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
129 lines (126 loc) · 5.85 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
<?php get_template_part('load/head'); ?>
<body id="<?php print get_stylesheet(); ?>" <?php body_class(); ?>>
<div class="mobile-menu-outer">
<div class="mobile-menu">
<?php
wp_nav_menu(array(
'menu' => wp_get_nav_menu_name( 'sections' ),
'menu_class' => "menu-items",
'container' => "nav",
'container_id' => "menu",
'depth' => "1",
)); ?>
</div>
</div>
<header class="site-header">
<div class="search-dropdown">
<div class="search-dropdown-inner">
<form class="search-dropdown-form" method="get" action="<?php echo home_url('/'); ?>">
<i class="far fa-search"></i>
<input type="text" class="search-field" name="s" value="<?php the_search_query(); ?>" placeholder="Enter your search term and press enter...">
</form>
</div>
</div>
<div class="newsletter-dropdown">
<div class="newsletter-dropdown-inner">
<form class="newsletter-dropdown-form" action="https://bhsjacket.us20.list-manage.com/subscribe/post" method="POST" target="_blank">
<input type="hidden" name="u" value="cd770a9475cd688fc6dcac8f1">
<input type="hidden" name="id" value="43ce4620e7">
<input type="email" class="email-field" autocapitalize="off" autocorrect="off" name="MERGE0" id="MERGE0" placeholder="Type your email address to receive an occasional email about our best stories...">
<div style="position: absolute; left: -5000px;" aria-hidden="true">
<input type="text" name="b_cd770a9475cd688fc6dcac8f1_43ce4620e7" tabindex="-1" value="">
</div>
<input type="submit" value="Subscribe" class="subscribe-button">
</form>
</div>
</div>
<div class="sections-dropdown">
<div class="sections-dropdown-inner">
<ul>
<?php
wp_nav_menu(array(
'menu' => wp_get_nav_menu_name( 'sections' ),
'menu_class' => "menu-items",
'container' => "nav",
'container_id' => "menu",
'depth' => "1",
)); ?>
</ul>
<?php if(is_user_logged_in()) { ?>
<a href="<?php echo wp_logout_url(get_site_url()) ?>" class="login-link">Logout</a>
<?php } else { ?>
<a href="<?php echo wp_login_url(get_site_url()) ?>" class="login-link">Login</a>
<?php } ?>
</div>
</div>
<div class="donation-dropdown">
<div class="donation-dropdown-inner">
<div class="donation-dropdown-left">
<i class="far fa-newspaper"></i>
<span>Help us continue to provide a platform for professional-level student journalism.</span>
</div>
<div class="donation-dropdown-right">
<div class="donation-dropdown-form">
<form action="https://jeromepaulos.com/bhsjacket/donation/donation.php" method="post" target="_blank">
<input type="hidden" name="page" value="<?php echo get_site_url() . $_SERVER['REQUEST_URI']; ?>">
<select name="amount">
<option value="10.00">$10</option>
<option value="25.00" selected>$25</option>
<option value="50.00">$50</option>
<option value="100.00">$100</option>
<option value="Other">Other</option>
</select>
<input type="submit" value="Support the Jacket">
</form>
</div>
</div>
</div>
</div>
<div class="default-header">
<div class="header-inner">
<div class="header-left">
<ul>
<li class="sections-toggle"><i class="far fa-bars"></i><span>Sections</span></li>
<li><a href="/section/news">News</a></li>
<li><a href="/section/features">Features</a></li>
<li><a href="/section/opinion">Opinion</a></li>
</ul>
</div>
<div class="header-center">
<a href="<?php echo get_site_url(); ?>"><img class="header-logo" src="<?php echo get_template_directory_uri(); ?>/images/masthead-dark.svg"></a>
</div>
<div class="header-right">
<ul>
<li class="newsletter-toggle"><a style="cursor:pointer">Newsletter</a></li>
<li class="header-button">Support Us</li>
<li class="search-toggle search-toggle-mobile"><span>Search</span><i class="far fa-search"></i></li>
<li class="search-toggle"><i class="far fa-search"></i></li>
</ul>
</div>
</div>
</div>
<div class="sticky-sections">
<div class="sticky-sections-inner">
<div class="sticky-sections-left">
<?php
wp_nav_menu(array(
'menu' => wp_get_nav_menu_name( 'sections' ),
'menu_class' => "menu-items",
'container' => "nav",
'container_id' => "menu",
'depth' => "1",
)); ?>
</div>
<div class="sticky-sections-right">
<ul>
<li class="newsletter-toggle"><a style="cursor:pointer">Newsletter</a></li>
<li class="header-button">Support Us</li>
<li class="search-toggle"><i class="far fa-search"></i></li>
</ul>
</div>
</div>
</div>
<?php if(is_singular(array('post', 'column'))) { ?>
<div class="progress-bar"></div>
<?php } ?>
</header>