<!-- toolbar -->
<?php include("includes/toolbar.php"); ?>

<!-- boxed layout -->
<?php if ($layout == 'boxed') : ?>
  <div class="uk-container uk-container-center tm-container-boxed">
<?php endif; ?>

<!-- header -->
<div class="tm-header">
  <div class="uk-container uk-container-center">
    <div class="uk-flex uk-flex-middle uk-flex-space-between">

      <!-- logo -->
      <a class="tm-logo uk-hidden-small" href="?page=home">
        <img src="images/demo/default/logo/logo.svg" width="180" height="50" alt="demo">
      </a>

      <!-- small logo -->
      <a class="tm-logo-small uk-visible-small" href="?page=home">
        <img src="images/demo/default/logo/logo-small.svg" width="140" height="40" alt="demo">
      </a>

      <!-- headerbar -->
      <div class="uk-flex uk-flex-middle uk-flex-right">
		
  		<!-- toolbar -->
  		<?php include("includes/headerbar-small.php"); ?>      	

        <!-- search -->
        <div class="uk-navbar-flip">
          <div class="uk-hidden-small">
            <form action="#" class="uk-search" data-uk-search="" id="search-page" method="post" name="search-box">
              <input class="uk-search-field" name="searchword" placeholder="search..." type="text"> <input name="task" type="hidden" value="search"> 
              <input name="option" type="hidden" value=""> <input name="Itemid" type="hidden" value="502">
            </form>
          </div>
        </div>

        <!-- offcanvas nav icon -->
        <a class="uk-navbar-toggle uk-visible-small" data-uk-offcanvas="" href="#offcanvas"></a>
      </div>

    </div>
  </div>
</div>

<!-- menu -->
<div class="uk-hidden-small">
  <nav class="tm-navbar uk-navbar" data-uk-sticky>
    <div class="uk-container uk-container-center">
      <ul class="uk-navbar-nav uk-hidden-small">
		
		  <!-- menu -->
		  <?php if ($page != "one-page-layout") {
		    include("includes/nav.php");
		    } else {
		    include("includes/nav-one-page.php");
		  } ?>

      </ul>
    </div>
  </nav>
</div>