blob: 4b4001d7f0ce16b43de2b4d6b30473949a13ad27 (
plain)
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
|
<?php require_once "../lib/login.php" ?>
<nav>
<div class="limwidth">
<a href="/" class="site-icon nolinkstyle nav-item">
<span class="icon"><?php include "img/cart-outline.svg" ?></span>
<span class="label">winkel</span>
</a>
<a href="/products.php" class="nolinkstyle nav-item"><span>producten</span></a>
<?php do {
if ($logged_in) break;
echo <<<"EOF"
<a href="/login.php" class="nolinkstyle nav-item"><span>login</span></a>
EOF;
} while (false); ?>
<?php do {
if (!$logged_in) break;
echo <<<"EOF"
<a href="/cart.php" class="nolinkstyle nav-item">
<span>mand ($cart_count)</span>
</a>
EOF;
} while (false); ?>
<?php do {
if (($user_privileges & PRIVILEGE_ADMIN) == 0) break;
echo <<<"EOF"
<div class='nav-item'>
<span class='adminmode'>(ingelogd als administrator)</span>
</div>
EOF;
} while (false); ?>
</div>
</nav>
|