-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathheader.php
executable file
·314 lines (281 loc) · 9.7 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
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
<!DOCTYPE html>
<html lang="en-US">
<head>
<!--META-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0,">
<meta name="keywords" content="robotics, FRC, Team 1160, FRC 1160, Titanium Robotics, Titanium FRC, Titanium 1160, Team Titanium, FRC Robotics, San Marino, San Marino High School, FRC Team 1160, Team 1160 FRC, San Marino Robotics, Firebird Robotics" />
<meta name="description" content="Titanium Robotics is an FRC robotics team dedicated to teaching real-life applications and furthering STEM education through experiences that cannot be taught in a regular classroom environment." />
<!--TITLE-->
<title><?php wp_title(' // ', true, 'right'); bloginfo('name', '//'); ?></title>
<!--LINKS-->
<link rel="alternate" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<link rel="icon" type="application/rss+xml" href="<?php bloginfo('template_directory') ?>/assets/favicon.ico" />
<!-- APPLE TOUCH ICONS -->
<link rel="apple-touch-icon" href="/ti-static/logos/apple-touch-icons/touch-icon-iphone.png">
<link rel="apple-touch-icon" sizes="76x76" href="/ti-static/logos/apple-touch-icons/touch-icon-ipad.png">
<link rel="apple-touch-icon" sizes="120x120" href="/ti-static/logos/apple-touch-icons/touch-icon-iphone-retina.png">
<link rel="apple-touch-icon" sizes="152x152" href="/ti-static/logos/apple-touch-icons/touch-icon-ipad-retina.png">
<!--TITANIUM ROBOTICS LOGO || USES REL=LOGO (RELOGO.ORG) FOR MAINTAINING THE LOGO-->
<link rel="logo"
type="image/svg"
href="/ti-static/logos/logo.svgz" />
<!--SCRIPTS-->
<?php wp_head(); ?>
<!-- NAVIGATION -->
<script src="<?php bloginfo('template_directory');?>/js/responsive-nav.min.js?ver=2" type="text/javascript" async></script>
<!-- SMOOTH SCROLL -->
<script src="<?php bloginfo('template_directory');?>/js/smoothscroll.js" type="text/javascript" async></script>
<!-- ICONS FONT FOR IE9 -->
<!--[if lte IE 7]>
<script src="<?php bloginfo('template_directory'); ?>/fonts/ie7.js" type="text/javascript"></script>
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/fonts/ie7.css" />
<![endif]-->
<!-- HTML5 FOR IE9 -->
<!--[if lt IE 9]>
<script src="<?php bloginfo('template_directory'); ?>/js/html5shiv.js"></script>
<![endif]-->
<!-- ANNOUNCE THAT IE ISN'T IDEAL - STYLES -->
<!--[if IE]>
<style>
#ie-announcement {
background: #7fb3e2;
line-height:1.5;
text-align:center;
padding:10px;
box-sizing:border-box;
display:block;
}
</style>
<![endif]-->
<!--CSS-->
<style>
.print {
display:none;
visibility:hidden;
}
</style>
<!--MAIN STYLESHEET-->
<link property="stylesheet" rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" /> <!-- NO VERSIONING HERE BECAUSE IT SHOULD REMAIN THE SAME -->
<?php if(is_front_page()) { ?>
<link property="stylesheet" rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/front-page.css?ver=2.11.4" />
<?php } ?>
<link property="stylesheet" rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/responsive-nav.css">
<?php if(is_page('forum')) : ?>
<style>
.topics {
list-style-type:none;
width:100%;
padding:1rem;
}
.topics ul li {
list-style-type:none;
}
.topics ul li:nth-of-type(odd) {
background:#D2D2D2;
}
.topics ul li a {
border:none;
width:100%;
padding:1rem;
}
</style>
<?php endif; ?>
<?php if(is_page_template('albums.php')) { ?>
<style>
img.alignleft, .alignleft {
float:left;
padding:0.5em!important;
box-sizing:border-box;
margin:0!important;
width:33.3333333333333333%!important;
}
.wp-caption-text {
font-size:1em!important;
color: #484848;
font-weight:bold;
text-align:left;
}
@media screen and (max-width: 720px) {
img.alignleft, .alignleft {
width:50%!important;
float:left!important;
margin:0;
}
}
@media screen and (max-width:360px) {
img.alignleft, .alignleft {
float:none!important;
margin:auto!important;
width:100%!important;
}
}
</style>
<?php }?>
<!--[if lt IE 9]>
<style>
#menuwrap {
top:0;
position:relative;
}
.thumbnail h1, .title .entry .titletext {
top:0;
bottom:0;
text-align:center;
}
</style>
<![endif]-->
</head>
<?php flush(); ?>
<!-- <BODY> START -->
<body class="<?php if (is_front_page()) : ?>front<?php elseif(is_attachment()):?>attachments<?php else: endif; ?>">
<!--TELL IE USERS THAT THE WEBSITE IS GOING TO LOOK WEIRD-->
<!--[if IE]>
<div id="ie-announcement">Hey! You're using Internet Explorer, which may cause our website to look funny! The solution is to <a href="http://browsehappy.com/">try a different browser</a>. <a href="http://blogs.computerworld.com/18552/12_reasons_not_to_use_internet_explorer_ever">Why?</a></div>
<![endif]-->
<?php if(!is_attachment()) { ?>
<?php // FEATURED IMAGE
if (!is_home()) {
global $post;
if(has_post_thumbnail( $post_id )) {
$post_image_id = get_post_thumbnail_id($post_to_use->ID);
if ($post_image_id) {
$thumbnail = wp_get_attachment_image_src( $post_image_id, 'post-thumbnail', false);
if ($thumbnail) (string)$thumbnail = $thumbnail[0];
}
}
if (!empty($thumbnail)) {
?>
<div class="featured-image screen" style="background-image: url('<?php echo $thumbnail; ?>')!important;"></div>
<?php }// if it has a thumbnail
}//if it isn't the blog index ?>
<div class="<?php if (is_front_page()) : ?>frontpage wrapper<?php else:?>normal wrapper<?php endif; ?>" id="page">
<header>
<!--START - NAVIGATION-->
<div id="menuwrap" class="custom-background">
<div class="border">
<div id="icon-nav">
<div class="menu">
<div class="logo">
<a href="/" title="Titanium Robotics, FRC Team 1160">
<img class="logo-screen" src="/ti-static/logos/logo.svgz" alt="logo-bird">
</a>
<div class="menu-right screen">
<div class="icon">
<a href="#" id="toggle" style="border:none" title="Open Menu" >
<img style="height:20px;" src="/ti-static/site/theme-Ti-22/assets/ui/ui-menu.svg?ver=4.2">
</a>
</div>
</div>
</div>
<?php /*SEARCH BAR? MAKE THE LOGO CLASS LEFT TEXT-ALIGN <span style="float:right;width: 33%;"><form style="
margin: 1rem 1.5rem;
"><input type="search" style="
height: 100px;
background: none;
border: none;
border-bottom: 1px solid #0067c6;
box-shadow: none;
border-radius: 0;
-webkit-appearance: none;
width: 100%;
font-size: 1.5rem;
text-transform: uppercase;
font-weight: bold;
" placeholder="i'm looking for. . ."></form></span>*/ ?>
</div>
</div>
<div class="nav screen" id="nav">
<?php
wp_nav_menu(
array(
'theme_location' => 'Main-Navigation',
'menu_class' => 'ti22 menu-1',
)
);
?>
<div class="login screen">
<?php if(is_user_logged_in()) {
}
else {
wp_loginout( get_permalink() );
}
?>
</div>
<div class="clear"></div>
</div>
</div>
</div>
<div class="clear"></div>
<?php if(!is_front_page() && !is_404() && !is_search() && !is_home()) : ?>
<div id="subpages"><div class="limit">
<div class="table">
<?php if(!has_post_thumbnail( $post_id )) {?>
<div class="title">
<h1>
<?php
wp_title("", true);
?>
</h1>
</div>
<?php } ?>
<?php if(!is_author() && !is_search() && !is_404() &&!is_home() && !is_category()) : ?>
<?php
if($post->post_parent)
$children = wp_list_pages(
"title_li=&child_of=".$post->post_parent."&echo=0"
);
else
$children = wp_list_pages(
"title_li=&child_of=".$post->ID."&echo=0"
);
if ($children) {
$parent_title = get_the_title($post->post_parent);?>
<div class="links screen<?php if(!has_post_thumbnail( $post_id )) {} else{?> withthumbnail<?php } ?>">
<ul class="sublinks">
<li<?php
if (is_page($post->post_parent))
{
echo " class=\"current-menu-item\"";
}
?>><a href="<?php echo get_permalink($post->post_parent) ?>"><?php echo $parent_title;?></a></li>
<?php echo $children; ?>
</ul>
</div>
<?php } ?>
<?php endif; ?>
<?php if(is_single() && 'forum'!==get_post_type()) : ?>
<div class="links screen <?php if(has_post_thumbnail()) { ?>withthumbnail<?php }?>">
<ul class="sublinks">
<?php the_breadcrumb(); ?>
</ul>
</div>
<?php endif; ?>
</div>
</div></div>
<div class="clear"></div>
<?php endif; ?>
<?php } else { ?>
<div id="close">
<a href="<?php print $_SERVER['HTTP_REFERER'];?>">
<span class="team1160-delete-outline"></span>
</a>
</div>
<?php } ?>
</header>
<?php //FEATURED IMAGE-CONTINUED (TITLE OF PAGE)
if(!(is_home() || is_page_template('home-page.php'))) {
if(!empty($thumbnail)) {
?>
<div class="thumbnail">
<span>
<h1>
<?php the_title(); ?>
</h1>
</span>
</div>
<?php
}
}//if isn't a blog page and if has a thumbnail
?>