<?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">
      <h1 class="page-header"> Welcome to River Media Online Shop </h1>
    </div>
    <?php $rivermedia->list_by_latest(); ?>
  </div>
  <!-- /.row --> 
  
  <!-- Section -->
  <div class="row">
    <div class="col-lg-12">
      <h2 class="page-header">Top 6 Selling Products</h2>
    </div>
    <?php $rivermedia->top_selling_products(); ?>
  </div>
  <!-- /.row --> 
  
  <!-- Features Section -->
  <div class="row">
    <div class="col-lg-12">
      <h2 class="page-header">Featured Product</h2>
    </div>
    <div class="col-md-6">
      <p>Product name</p>
      <ul>
        <li><strong>R</strong>150 </li>
        <li>Artist</li>
      </ul>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Corporis, omnis doloremque non cum id reprehenderit, quisquam totam aspernatur tempora minima unde aliquid ea culpa sunt. Reiciendis quia dolorum ducimus unde.</p>
    </div>
    <div class="col-md-6"> <img class="img-responsive" src="http://placehold.it/700x450" alt=""> </div>
  </div>
  <!-- /.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>
