diff options
Diffstat (limited to 'public/navbar.php')
-rw-r--r-- | public/navbar.php | 11 |
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> |