forked from crimsonstrife/helicalgames.net-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
442 lines (421 loc) · 16.8 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
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
<!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 profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php bloginfo( 'charset' ); ?>" />
<?php if ( current_theme_supports( 'bp-default-responsive' ) ) : ?><meta name="viewport" content="width=device-width, initial-scale=1.0" /><?php endif; ?>
<title><?php wp_title( '|', true, 'right' ); bloginfo( 'name' ); ?></title>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<link rel="stylesheet" href="/public/helicalnet/css/normalize.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link href="/public/helicalnet/css/slider.css" rel="stylesheet" type="text/css">
<link rel="apple-touch-icon" sizes="57x57" href="/public/helicalnet/imgs/icons/favicons/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/public/helicalnet/imgs/icons/favicons/apple-touch-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/public/helicalnet/imgs/icons/favicons/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/public/helicalnet/imgs/icons/favicons/apple-touch-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/public/helicalnet/imgs/icons/favicons/apple-touch-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/public/helicalnet/imgs/icons/favicons/apple-touch-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/public/helicalnet/imgs/icons/favicons/apple-touch-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/public/helicalnet/imgs/icons/favicons/apple-touch-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/public/helicalnet/imgs/icons/favicons/apple-touch-icon-180x180.png">
<link rel="icon" type="image/png" href="/public/helicalnet/imgs/icons/favicons/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="/public/helicalnet/imgs/icons/favicons/favicon-194x194.png" sizes="194x194">
<link rel="icon" type="image/png" href="/public/helicalnet/imgs/icons/favicons/favicon-96x96.png" sizes="96x96">
<link rel="icon" type="image/png" href="/public/helicalnet/imgs/icons/favicons/android-chrome-192x192.png" sizes="192x192">
<link rel="icon" type="image/png" href="/public/helicalnet/imgs/icons/favicons/favicon-16x16.png" sizes="16x16">
<link rel="manifest" href="/public/helicalnet/imgs/icons/favicons/manifest.json">
<link rel="mask-icon" href="/public/helicalnet/imgs/icons/favicons/safari-pinned-tab.svg" color="#6699ff">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-TileImage" content="/public/helicalnet/imgs/icons/favicons/mstile-144x144.png">
<meta name="theme-color" content="#ffffff">
<?php bp_head(); ?>
<?php wp_head(); ?>
<script src="js/prefixfree.min.js"></script>
<script type="text/javascript" src="js/news-slider.js"></script>
<script>
$(function()
{
$("a#toggle-account").click(function()
{
$("#account__subitem").slideToggle();
return false;
});
});
</script>
<script>
$(function()
{
$("a#toggle-games").click(function()
{
$("#games__subitem").slideToggle();
return false;
});
});
</script>
<script>
$(function()
{
$("a#toggle-community").click(function()
{
$("#community__subitem").slideToggle();
return false;
});
});
</script>
<script>
$(function()
{
$("a#toggle-more").click(function()
{
$("#more__subitem").slideToggle();
return false;
});
});
</script>
<script>
$('.slider').each(function() {
var $this = $(this);
var $group = $this.find('.slide_group');
var $slides = $this.find('.slide');
var bulletArray = [];
var currentIndex = 0;
var timeout;
function move(newIndex) {
var animateLeft, slideLeft;
advance();
if ($group.is(':animated') || currentIndex === newIndex) {
return;
}
bulletArray[currentIndex].removeClass('active');
bulletArray[newIndex].addClass('active');
if (newIndex > currentIndex) {
slideLeft = '100%';
animateLeft = '-100%';
} else {
slideLeft = '-100%';
animateLeft = '100%';
}
$slides.eq(newIndex).css({
display: 'block',
left: slideLeft
});
$group.animate({
left: animateLeft
}, function() {
$slides.eq(currentIndex).css({
display: 'none'
});
$slides.eq(newIndex).css({
left: 0
});
$group.css({
left: 0
});
currentIndex = newIndex;
});
}
function advance() {
clearTimeout(timeout);
timeout = setTimeout(function() {
if (currentIndex < ($slides.length - 1)) {
move(currentIndex + 1);
} else {
move(0);
}
}, 4000);
}
$('.next_btn').on('click', function() {
if (currentIndex < ($slides.length - 1)) {
move(currentIndex + 1);
} else {
move(0);
}
});
$('.previous_btn').on('click', function() {
if (currentIndex !== 0) {
move(currentIndex - 1);
} else {
move(3);
}
});
$.each($slides, function(index) {
var $button = $('<a class="slide_btn">•</a>');
if (index === currentIndex) {
$button.addClass('active');
}
$button.on('click', function() {
move(index);
}).appendTo('.slide_buttons');
bulletArray.push($button);
});
advance();
});
</script>
<style>
#slashadmin_eucookielaw {
display: block;
position: fixed;
width: 100%;
text-align: center;
padding: 1.5em 1em 0 1em;
font-size: 90%;
z-index: 999999;
-webkit-transition: all 1s ease;
-moz-transition: all 1s ease;
-o-transition: all 1s ease;
-ms-transition: all 1s ease;
transition: all 1s ease;
}
#slashadmin_eucookielaw p {
margin-bottom: 1.5em;
line-height: 2em;
}
#slashadmin_cookiemore {
border-bottom: 1px dotted;
}
#slashadmin_removecookie {
padding: 0.5em 1.5em;
margin-left: 1em;
border-radius: 5px;
cursor: pointer;
font-weight: bold;
}
/* Bottom position */
#slashadmin_eucookielaw.cl_bottom {
bottom: 0;
margin-bottom: -999px;
}
#slashadmin_eucookielaw.cl_bottom.cl_visible {
margin-bottom: 0;
}
#slashadmin_eucookielaw.cl_bottom.cl_light {
border-top: 1px solid #ccc;
}
/* Dark (default) */
#slashadmin_eucookielaw.cl_dark {
background:#333333;
color: #fff;
box-shadow: 0px 0px 0px #000;
}
#slashadmin_eucookielaw.cl_dark #slashadmin_cookiemore {
color: #fff;
}
#slashadmin_eucookielaw.cl_dark #slashadmin_removecookie {
background: #6699FF;
color: #000;
}
</style>
</head>
<body <?php body_class(); ?> id="bp-default">
<?php if ( is_user_logged_in() ) : ?>
<?php else : ?>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-8869413432398897",
enable_page_level_ads: true
});
</script>
<?php endif; ?>
<?php do_action( 'bp_before_header' ); ?>
<?php do_action( 'bp_header' ); ?>
<nav class="Nav_Top">
<ul class="nav_top cf">
<li class="nav_logo h1" style="height: 52px; padding-left: 25px; padding-bottom: 3px;">
<h1 class="dropTrigger">
<a href="<?php echo home_url(); ?>" class="ir logo"></a>
</h1>
</li>
<li>
<form action="<?php echo bp_search_form_action(); ?>" method="post" id="globalsearch" style="height: 62px;">
<div id="globalsearch" class="nav_top_search" role="search" style="height: 62px; margin-bottom: 5px;">
<input class="btn_search ir" type="image" name="search-submit" id="search-submit" style="position:relative; float:right;" value="<?php esc_attr_e( 'Search', 'buddypress', 'support' ); ?>" src="/public/helicalnet/imgs/icons/sprite_nav_search_v2.png"/>
</div>
</li>
<li>
<div id="globalsearch" class="nav_top_search" role="search" style="height: 62px; margin-bottom: 5px; background-color:#FFF;">
<input type="text" placeholder="Search" maxlength="150" id="text_search" class="container_textfield container_textbox floatingLabel" name="search-terms" style="border: hidden; position:relative; top:0; padding-top: 3px; margin-top: 15px;"/>
<?php echo bp_search_form_type_select(); ?>
</div>
</form><!-- #search-form -->
<!-- #search-bar -->
</li>
<?php if ( is_user_logged_in() ) : ?>
<a href="<?php echo bp_loggedin_user_domain() . 'friends/'; ?>" class="connect" style="text-decoration:none;">
<?php my_bp_adminbar_friends_menu()?></a>
<a href="<?php echo bp_loggedin_user_domain() . 'messages/'; ?>" class="connect" style="text-decoration:none;">
<?php my_bp_adminbar_messages_menu()?></a>
<a href="<?php echo bp_loggedin_user_domain() . 'notifications/'; ?>" class="connect" style="text-decoration:none;">
<?php my_bp_adminbar_notifications_menu()?></a>
<li class="right nav_goSignUp signedOut">
<div class="nav-bucket">
<a class="exempt" id="btn_signUp" href="/logout/">Sign Out</a>
</div>
</li
><?php else : ?>
<li class="right nav_identity cf">
<div class="nav-bucket">
<a href="/login/" class="connect">Sign In</a>
</div>
</li>
<li class="right nav_goSignUp signedOut">
<div class="nav-bucket">
<a class="exempt" id="btn_signUp" href="/register">Register</a>
</div>
</li>
<?php endif; ?>
</ul>
</nav>
<?php if ( is_front_page() && is_home() ) { ?>
<div class="slider" style="margin-top: 60px;">
<div class="slide_viewer">
<div class="slide_group">
<?php query_posts('posts_per_page=1&cat=48'); /*1, 2*/
if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<?php
$src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full', false, '' );
?>
<div class="slide" style="background: url(<?php echo $src[0]; ?> ) no-repeat; background-size: 100% 100%; height:auto; padding-top: 40%; padding-bottom: 10%;">
<a href=<?php the_permalink(); ?> style="text-decoration:none;"><div class="calloutcontent" style="margin-left: 5%; margin-right: 10%; padding-left:5%; padding-right:2%; position: absolute; bottom: 100px; max-height: 75%; padding: 10px; color: #f5f5f5; text-shadow: 0 1px 2px rgba(0,0,0,0.15); box-shadow: 0 3px 15px rgba(0,0,0,0); font-size: 1rem; transition: 0.25s;">
<div class="sectionheader" style="position: relative; display: inline-block;width: 100%; line-height: 19px; margin-bottom: 18px; color: #6699ff; text-shadow: 0 1px 1px rgba(0,0,0,.15); font-size: 2rem; font-weight: 500; text-transform: uppercase; letter-spacing: 2px;"><?php the_title(); /*3*/ ?></div>
<div class="calloutdate" style="color: #f5f5f5; text-decoration: none; text-shadow: 0 1px 2px rgba(0,0,0,0.15); box-shadow: 0 3px 15px rgba(0,0,0,0); font-size: 1.5rem; font-weight: 200;"><?php the_date(); ?></div>
<div class="calloutsummary" style="color: #f5f5f5; text-decoration: none; text-shadow: 0 1px 2px rgba(0,0,0,0.15); box-shadow: 0 3px 15px rgba(0,0,0,0); font-size: 1rem; font-weight: 200;"><?php the_excerpt(); ?></div>
read more...
</div></a>
</div>
<?php endwhile; ?>
<div class="slide_buttons">
</div>
</div><!-- End // .slider -->
<?php wp_reset_query(); /*4*/ ?>
</div>
</div>
<?php } ?>
<nav class="main-menu">
<?php if ( is_user_logged_in() ) : ?>
<a class="menu__item" href="<?php echo bp_loggedin_user_domain(); ?>">
<div class="user_info" style="padding-left: 5px; padding-top: 2px;">
<div class="user__avatar">
<?php bp_loggedin_user_avatar( 'type=thumb&width=40&height=40' ); ?>
</div>
<div class="user__username">
<?php global $current_user;
get_currentuserinfo();
echo $current_user->user_login . "\n"; ?>
</div>
<div class="user__status" style="color:#3C0; padding-bottom: 2px;">Logged in</div>
</div>
</a>
<?php else : ?>
<a href="/login/" class="menu__item">
<div class="user_info" style="padding-left: 5px; padding-top: 2px;">
<div class="user__avatar">
<img src="https://www.gravatar.com/avatar/21768c94207461357618040aaa8be7a2?s=40&r=pg&d=mm" />
</div>
<div class="user__username">Guest</div>
<div class="user__status" style="padding-bottom: 2px;">
<?php if ( bp_get_signup_allowed() ) : ?>
<p id="login-text">
Log In or Register
</p>
</div>
<?php endif; ?>
</div>
</div>
</a>
<?php endif; ?>
<a class="menu__item" href="<?php echo home_url(); ?>">
<div class="menu__icon menu__icon--home"></div>
<div class="menu__content">Home</div>
</a>
<?php if ( is_user_logged_in() ) : ?>
<a class="menu__item" href="#" id="toggle-account">
<div class="menu__icon menu__icon--account"></div>
<div class="menu__content">My Account</div>
</a>
<div id="account__subitem">
<a id="account__subitem1" href="<?php echo bp_loggedin_user_domain() . 'messages/'; ?>">
<div class="menu__icon menu__icon--empty"></div>
<div class="menu__content">Messages<div class="circle" style="width: 15px; height: 15px; line-height: 14px;"><?php echo (isset($bp->loggedin_user->id) ? count( bp_get_total_unread_messages_count( $bp->loggedin_user->id ) ) : null); /* Error Fix by CodePinch */ ?></div></div>
</a>
<a id="account__subitem2" href="<?php echo bp_loggedin_user_domain() . 'friends/'; ?>">
<div class="menu__icon menu__icon--empty"></div>
<div class="menu__content">Requests<div class="circle" style="width: 15px; height: 15px; line-height: 14px;"><?php echo (isset($bp->loggedin_user->id) ? count( bp_friend_get_total_requests_count( $bp->loggedin_user->id ) ) : null); /* Error Fix by CodePinch */ ?></div></div>
</a>
</div>
<?php endif; ?>
<a class="menu__item" href="#" id="toggle-community">
<div class="menu__icon menu__icon--community"></div>
<div class="menu__content">Community</div>
</a>
<div id="community__subitem">
<a id="community__subitem1" href="/news/">
<div class="menu__icon menu__icon--news"></div>
<div class="menu__content">News</div>
</a>
<a id="community__subitem2" href="/forums/">
<div class="menu__icon menu__icon--forum"></div>
<div class="menu__content">Forums</div>
</a>
</div>
<a class="menu__item" href="#" id="toggle-games">
<div class="menu__icon menu__icon--games"></div>
<div class="menu__content">Games</div>
</a>
<div id="games__subitem">
<a id="games__subitem1" href="#">
<div class="menu__icon menu__icon--diverse"></div>
<div class="menu__content">Diverse</div>
</a>
</div>
<a class="menu__item" href="/help/">
<div class="menu__icon menu__icon--help"></div>
<div class="menu__content">Help</div>
</a>
<a class="menu__item" href="/store/">
<div class="menu__icon menu__icon--store"></div>
<div class="menu__content">Store</div>
</a>
<a class="menu__item" href="#">
<div class="menu__icon menu__icon--contact"></div>
<div class="menu__content">Contact</div>
</a>
<a class="menu__item" href="#" id="toggle-more">
<div class="menu__icon menu__icon--more"></div>
<div class="menu__content">More</div>
</a>
<div id="more__subitem">
<?php if ( is_user_logged_in() ) : ?>
<a id="more__subitem1" href="#">
<div class="menu__icon menu__icon--labs"></div>
<div class="menu__content">User Research</div>
</a>
<?php endif; ?>
<a id="more__subitem2" href="/about-us/">
<div class="menu__icon menu__icon--about"></div>
<div class="menu__content">About Us</div>
</a>
</div>
<a id="more__item" href="http://www.stream.haus">
<div class="menu__icon menu__icon--streamhaus"></div>
<div class="menu__content">Streamhaüs</div>
</a>
<?php if ( is_user_logged_in() ) : ?>
<a id="more__item" href="/login?action=logout">
<div class="menu__icon menu__icon--exit"></div>
<div class="menu__content">Sign Out</div>
</a>
<?php endif; ?>
</nav>
<?php if ( is_front_page() && is_home() ) { ?>
<div class="eventCalendar" style="position:relative; left: 0 !important; width: 100% !important; overflow: hidden;">
<div class="grid" style="width: 95%; max-width: 1474px; margin: 0 auto;">
</div>
</div>
<?php } ?>
<?php do_action( 'bp_after_header' ); ?>
<?php do_action( 'bp_before_container' ); ?>
<?php if( is_home() || is_front_page() ) : ?>
<div id="container" style="position:relative; width: 95%; max-width: 1474px; margin: 0 auto; height: auto;">
<?php else : ?>
<div id="container" style="position:relative; width: 95%; max-width: 1250px; margin: 62px auto; height: auto;">
<?php endif; ?>