<?php messages(); ?>
<div id="CLOSE"></div>
<nav class="Menu MOBILE" id="Menu">
   <a class="link <?php current_page('categories.php'); ?>" href="categories">Categories</a>
   <?php if(isset($user_id)){ ?>
   <a class="link <?php current_page('dashboard.php'); ?>" href="dashboard">Dashboard</a>
   <a class="link <?php current_page('submit.php'); ?>" href="submit">Submit</a>
   <a class="link" href="ex/logout.php">Log Out</a>
   <?php }else{ ?>
   <a class="link <?php current_page('stats.php'); ?>" href="stats">Stats</a>
   <a class="link <?php current_page('register.php'); ?>" href="register">Register</a>
   <a class="link <?php current_page('login.php'); ?>" href="login">Log In</a>
   <?php } ?>
</nav>

<!-- HEADER -->
<header class="Header">
   <div class="center">
      <a class="logo <?php current_page('index.php'); ?>" href="./"><?php echo $set['website_name']; ?></a>
      <nav class="nav DESKTOP">
         <a class="link <?php current_page('categories.php'); ?>" href="categories">Categories</a> /
         <?php if(isset($user_id)){ ?>
         <a class="link <?php current_page('dashboard.php'); ?>" href="dashboard">Dashboard</a> /
         <a class="link <?php current_page('submit.php'); ?>" href="submit">Submit</a> /
         <a class="link" href="ex/logout.php">Log Out</a>
         <?php }else{ ?>
         <a class="link <?php current_page('stats.php'); ?>" href="stats">Stats</a> /
         <a class="link <?php current_page('register.php'); ?>" href="register">Register</a> /
         <a class="link <?php current_page('login.php'); ?>" href="login">Log In</a>
         <?php } ?>
      </nav>
      <nav class="nav MOBILE" id="MenuButton"><img src="images/nav.png" width="100%" height="100%"></nav>
   </div>
</header>
<!-- HEADER -->

<div class="page-nav MOBILE" id="SidebarButton">Sidebar</div>

<div class="H" id="id"><?php echo isset($id) ? (int)$id : 'undefined'; ?></div>