Added logout link.
[readifood.git] / lib / header.php
index 88a7271..75cd167 100644 (file)
@@ -5,7 +5,6 @@
 <body>
 
 <p id="header">
-<strong> <?php if ($username) echo "<em>$username</em>@"; echo "$charity"; ?></strong>
 <?php if ($username) { ?>
 <a href="/city">Cities</a>
 /
 <a href="/hub">Hubs</a>
 /
 <a href="/donation">Donations</a>
-<?php } ?>
+
+<strong><em><?php echo $username; ?></em>@<?php echo $charity; ?></strong>
+<a href="/logout" class="smaller">logout</a>
+<?php } else echo "<strong>$charity</strong>"; ?>
 </p>
 
 <div id="main">