forked from hakkens/davehakkens
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
110 lines (76 loc) · 3.86 KB
/
header.php
File metadata and controls
110 lines (76 loc) · 3.86 KB
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
<?php $current_url = $_SERVER["REQUEST_URI"]; ?>
<!DOCTYPE html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title><?php wp_title(); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/normalize.css">
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/main.css">
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/fullpage.css">
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>">
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/rwd.css">
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/js/vendor/fancybox/jquery.fancybox.css">
<script src="<?php bloginfo('template_url'); ?>/js/vendor/modernizr-2.8.3.min.js"></script>
<meta property="og:image" content="<?php bloginfo('template_url'); ?>/img/og.png" />
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id="mobile-navbar">
<a href="#" id="menu-toggle"></a>
<div id="logo">
<a href="<?php bloginfo( 'url' ); ?>">
<img src="<?php bloginfo( 'template_url' ); ?>/img/logo.png">
</a>
</div>
</div>
<div id="mobile-menu">
<ul>
<li><a class="news<?php echo $current_url == '/' ? ' current' : '' ; ?>" href="<?php bloginfo('url'); ?>">News</a></li>
<li><a class="projects<?php echo $current_url == '/projects/' ? ' current' : '' ; ?>" href="/projects/">Projects</a></li>
<li><a class="about<?php echo $current_url == '/about/' ? ' current' : '' ; ?>" href="/about/">About</a></li>
<li><a class="community<?php echo strpos($current_url, 'community') ? ' current' : '' ; ?>" href="/community/forums">Community</a>
<ul>
<li><a class="forums<?php echo strpos($current_url, 'forums') ? ' current' : '' ; ?>" href="/community/forums/">Forums</a></li>
<li><a class="members<?php echo strpos($current_url, 'members') ? ' current' : '' ; ?>" href="/community/members/">Members</a></li>
<li><a class="helpus" href="/community/forums/forum/general/help-building-our-projects/">Help us</a></li>
<li><a class="what<?php echo strpos($current_url, 'what') ? ' current' : '' ; ?>" href="/community/what/">What?</a></li>
</ul>
</li>
</ul>
<div class="social">
<a href="http://www.facebook.com/davehakkens" target="_blank">
<img src="<?php bloginfo('template_url'); ?>/img/social_facebook.png">
</a>
<a href="http://www.instagram.com/davehakkens" target="_blank">
<img src="<?php bloginfo('template_url'); ?>/img/social_instagram.png">
</a>
<a href="http://www.twitter.com/davehakkens" target="_blank">
<img src="<?php bloginfo('template_url'); ?>/img/social_twitter.png">
</a>
<a href="http://www.liekeland.nl" target="_blank">
<img src="<?php bloginfo('template_url'); ?>/img/social_liekeland.png">
</a>
<a href="/mailinglist/">
<img src="<?php bloginfo('template_url'); ?>/img/social_mail.png">
</a>
<div id="user-menu">
<?php if( !is_user_logged_in() ): ?>
<a href="<?php bloginfo( 'url' ); ?>/community/login/" class="user-toggle"></a>
<?php else: ?>
<?php global $current_user; get_currentuserinfo(); ?>
<div class="user">
<?= $current_user->user_firstname . ' ' . $current_user->user_lastname; ?>
<div class="actions">
<a href="<?= bp_loggedin_user_domain(); ?>">My profile</a>
<a href="<?= wp_logout_url(home_url()); ?>">Log out</a>
</div>
</div>
<span class="avatar">
<a href="<?= bp_loggedin_user_domain(); ?>"><?= get_avatar( $current_user->user_email, 22 ); ?></a>
</span>
<?php endif; ?>
</div>
</div>
</div>