-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnavbar.php
103 lines (89 loc) · 3.35 KB
/
navbar.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
<!-- Start of navigation -->
<!-- Start of md navigation -->
<nav class='navbar sticky-top mobile-hide'>
<div class='container-fluid'>
<ul class='navbar-nav'>
<li class='nav-item'>
<a href='artists.php' class='nav-link'>Artists</a>
</li>
</ul>
<ul class='navbar-nav'>
<li class='nav-item'>
<a href='galleries.php' class='nav-link'>Galleries</a>
</li>
</ul>
<a href='home.php' class='nav-header mr-5'>
MONEYLISA
</a>
<ul class='navbar-nav'>
<li class='nav-item'>
<!-- Check to see if there is a user session -->
<?php if (isset($user)) : ?>
<a href='enthusiast-art-orders.php?id=<?= $_SESSION['user_id'] ?>' class='nav-link'>
Account
</a>
<?php else : ?>
<a href='signin.php' class='nav-link'>
Account
</a>
<?php endif; ?>
</li>
</ul>
<ul class='navbar-nav'>
<li class='nav-item'>
<!-- Check to see if there is a user session -->
<?php if (isset($user)) : ?>
<p>
Hey
<a href='enthusiast-art-orders.php?id=<?= $_SESSION['user_id'] ?>'>
<?= substr($user['name'], 0, strpos($user['name'], ' ')) ?>
</a>
|
<a href='logout.php' class='space-cadet'>Log out</a>
</p>
<?php else : ?>
<div class='col-lg-12'>
<p><a href='signin.php'>Sign In</a> or <a href='signup.php'>Sign Up</a></p>
</div>
<?php endif; ?>
</li>
</ul>
</div>
<hr class='mobile-hide hr' />
</nav>
<!-- End of md navigation -->
<!-- Start of mobile navigation -->
<div class='mobile-show'>
<div class='container'>
<a href='home.php' class='nav-header center'>
<center>MONEYLISA</center>
</a>
<hr class='hr-mobile' />
<ul class='nav justify-content-center'>
<li class='nav-item'>
<a href='galleries.php' class='nav-link'>Galleries</a>
</li>
<!-- Check to see if there is a user session -->
<?php if (isset($user)) : ?>
<li class='nav-item'>
<a href='client-dashboard.php' class='nav-link imperial-red'>
<?= substr($user['name'], 0, strpos($user['name'], ' ')) ?>
</a>
<a href='logout.php' class='nav-link space-cadet'>Log out</a>
</li>
<li class='nav-item'>
<?php else : ?>
<p class='nav-link'>
<a href='signin.php'>Sign In</a>
or
<a href='signup.html'>Sign Up</a>
</p>
</li>
<?php endif; ?>
</ul>
<hr class='hr-mobile' />
</div>
</div>
<!-- End of mobile navigation -->
<!-- End of navigation -->
<!-- -------------------------------------------------------------------------------------------- -->