<?php 
	require "models/rivermedia.php";
	$rivermedia = new RIVERMEDIA;
	$rivermedia->auth();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php include_once('includes/head.php'); ?>
</head>
<body>
<!-- Navigation -->
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<?php include_once('includes/nav.php'); ?>
</nav>
<!-- Page Content -->
<div class="container"> 
  
  <!-- Section -->
  <div class="row">
    <div class="col-lg-12">
      &nbsp;
    </div>
  </div>
  <!-- /.row --> 
 <!-- Section: search form -->
<?php include_once('includes/searchform.php'); ?>
 <!-- /.row -->
  
  <!-- Section -->
  <div class="row">
    <!-- Categories column -->
    <div class="col-xs-12 col-sm-12 col-md-3 col-lg-3">
      <!-- Nested row -->
	<?php include_once('includes/category_column.php'); ?>
      <!-- /.nested row -->
    </div>
    <!-- /.categories column -->
    
    <div class="col-xs-12 col-sm-12 col-md-9 col-lg-9">
      <!-- Nested row -->
      <div class="row">
        <div class="col-lg-12">
          <h2 class="page-header">Search Results</h2>
        </div>
        <?php $rivermedia->search_results(); ?>
      </div>
      <!-- /.nested row -->
      
  
  <!-- /.row -->
  <hr>
  <!-- Footer -->
  <footer>
<?php include_once('includes/footer.php'); ?>
  </footer>
</div>
<!-- /.container --> 
<?php include_once('includes/javascript.php'); ?>
<?php include_once('includes/modals.php'); ?>
<?php 
$arrUrl = explode("/", $_SERVER['REQUEST_URI']);
$pageName = array_pop($arrUrl);
?>
<div id="page_name" class="hidden"><?php echo $pageName; ?></div> 
<?php include_once('includes/mask.php'); ?>
</body>
</html>
