<?php 
	require "models/rivermedia.php";
	$rivermedia = new RIVERMEDIA;
?>
<!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">
    <div class="col-lg-12">
      <h1 class="page-header"><i class="fa fa-shopping-cart" aria-hidden="true"></i> Shopping Cart </h1>
    </div>
<?php $rivermedia->view_cart(); ?>
  </div>
  <!-- /.row --> 
  <?php if ($rivermedia->get_cart_count() > 0) { ?>
  <div class="row">
    <div id="checkout_options" class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
      <button class="btn btn-lg btn-success col-xs-12 col-sm-5 col-md-5 col-lg-5 pull-left" id="sign-in_button" href="#"><i class="fa fa-user" aria-hidden="true"></i> Sign In </button>
      <button class="btn btn-lg btn-primary col-xs-12 col-sm-5 col-md-5 col-lg-5 pull-right" id="sign-up_button" href="#"><i class="fa fa-user" aria-hidden="true"></i> Sign Up </button>
      <div class="clearfix"></div>
    </div>
  </div>
  <div class="row">
    <a class="btn btn-lg btn-primary btn-block" id="checkout_button" href="#">Check Out <i class="fa fa-arrow-circle-right" aria-hidden="true"></i></a>
  </div>
  <br />
  <?php }; ?>
  <div class="row">
    <div id="checkout_well" class="well">
        <div class="row">
            <div class="col-md-12" style="text-align:center;">
                <p>
                  <span><img src="public/media/img/mc.png" alt="MasterCard" /></span>
                  <span><img src="public/media/img/visa.png" alt="Visa" /></span>
                  <span><img src="public/media/img/ae.png" alt="American Express" /></span>
                  <span><img src="public/media/img/dc.png" alt="Diners Club" /></span>
                  <span><img src="public/media/img/jcb.png" alt="JCB" /></span>
                </p>
            </div>
        </div>
    </div> 
  </div>
  <a href="#" onClick="window.open('http://www.vcs.co.za',',')"><img src="public/media/img/VCSLogoSites.png" alt="Click to Browse"></a>
  <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>
