<?php global $access; if($access != 1){ exit("Direct Access not allowed"); } ?>

	<div class="footer">
        <div class="row-fluid">
          <span class="span3">
            <div class="footertitle">
              <p>Online Booking</p>
            </div>
            <div class="footerbtext">
              <ul>
                <li>Tel: &nbsp;<?php echo $settings_phone; ?></li>
                <li><?php echo $settings_copyright; ?></li>
              </ul>
            </div>
          </span>
          <span class="span3">
            <div class="footertitle">
              <p>Support &amp; Help</p>
            </div>
            <div class="footerbtext">
              <ul>
                <li><a href="contact.php">Contact Us</a></li>
                <li><a href="faqs.php">FAQ</a></li>
                <li><a href="reservation.php">My Reservation</a></li>
              </ul>
            </div>
          </span>
          <span class="span3">
            <div class="footertitle">
              <p>About</p>
            </div>
            <div class="footerbtext">
              <ul>
                <li><a href="about-us.php">About Us</a></li>
                <li><a href="terms.php">Terms & Conditions</a></li>
                <li><a href="privacy.php">Privacy Statement</a></li>
              </ul>
            </div>
          </span>
          <span class="span3">
            <div class="footertitle">
              <p>Newsletter</p>
            </div>
            <div class="footerbtext" id="mail">
              <p>Type in your e-mail to stay up to date with our promotions:</p>
              <form method="post" action="inc/querys/promotions.php">
                <input type="hidden" name="page_name" value="<?php echo $page_name; ?>" />
					<?php
						if(isset($_GET['message'])) {
							$message = $_GET['message']; ?>
					
						<!--START error notification-->
						<?php if($message == 'error1') { ?>
							<span style="color:#F00;">Enter an email</span><br>
						<?php } elseif($message == 'error2') { ?>
							<span style="color:#F00;">Invalid email</span><br>
						<?php } elseif($message == 'ok') { ?>
							<span style="color:#62BA37;">Thanks for registering..</span><br>
						<?php } ?>
						<!--END /sucess notification-->
                    <?php } ?>
                        
                <input class="textinput" type="text" name="newsletter" style="width:100px; margin-bottom:0;">
                <button class="btn">Send</button>
              </form>
            </div>
          </span>
        </div>
      </div>
      
      <div class="footersocial">
        <div class="footersocialup">
          <div class="footersocialicons">
              <a href="<?php echo $settings_facebook; ?>"><img src="<?php echo PATH; ?>images/facebookbtn.png" class="image"></a>
              <a href="<?php echo $settings_twitter; ?>"><img src="<?php echo PATH; ?>images/twitter.png" class="image"></a>
              <a href="<?php echo $settings_google; ?>"><img src="<?php echo PATH; ?>images/googleplus.png" class="image"></a>
          </div>
        </div>
        <div class="footerlineblue"></div>
      </div>
      
      <!-- Libs -->
		<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
		
		<script src="http://maps.google.com/maps/api/js?sensor=false"></script>
		<script src="<?php echo PATH; ?>js/jquery.gmap.js"></script>

		<script>

			/*
			Map Settings

				Find the Latitude and Longitude of your address:
					- http://universimmedia.pagesperso-orange.fr/geo/loc.htm
					- http://www.findlatitudeandlongitude.com/find-address-from-latitude-and-longitude/

			*/

			// Map Markers
			var mapMarkers = [{
				address: "<?php echo $map_latitude; ?>, <?php echo $map_longitude; ?>",
				html: "<?php echo $map_address; ?><br><br><a href='#' onclick='mapCenterAt({latitude: <?php echo $map_latitude; ?>, longitude: <?php echo $map_longitude; ?>, zoom: <?php echo $map_zoom_clic; ?>}, event)'><span style='color: #0088cc;'>[+] zoom here</span></a>",
				icon: {
					image: "<?php echo PATH; ?>img/pin.png",
					iconsize: [26, 46],
					iconanchor: [12, 46]
				},
				popup: true
			}];

			// Map Initial Location
			var initLatitude = <?php echo $map_latitude; ?>;
			var initLongitude = <?php echo $map_longitude; ?>;

			// Map Extended Settings
			var mapSettings = {
				controls: {
					panControl: true,
					zoomControl: true,
					mapTypeControl: true,
					scaleControl: true,
					streetViewControl: true,
					overviewMapControl: true
				},
				scrollwheel: false,
				markers: mapMarkers,
				latitude: initLatitude,
				longitude: initLongitude,
				zoom: <?php echo $map_zoom; ?>
			};

			var map = $("#googlemaps").gMap(mapSettings);

			// Map Center At
			var mapCenterAt = function(options, e) {
				e.preventDefault();
				$("#googlemaps").gMap("centerAt", options);
			}

		</script>