<?php
	require_once('koneksi.php');
	if(isset($_GET['out'])){
		session_start();
		session_destroy();
		header('location: index.php');
	}
?>

<!DOCTYPE html>
		<!-- footer -->
		<div class="footer">
				<div class="container">
					<div class="w3_footer_grids">
						<div class="col-md-1 w3_footer_grid">
						</div>
						<div class="col-md-4 w3_footer_grid">
							<h3>Kontak</h3>
							<ul class="address">
								<li><i class="glyphicon glyphicon-map-marker" aria-hidden="true"></i>Jl. Sisingamangaraja No. 146,<span>Balige II, Balige, Toba Samosir</span></li>
								<li><i class="glyphicon glyphicon-envelope" aria-hidden="true"></i><a href="mailto:cemerlang@gmail.com">cemerlang@gmail.com</a></li>
								<li><i class="glyphicon glyphicon-earphone" aria-hidden="true"></i>(0632) 21510</li>
							</ul>
						</div>
						<div class="col-md-4 w3_footer_grid">
							<h3>Informasi</h3>
							<ul class="info"> 
								<li><i class="fa fa-arrow-right" aria-hidden="true"></i><a href="about.php">Profil Toko</a></li>
								<li><i class="fa fa-arrow-right" aria-hidden="true"></i><a href="contact.php">Komentar</a></li>
								<li><i class="fa fa-arrow-right" aria-hidden="true"></i><a href="faq.php">FAQ</a></li>
							</ul>
						</div>
						<div class="col-md-3 w3_footer_grid">
							<h3>Profil</h3>
							<ul class="info">


								<?php
			                        if (isset($_SESSION['administrator'])) {
			                            echo '
			                            	<li><i class="fa fa-arrow-right" aria-hidden="true"></i><a href="logout_process.php">Keluar</a></li>
			                            ';
			                        }
			                        elseif (isset($_SESSION['pengunjung'])){
			                        	echo '
			                        		<li><i class="fa fa-arrow-right" aria-hidden="true"></i><a href="singleprofile.php">Profil Anda</a></li>
			                            	<li><i class="fa fa-arrow-right" aria-hidden="true"></i><a href="checkout.php">Keranjang Belanja</a></li>
	                                        <li><i class="fa fa-arrow-right" aria-hidden="true"></i><a href="logout_process.php">Keluar</a></li>
			                            ';
			                        }
			                        else {
			                            echo '
			                            	<li><i class="fa fa-arrow-right" aria-hidden="true"></i><a href="checkout.php">Keranjang Belanja</a></li>
				                            <li><i class="fa fa-arrow-right" aria-hidden="true"></i><a href="login.php">Masuk</a></li>
				                            <li><i class="fa fa-arrow-right" aria-hidden="true"></i><a href="registered.php">Daftar</a></li>
			                            ';
			                        }
			                    ?>

							</ul>
						</div>
						<div class="clearfix"> </div>
					</div>
				</div>
				
				<div class="footer-copy">
					
					<div class="container">
						<p>© 2017 Cemerlang Information System. All rights reserved | Design by <a href="about.php">PA1-D3TI1-07</a></p>
					</div>
				</div>
				
			</div>	
			<div class="footer-botm">
					<div class="container">
						<div class="w3layouts-foot">
							<ul>
								<li><a href="www.facebook.com" class="w3_agile_facebook"><i class="fa fa-facebook" aria-hidden="true"></i></a></li>
								<li><a href="www.twitter.com" class="agile_twitter"><i class="fa fa-twitter" aria-hidden="true"></i></a></li>
								<li><a href="www.instagram.com" class="w3_agile_dribble"><i class="fa fa-instagram" aria-hidden="true"></i></a></li>
								<li><a href="www.gmail.com" class="w3_agile_dribble"><i class="fa fa-google-plus-official" aria-hidden="true"></i></a></li>
							</ul>
						</div>
						<div class="clearfix"> </div>
					</div>
				</div>
		<!-- //footer -->	
		<!-- Bootstrap Core JavaScript -->
		<script src="js/bootstrap.min.js"></script>

		<!-- top-header and slider -->
		<!-- here stars scrolling icon -->
			<script type="text/javascript">
				$(document).ready(function() {
					/*
						var defaults = {
						containerID: 'toTop', // fading element id
						containerHoverID: 'toTopHover', // fading element hover id
						scrollSpeed: 1200,
						easingType: 'linear' 
						};
					*/
										
					$().UItoTop({ easingType: 'easeOutQuart' });
										
					});
			</script>
		<!-- //here ends scrolling icon -->
		<script src="js/minicart.min.js"></script>
		<script>
			// Mini Cart
			paypal.minicart.render({
				action: '#'
			});

			if (~window.location.search.indexOf('reset=true')) {
				paypal.minicart.reset();
			}
		</script>
		<!-- main slider-banner -->
		<script src="js/skdslider.min.js"></script>
		<link href="css/skdslider.css" rel="stylesheet">
		<script type="text/javascript">
				jQuery(document).ready(function(){
					jQuery('#demo1').skdslider({'delay':5000, 'animationSpeed': 2000,'showNextPrev':true,'showPlayButton':true,'autoSlide':true,'animationType':'fading'});
								
					jQuery('#responsive').change(function(){
					  $('#responsive_wrapper').width(jQuery(this).val());
					});
					
				});
		</script>	
		<!-- //main slider-banner --> 
	</body>
</html>