-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
44 lines (40 loc) · 1.93 KB
/
header.php
File metadata and controls
44 lines (40 loc) · 1.93 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
<header class="site-header">
<div class="header-bar">
<div class="container-fluid">
<div class="row align-items-center">
<div class="col-10 col-lg-4">
<h1 class="site-branding flex">
<a href="#">SOLOFEST</a>
</h1>
</div>
<div class="col-2 col-lg-8">
<nav class="site-navigation">
<div class="hamburger-menu d-lg-none">
<span></span>
<span></span>
<span></span>
<span></span>
</div><!-- .hamburger-menu -->
<ul>
<li><a href="index.php"> <h5>BERANDA</h5> </a></li>
<li><a href="blog.php"><h5>BLOG</h5></a></li>
<?php
session_start();
if (isset($_SESSION['username']) and ($_SESSION['status']=='user')) {
echo '
<li><a href="logout.php" class="btn"> <h5>LOGOUT<i class="fa fa-sign-out-alt" style="padding-left:10px;"></i> </h5></a></li>
';
}
else{
?>
<li><a href="#" class="btn" onclick="document.getElementById('id01').style.display='block'" > <h5>LOGIN<i class="fa fa-sign-in-alt" style="padding-left:10px;"></i> </h5></a></li>
<?php
}
?>
</ul><!-- flex -->
</nav><!-- .site-navigation -->
</div><!-- .col-12 -->
</div><!-- .row -->
</div><!-- container-fluid -->
</div><!-- header-bar -->
</header><!-- .site-header -->