-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
274 lines (252 loc) · 10.3 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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
<?php
/**
* Theme Header
*
*/
global $e404_options;
if($post) {
$e404_options['post_id'] = $post->ID;
$e404_options['post_parent'] = $post->post_parent;
}
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title><?php wp_title('«', true, 'right'); ?><?php bloginfo('name'); ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_url'); ?>" />
<link rel="stylesheet" type="text/css" media="all" href="/wp-content/themes/shiny-child/searchCustom/search_wp.css" />
<script type="text/javascript" src="/wp-includes/js/jquery/jquery.js"></script>
<script type="text/javascript" src="/wp-content/themes/shiny-child/searchCustom/cdm_for_wp.js"></script>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php
if ( is_singular() && get_option( 'thread_comments' ) )
wp_enqueue_script( 'comment-reply' );
wp_head();
?>
</head>
<body
<?php
$isHomer = false;
if(substr(e404_get_current_template(), 0, 9) == 'home-page') {
echo ' class="body_slider"';
} elseif(substr(e404_get_current_template(), 0, 10) == 'page-teach') {
echo ' class="teach"';
} elseif(substr(e404_get_current_template(), 0, 8) == 'page-rsa') {
echo ' class="rsa"';
} elseif(substr(e404_get_current_template(), 0, 18) == 'portfolio-civilwar') {
echo ' class="civilwar"';
} elseif(substr(e404_get_current_template(), 0, 13) == 'page-civilwar') {
echo ' class="civilwar"';
} elseif(substr(e404_get_current_template(), 0, 17) == 'page-civilwar-sub') {
echo ' class="civilwar"';
} elseif(substr(e404_get_current_template(), 0, 4) == 'page') {
echo ' class=""';
} elseif(is_category( 'reveille' )) {
echo ' class="civilwar"';
} elseif(is_category( 'lessons' )) {
echo ' class="teach"';
} elseif(is_category( 'events' )) {
echo ' class="teach"';
} elseif(is_category( 'programs' )) {
echo ' class="teach"';
} elseif(is_category( 'resources' )) {
echo ' class="teach"';
} elseif(is_category( 'homeschool' )) {
echo ' class="teach"';
} elseif(is_category( 'michiganmitten' )) {
echo ' class="teach"';
} elseif(is_category( 'missinglabelproject' )) {
echo ' class="label"';
} elseif(is_category( 'archives-event' )) {
echo ' class=""';
} elseif( is_single() ) {
$cats = wp_get_post_categories($posts[0]->ID);
if ($cats) {
foreach ($cats as $cat) {
if ($cat == '593' ) { echo ' class="civilwar"'; }
elseif ($cat == '4' ) { echo ' class="teach"'; }
}
}
}
?>>
<?php do_action('after_body'); ?>
<div id="main_wrapper">
<div id="top_header_wrapper">
<div id="header_bar_wrapper">
<div id="header_bar">
<div id="header_bar_inner">
<?php if(!$e404_options['remove_top_contact_box']) : ?>
<div id="header_info" class="leftside">
<?php echo $e404_options['top_contact_box']; ?>
</div>
<?php endif; ?>
<div id="social_icons" class="leftside">
<?php e404_show_header_social_icons(); ?>
</div>
<div class="rightside">
<?php if(!$e404_options['remove_search_form'] && !$isHomer) : ?>
<div id="search">
<div id="search_content" class="leftside">
<div class="search_content_container leftside" style="margin-top: 3px;">
<span id="search_content_text">Search Digital Archive:</span>
</div>
<div class="search_content_container leftside" style="margin-top: 4px;">
<input id="search_content_box" class="search_content_box_noresults" type="text" autocomplete="off" value="" name="search_content_box" tabindex="1" />
<input id="search_results_button_mode" type="hidden" value="0" />
</div>
<div class="search_content_container leftside" style="margin-top: 0px;">
<input id="simple_search_button" class="search_content_button" type="button" value="go" tabindex="2" />
</div>
</div>
<div class="search_content_container_advanced">
<div id="search_content_adv_link" tabindex="6">Advanced Search</div>
</div>
</div>
<?php endif; ?>
</div><!--- end rightside --->
<br class="clear" />
</div> <!--- end header_bar_inner --->
</div><!--- end header_bar --->
</div><!--- end header_bar_wrapper --->
</div>
<div id="adv_search">
<div id="adv_search_content" class="leftside">
<div id="adv_search_col_1">
<h2 class="cdm_style leftside" style="margin-bottom:0;">Find results with:</h2>
<div id="adv_search_error" class="leftside spacePad10T spacePad10L spaceMar10L ui-state-error ui-corner-all" style="display:none;height:24px;width:500px;">
<span class="icon_10 ui-icon-alert"></span>
error div
</div>
<span class="clear"></span>
<ul id="adv_search_query_builder_list" style="float:left;padding:0;margin:0;margin-bottom:15px;list-style-type:none;">
<li id="rid0" class="adv_search_row ">
<ul class="adv_search_ul_row">
<li class="leftside">
<select id="rid0_mode" class="adv_search_type_dd" >
<option selected="selected" value="all">All of the words</option>
<option value="any">Any of the words</option>
<option value="exact">The exact phrase</option>
<option value="none">None of the words</option>
</select>
</li>
<li class="leftside spaceMar5L">
<input id="rid0_term" class="adv_search_str" type="text" value="" />
</li>
<li class="leftside spaceMar5L spacePad5">in</li>
<li class="leftside spaceMar5L">
<select id="rid0_field" class="adv_search_domain_dd">
<option selected="selected" value="all">All fields</option>
<option value="title">Title</option>
<option value="subjec">Subject</option>
<option value="descri">Description</option>
<option value="date">Date</option>
</select>
</li>
<li class="leftside spaceMar5L">
<select id="rid0_connector" class="adv_search_and_or_dd">
<option selected="selected" value="and">and</option>
<option value="or">or</option>
</select>
</li>
<li class="adv_search_option_remove_link_box leftside spaceMar10L spacePad5">
<a class="remove_adv_search_row_link action_link_10" href="javascript://" rid="rid0"></a>
</li>
</ul>
<span class="clear"></span>
</li>
<li id="rid1" class="adv_search_row adv_search_row_bgcolor">
<ul class="adv_search_ul_row">
<li class="leftside">
<select id="rid1_mode" class="adv_search_type_dd">
<option selected="selected" value="all">All of the words</option>
<option value="any">Any of the words</option>
<option value="exact">The exact phrase</option>
<option value="none">None of the words</option>
</select>
</li>
<li class="leftside spaceMar5L">
<input id="rid1_term" class="adv_search_str" type="text" value="" />
</li>
<li class="leftside spaceMar5L spacePad5">in</li>
<li class="leftside spaceMar5L">
<select id="rid1_field" class="adv_search_domain_dd">
<option selected="selected" value="all">All fields</option>
<option value="title">Title</option>
<option value="subjec">Subject</option>
<option value="descri">Description</option>
<option value="date">Date</option>
</select>
</li>
<li class="leftside spaceMar5L">
<select id="rid1_connector" class="adv_search_and_or_dd">
<option selected="selected" value="and">and</option>
<option value="or">or</option>
</select>
</li>
<li class="adv_search_option_remove_link_box leftside spaceMar10L spacePad5">
<a class="remove_adv_search_row_link action_link_10" href="javascript://" rid="rid1">remove</a>
</li>
</ul>
<span class="clear"></span>
</li>
</ul>
<span class="clear"></span>
<div>
<a id="adv_search_add_field_link" class="action_link_10" href="javascript://">Add another field</a>
</div>
<span class="clear"></span>
<div id="adv_search_col_1_bottom" class="spaceMar10T">
<span id="icon_adv_search_datearrow" class="icon_10 icon_adv_search ui-icon-triangle-1-e"></span>
<span class="icon_10 icon_adv_search ui-icon-calendar"></span>
<div id="adv_search_by_date_link" class="action_link_10">Search by date</div>
<div id="adv_search_by_date_container" class="spaceMar10T">
<ul id="adv_search_datepicker_list" style="list-style-type:none;padding:0;margin:0;">
<li class="leftside">
<select id="adv_search_date_range" class="adv_search_date_range">
<option selected="selected" value="from">from</option>
<option value="after">after</option>
<option value="before">before</option>
<option value="on">on</option>
</select>
</li>
<li class="leftside spaceMar15L">
<input id="datepicker1" class="datestring" type="text" value="mm/dd/yyyy" />
</li>
<li class="leftside spaceMar15L spacePad5">
<span id="datepickerTo">to</span>
</li>
<li class="leftside spaceMar15L">
<input id="datepicker2" class="datestring" type="text" value="mm/dd/yyyy" />
</li>
</ul>
</div>
</div>
<span class="clear"></span>
<div class="spaceMar15R spaceMar15T leftside">
<input id="advanced_search_button" class="search_content_button" type="button" value="Search" />
</div>
<span class="clear"></span>
</div>
</div>
<div id="adv_search_col_2">
<h3 class="cdm_style">Searching collections:</h3>
<span class="clear"></span>
<div>
<!---<a id="advanced_max_collections_link" class="action_link_10" href="javascript://"> Add or remove collections </a>--->
<img id="advanced_max_collections_link" src="//seekingmichigan.org/wp-includes/js/tinymce/themes/advanced/skins/default/img/progress.gif" >
</div>
</div>
<span class="clear"></span>
</div>
<span class="clear"></span>
<div id="header_wrapper">
<div id="header">
<div id="logo"><a href="<?php echo home_url(); ?>"><img src="<?php echo $e404_options['logo_url']; ?>" alt="<?php echo esc_attr(get_bloginfo('name', 'display')); ?>" /></a></div>
<div id="navigation" class="rightside">
<?php wp_nav_menu(array('theme_location' => 'header-menu', 'container' => false, 'menu_class' => 'sf-menu', 'link_before' => '<span class="menu-btn">', 'link_after' => '</span>')); ?>
<br class="clear" />
</div>
<br class="clear" />
</div>
</div>