<?
//print_r($_SESSION);
?>

<header class="site-header">
  <div class="container-fluid">
    <a href="index.php" class="site-logo">
      <?php
      if ($site_logo != '') {
        echo '<img src="' . $upload_url . 'site_info/' . $site_logo . '" alt="' . $site_name . ' " id="logo1">';
        echo '<img src="' . $upload_url . 'site_info/' . $site_favicon . '" alt="' . $site_name . ' " id="logo2">';
      } else {
        echo '<img class="hidden-md-down" src="img/logo-2-white.png"  alt="' . $site_name . ' "><img class="hidden-lg-up" src="img/logo-2-mob.png"  alt="' . $site_name . ' ">';
      }
      ?>
    </a>
    <button class="hamburger hamburger--htla visible">
      <span>Toggle Menu</span>
    </button>
    <div class="site-header-content">
      <div class="site-header-content-in">
        <div class="site-header-shown">

          <div class="dropdown user-menu <?php if ($menu_active == 'settings') echo 'active'; ?>">
            <button class="dropdown-toggle" id="dd-user-menu" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
              <img src="img/avatar-2-64.png" alt=""> <?= $username ?>
            </button>
            <div class="dropdown-menu dropdown-menu-right" aria-labelledby="dd-user-menu">
              <a class="dropdown-item  <?php if ($menu_active == 'settings') echo 'active'; ?>" href="settings.php"><span class="font-icon glyphicon glyphicon-cog"></span>User Settings</a>
              <div class="dropdown-divider"></div>
              <?
              if ($superadmin == 1) {
                ?>
                <a class="dropdown-item  <?php if ($menu_active == 'site_info') echo 'active'; ?>" href="site_info.php"><span class="font-icon  fa fa-cogs"></span>Software Settings</a>
                <div class="dropdown-divider"></div>
              <? } ?>
              <a class="dropdown-item" href="logout.php"><span class="font-icon glyphicon glyphicon-log-out"></span>Logout</a>
            </div>
          </div>

        </div><!--.site-header-shown-->
      </div><!--site-header-content-in-->
    </div><!--.site-header-content-->
  </div><!--.container-fluid-->
</header><!--.site-header-->