aboutsummaryrefslogtreecommitdiff
path: root/public/navbar.php
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-05-08 18:35:39 +0200
committerlonkaars <loek@pipeframe.xyz>2023-05-08 18:35:39 +0200
commit770658c8434d7b7c0e716b7e375c733e79dc4a88 (patch)
tree5c1b48cfd9fd5748f0cb7d95051b396e15867fb5 /public/navbar.php
parentf3b582307cc3caf5ee0c7514d461e47fb5893bc7 (diff)
more website
Diffstat (limited to 'public/navbar.php')
-rw-r--r--public/navbar.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/public/navbar.php b/public/navbar.php
index f22a040..fca4663 100644
--- a/public/navbar.php
+++ b/public/navbar.php
@@ -1,3 +1,4 @@
+<?php require_once "../lib/login.php" ?>
<nav>
<div class="limwidth">
<a href="/" class="site-icon nolinkstyle">
@@ -6,6 +7,14 @@
</a>
<a href="/products.php" class="nolinkstyle"><span>producten</span></a>
<a href="/login.php" class="nolinkstyle"><span>login</span></a>
- <a href="/cart.php" class="nolinkstyle"><span>mand (</span><span id="cartn">0</span><span>)</span></a>
+ <a href="/cart.php" class="nolinkstyle">
+ <?php
+ echo "<span>mand";
+ if ($logged_in) {
+ echo " (".$cart_count.")";
+ }
+ echo "</span>";
+ ?>
+ </a>
</div>
</nav>