-
Notifications
You must be signed in to change notification settings - Fork 1
/
nav.php
36 lines (36 loc) · 1.75 KB
/
nav.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
<script>
/**
* Check the browser of user using, it it's Internet Explorer, give users a warning.
*/
try{
ActiveXObject;//IE supports ActiveX Object.
console.warn("Internet Explorer is an old explorer! It's harmful for development. To save your life, please use a modern browser!");
var notIE = document.createElement("div");
notIE.innerHTML="You are using Internet Explorer! For your life, please use a modern browser!";
notIE.setAttribute("class","ie-warning");
document.body.appendChild(notIE);
}catch(e){
console.info("Congratulations! You're not using Internet Explorer! It is good for development!");
}
</script>
<header class="nav">
<nav class="nav-container">
<a href="./" non-link-style class="brand"><?php echo Property::$properties["forum"]['name'];?></a>
<div class="user">
<?php if(User::logged()){?><a class="username <?php if(User::logged()['vip']) echo "user-vip";?>" title="View Profile" href="profile.php"><?php echo User::logged()['username'];?></a> | <a href="javascript:signOut();">Sign Out</a><?php }else{?><a class="username" href="auth.php">Sign In</a><?php }?>
</div>
</nav>
<pre id="hidden-user-card-validate"><?php echo json_encode(User::logged());?></pre>
</header>
<div class="bottom-dialog" id="post-dialog">
<div class="dialog-primary">
<input class="textfield" type="text" id="post-title" placeholder="Title..." />
<button class="btn-icon" id="dialog-close">+</button>
</div>
<div class="dialog-content">
<textarea class="beauty-textarea" id="post-content" required placeholder="Content"></textarea>
<div class="error" id="post-error"></div>
</div>
<div><button id="submit-post" class="btn">Submit</button></div>
</div>
<button class="fab new-post" title="New Post">+</button>