<input type="hidden" id="baseurl" value="<?php echo base_url(); ?>" >
	    <!----Login Popup Start---->
		<div class="fd_login">
			<div id="myModal1" class="modal  centered-modal" role="dialog">
				<div class="modal-dialog login_dialog">
					<!-- Modal content-->
					<div class="modal-content">                   
						<div class="modal-body">
							<div class="fd_login_form">
								<div class="fd_login_header">
									<h2>login / Sign in</h2>
									<button type="button" class="close" data-dismiss="modal">
										<i class="fa fa-times" aria-hidden="true"></i>
									</button>
								</div>
								<div class="fd_login_body">
									<div class="form-group">
										<input type="text" placeholder="Enter Your Email" class="form-control" name="uemail" id="uemail" value="<?php if(!empty($_COOKIE["user_email"])){ echo $_COOKIE["user_email"]; } ?>">
										<span class="form_icon">
											<i class="fa fa-envelope" aria-hidden="true"></i>
										</span>
									</div>
									<div class="form-group">
										<input type="password" placeholder="Enter Password" class="form-control" name="upassword" id="upassword" value="<?php if(!empty($_COOKIE["user_pass"])){ echo $_COOKIE["user_pass"]; } ?>">
										<span class="form_icon">
											<i class="fa fa-lock" aria-hidden="true"></i>
										</span>
									</div>
									<div class="remember_checkbox">  
										<div class="coupon_checkbox">
											<input type="checkbox" name="user_remember" id="user_remember" <?php if(isset($_COOKIE["user_email"]) && isset($_COOKIE["user_pass"])){ echo "checked"; } ?> >
											<label for="user_remember">
												<span class="Pop_c"><i class="fa fa-check-square-o" aria-hidden="true"></i></span> Keep me signed in
											</label>
										</div>
									</div>
									<div class="popup_forgot">
										<a href="#forgot_password_modal" data-toggle="modal" class="hideCurrentModel" id="forgot_model_click">Forgot Password ?</a>
									</div>
									<div class="fd_login_btn">
										<a onclick="login_validationfunction()" class="fd_btn" target="_blank">login now</a>	
									</div>							
									<div class="fd_login_footer">Don't Have An Account? <a href="#myModal2" data-toggle="modal" class="ms_modal1 hideCurrentModel" id="register_modal_click">register here</a>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<!----Register Popup Start---->
		<div class="fd_login">
			<div id="myModal2" class="modal  centered-modal" role="dialog">
				<div class="modal-dialog login_dialog">
					<!-- Modal content-->
					<div class="modal-content">                   
						<div class="modal-body">
							<div class="fd_login_form">
								<div class="fd_login_header">
									<h2>Register Now</h2>
									<button type="button" class="close form_close" data-dismiss="modal">
										<i class="fa fa-times" aria-hidden="true"></i>
									</button>
								</div>
								<div class="fd_login_body">
									<div class="form-group">
											<input type="text" placeholder="Enter Your Name" class="form-control" name="user_name" id="user_name">
											<span class="form_icon">
												<i class="fa fa-user" aria-hidden="true"></i>
											</span>
									</div>
									<div class="form-group">
										<input type="text" placeholder="Enter Your Email" class="form-control" name="user_email" id="user_email">
										<span class="form_icon">
											<i class="fa fa-envelope" aria-hidden="true"></i>
										</span>
									</div>
									<div class="form-group">
										<input type="password" placeholder="Enter Password" class="form-control" name="user_password" id="user_password">
										<span class="form_icon">
											<i class="fa fa-lock" aria-hidden="true"></i>
										</span>
									</div>
									<div class="form-group">
										<input type="password" placeholder="Enter Confirm Password" class="form-control" name="user_confpassword" id="user_confpassword">
										<span class="form_icon">
											<i class="fa fa-lock" aria-hidden="true"></i>
										</span>
									</div>
									<div class="fd_login_btn">
										<a class="fd_btn" onclick="addnew_user()">register now</a>
									</div>						
									<div class="fd_login_footer">Already Have An Account? <a href="#myModal1" data-toggle="modal" class="ms_modal1 hideCurrentModel">login here</a></div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>	
<!----Register Popup End---->

<!----Forget Password Popup Start--->
		<div class="fd_login">
			<div id="forgot_password_modal" class="modal  centered-modal" role="dialog">
				<div class="modal-dialog login_dialog">
					<!-- Modal content-->
					<div class="modal-content">                   
						<div class="modal-body">
							<div class="fd_login_form">
								<div class="fd_login_header">
									<h2>Forget Password</h2>
									<button type="button" class="close" data-dismiss="modal">
										<i class="fa fa-times" aria-hidden="true"></i>
									</button>
								</div>
								<div class="fd_login_body">
									<div class="form-group">
										<input type="text" placeholder="Enter Your Email" class="form-control" name="forgot_uemail" id="forgot_uemail">
										<span class="form_icon">
											<i class="fa fa-envelope" aria-hidden="true"></i>
										</span>
									</div>
									<div class="fd_login_btn">
									<a onclick="forgot_password()" class="fd_btn" target="_blank">Submit</a>	</div>							
									<div class="fd_login_footer">To Reset Your Password, Enter Your Full Email Address.   </div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
<!----Forget Password Popup End--->

<!----reset password Popup Start---->
		<div class="fd_login">
			<div id="reset_password" class="modal  centered-modal" role="dialog">
				<div class="modal-dialog login_dialog">
					<!-- Modal content-->
					<div class="modal-content">                   
						<div class="modal-body">
							<div class="fd_login_form">
								<div class="fd_login_header">
									<h2>Reset Password</h2>
									<button type="button" class="close" data-dismiss="modal">
										<i class="fa fa-times" aria-hidden="true"></i>
									</button>
								</div>
								<div class="fd_login_body">
									<div class="form-group">
										<input type="hidden" name="reset_code" id="reset_code">
										<input type="password" placeholder="Enter Your New Password" class="form-control" name="unew_pass" id="unew_pass">
										<span class="form_icon">
											<i class="fa fa-envelope" aria-hidden="true"></i>
										</span>
									</div>
									<div class="form-group">
										<input type="password" placeholder="Enter Confirm Password" class="form-control" name="conf_pass" id="conf_pass">
										<span class="form_icon">
											<i class="fa fa-lock" aria-hidden="true"></i>
										</span>
									</div>
									<div class="fd_login_btn">
										<a onclick="reset_password()" class="fd_btn" target="_blank">Reset</a>
									</div>							
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
<!--reset password popup end-->

<!----Partners section Start---->
	<?php if($this->hs->getwebsettings('partner_section') == 1){  ?> 
	<?php if(!empty($all_partners)){ ?>
	<div class="fd_partners_wrapper">
		<div class="container">
			<div class="row">
				<div class="col-lg-12">
					<div class="fd_heading text-center btm_marger50">
					<?php if($this->hs->getwebsettings('partnerheading_show') == 1){  ?>
						<h2><?php echo $this->hs->getwebsettings('partnerheading_text'); ?></h2>
					<?php } ?>
					<?php if($this->hs->getwebsettings('partnertitle_show') == 1){  ?> 
						<h1><?php echo $this->hs->getwebsettings('partnertitle_text'); ?></h1>
					<?php } ?>	 
					</div>
				</div>
				<div class="col-lg-12">
					<div class="fd_partner_slider">
						<div class="swiper-container">
							<div class="swiper-wrapper">
							 <?php foreach($all_partners as $partner){ ?>
								<div class="swiper-slide">
									<div class="fd_partner_box">
									    <img src="<?php echo base_url().$partner->partner_image; ?>" alt="">
								    </div>
								</div>
							 <?php } ?>
							</div>
						</div>
						<!-- Add Pagination -->
						<div class="swiper-button-next4 slider_nav_next"><span class="slider_icon_next"></span></div>
						<div class="swiper-button-prev4 slider_nav_prev"><span class="slider_icon_prev"></span></div>						
					</div>
				</div>
			</div>
		</div>	
	</div>
	<?php } 
	   }
	?>
<!----Partners section End---->

<!----Footer Start---->
 <?php if($this->hs->getwebsettings('footer_section') == 1){  ?>
	<div class="fd_footer_wrapper">
		<div class="container">
			<div class="row">
				<div class="col-lg-4">
					<div class="fd_foo_box">
						<a href="<?php echo base_url(); ?>">
						<?php $footerlogo_img = $this->hs->getwebsettings('footerlogo_img');
						if(!empty($footerlogo_img)){ ?>
						<img src="<?php echo base_url().$footerlogo_img; ?>" alt="" class="img-fluid">
						<?php }else{ ?>
						<img src="<?php echo base_url(); ?>themeassets/images/footer_logo.png" alt="" class="img-fluid">
						<?php } ?>
						</a>
						 <?php if($this->hs->getwebsettings('sitedescr_show') == 1){ ?>  
						<p class="foo_about_para"><?php echo $this->hs->getwebsettings('sitedescr_text'); ?></p>
						<a href="<?php echo base_url().'home/aboutus'; ?>" class="view_link">Read More <i class="fa fa-long-arrow-right" aria-hidden="true"></i></a>
						 <?php } ?>
					</div>
				</div>
				<?php if(!empty($opening_time)){ ?>
				<div class="col-lg-4">
					<div class="fd_foo_box fd_opening_hours">
					<?php if($opening_time[0]->schedule_status == 1){ ?>
						<h1 class="fd_footer_title"><?php echo $opening_time[0]->schedule_time; ?></h1>
					<?php }	?>
						<ul>
						<?php if($opening_time[1]->schedule_status == 1){ ?>
							<li><?php echo $opening_time[1]->schedule_name; ?> <span class="fd_con_time"><?php echo $opening_time[1]->schedule_time; ?></span></li>
							<?php }	?>
							<?php if($opening_time[2]->schedule_status == 1){ ?>
							<li><?php echo $opening_time[2]->schedule_name; ?> <span class="fd_con_time"><?php echo $opening_time[2]->schedule_time; ?></span></li>
							<?php }	?>
							<?php if($opening_time[3]->schedule_status == 1){ ?>
							<li><?php echo $opening_time[3]->schedule_name; ?><span class="fd_con_time"><?php echo $opening_time[3]->schedule_time; ?></span></li>
							<?php }	?>
							<?php if($opening_time[4]->schedule_status == 1){ ?>
							<li><?php echo $opening_time[4]->schedule_name; ?><span class="fd_con_time"><?php echo $opening_time[4]->schedule_time; ?></span></li>
							<?php }	?>
						</ul>
					</div>
				</div>	
				<?php } ?>
				<div class="col-lg-4">
					<div class="fd_foo_box foo_contact">
					<?php if($this->hs->getwebsettings('contactheading_show') == 1){ ?>
						<h1 class="fd_footer_title"><?php echo $this->hs->getwebsettings('contactheading_foot'); ?></h1>
					<?php } ?>
						<ul>
						    <?php if($this->hs->getwebsettings('address_show') == 1){ ?>
							<li><span class="fd_con_icon"><i class="fa fa-location-arrow" aria-hidden="true"></i></span><?php echo $this->hs->getwebsettings('address_foot'); ?></li>
							<?php } ?>
							<?php if($this->hs->getwebsettings('email1_show') == 1){ ?>
							<li><span class="fd_con_icon"><i class="fa fa-envelope" aria-hidden="true"></i></span><a href="#"><?php echo $this->hs->getwebsettings('email1_foot'); ?></a>
							<?php } ?>
							<?php if($this->hs->getwebsettings('email2_show') == 1){ ?>
							<a href="#"><?php echo $this->hs->getwebsettings('email2_foot'); ?></a></li>
							<?php } ?>
							<?php if($this->hs->getwebsettings('contact1_show') == 1){ ?>
							<li><span class="fd_con_icon"><i class="fa fa-phone" aria-hidden="true"></i></span> <p><?php echo $this->hs->getwebsettings('contact1_foot'); ?></p>
							<?php } ?>	
                             <?php if($this->hs->getwebsettings('contact2_show') == 1){ ?>			<p><?php echo $this->hs->getwebsettings('contact2_foot'); ?></p></li>
							<?php } ?>
						</ul>
					</div>
				</div>
				<div class="col-lg-12">
					<div class="fd_footer_icons">
						<ul>
						    <?php if($this->hs->getwebsettings('facebooklink_show') == 1){ ?>
							<li><a href="<?php echo $this->hs->getwebsettings('facebooklink_foot'); ?>"><i class="fa fa-facebook" aria-hidden="true"></i></a></li>
							<?php } ?>
                            <?php if($this->hs->getwebsettings('youtubelink_show') == 1){ ?>	<li><a href="<?php echo $this->hs->getwebsettings('youtubelink_foot'); ?>"><i class="fa fa-youtube-play" aria-hidden="true"></i></a></li>
							<?php } ?>
							<?php if($this->hs->getwebsettings('twitterlink_show') == 1){ ?>
							<li><a href="<?php echo $this->hs->getwebsettings('twitterlink_foot'); ?>"><i class="fa fa-twitter" aria-hidden="true"></i></a></li>
							<?php } ?>
							<?php if($this->hs->getwebsettings('linkedinlink_show') == 1){ ?>
							<li><a href="<?php echo $this->hs->getwebsettings('linkedinlink_foot'); ?>"><i class="fa fa-linkedin" aria-hidden="true"></i></a></li>
							<?php } ?>
						</ul>
					</div>
				</div>
			</div>
		</div>
		<div class="fd_overlay"></div>
	</div>
	<!----Bottom footer Start---->
	<div class="fd_btm_footer">
		<div class="container">
			<div class="row">
				<div class="col-lg-12">
					<?php if($this->hs->getwebsettings('copyright_show') == 1){ ?>
					<p class="copyright">Copyright &copy; 2019 <a href="<?php echo base_url(); ?>"> <?php if($this->hs->getwebsettings('sitetitle_show') == 1){ echo $this->hs->getwebsettings('sitetitle_text'); } ?></a>.  <?php echo $this->hs->getwebsettings('copyright_foot'); ?>
					<?php  } ?>
				</div>
			</div>
		</div>
		<div class="fd_btm_arrow">
			<i class="fa fa-angle-up" aria-hidden="true"></i>
		</div>
	</div>	
 <?php } ?>

    <!--Main js file Style-->
    <script type="text/javascript" src="<?php echo base_url(); ?>themeassets/js/jquery.js"></script> 
    <script type="text/javascript" src="<?php echo base_url(); ?>themeassets/js/popper.js"></script> 
    <script type="text/javascript" src="<?php echo base_url(); ?>themeassets/js/bootstrap.min.js"></script> 
    <script type="text/javascript" src="<?php echo base_url(); ?>themeassets/js/plugins/niceselect/jquery.nice-select.min.js"></script>
    <script type="text/javascript" src="<?php echo base_url(); ?>themeassets/js/plugins/swiper/swiper.min.js"></script>
    <script type="text/javascript" src="<?php echo base_url(); ?>themeassets/js/plugins/magnific/jquery.magnific-popup.min.js"></script>
    <script type="text/javascript" src="<?php echo base_url(); ?>themeassets/js/plugins/date_time_picker/bootstrap-datepicker.min.js"></script>
    <script type="text/javascript" src="<?php echo base_url(); ?>themeassets/js/plugins/date_time_picker/bootstrap-timepicker.js"></script>
    <script type="text/javascript" src="<?php echo base_url(); ?>themeassets/js/plugins/isotop/isotop.min.js"></script>
	<script type="text/javascript" src="<?php echo base_url(); ?>themeassets/js/imagesloaded.pkgd.js"></script>
	<!----Revolution Js Start---->
	<script type="text/javascript" src="<?php echo base_url(); ?>themeassets/js/plugins/revolution/js/jquery.themepunch.tools.min.js"></script>
	<script type="text/javascript" src="<?php echo base_url(); ?>themeassets/js/plugins/revolution/js/jquery.themepunch.revolution.min.js"></script>
	<script type="text/javascript" src="<?php echo base_url(); ?>themeassets/js/plugins/revolution/js/revolution.extension.actions.min.js"></script>
	<script type="text/javascript" src="<?php echo base_url(); ?>themeassets/js/plugins/revolution/js/revolution.extension.carousel.min.js"></script>
	<script type="text/javascript" src="<?php echo base_url(); ?>themeassets/js/plugins/revolution/js/revolution.extension.kenburn.min.js"></script>
	<script type="text/javascript" src="<?php echo base_url(); ?>themeassets/js/plugins/revolution/js/revolution.extension.layeranimation.min.js"></script>
	<script type="text/javascript" src="<?php echo base_url(); ?>themeassets/js/plugins/revolution/js/revolution.extension.navigation.min.js"></script>
	<script type="text/javascript" src="<?php echo base_url(); ?>themeassets/js/plugins/revolution/js/revolution.extension.parallax.min.js"></script>
	<script type="text/javascript" src="<?php echo base_url(); ?>themeassets/js/plugins/revolution/js/revolution.extension.slideanims.min.js"></script>
	<script type="text/javascript" src="<?php echo base_url(); ?>themeassets/js/plugins/revolution/js/revolution.extension.video.min.js"></script>
	 <!---Datatable js start--->
	 <script type="text/javascript" src="<?php echo base_url(); ?>themeassets/js/jquery.dataTables.min.js"></script>
	<script type="text/javascript" src="<?php echo base_url(); ?>themeassets/js/dataTables.bootstrap4.min.js"></script>
	<!----Custom Js Start--->	
	<script type="text/javascript" src="<?php echo base_url(); ?>themeassets/js/custom.js"></script>
	<script type="text/javascript" src="<?php echo base_url(); ?>themeassets/js/custom_theme.js"></script>
	<!----------Toastr Js Start----------->
	<script type="text/javascript" src="<?php echo base_url(); ?>themeassets/js/toastr.js"></script>
	<!----Map Js Start---->
<?php if(isset($add_active) && ($add_active ==7 )){ ?>
    <script src="https://maps.google.com/maps/api/js?key=<?php echo $this->hs->getwebsettings('map_apikey'); ?>" type="text/javascript"></script>
    <script> 
	 var baseurl = $("#baseurl").val();
	
		  var google_map_pos = new google.maps.LatLng(<?php echo $this->hs->getwebsettings('map_latitude'); ?>,<?php echo $this->hs->getwebsettings('map_longitude'); ?>)
				 var google_maps_geocoder = new google.maps.Geocoder();
				google_maps_geocoder.geocode(
                    { 'latLng': google_map_pos },
                    function( results, status ) {
                        if ( status == google.maps.GeocoderStatus.OK && results[0] ) {
                            //$("#map_address").val(results[0].formatted_address);
							 
							var locations = [
							['<div class="map_info_wrapper">' +results[0].formatted_address +' </div>', <?php echo $this->hs->getwebsettings('map_latitude'); ?>, <?php echo $this->hs->getwebsettings('map_longitude'); ?>, 1]
							];	
						
							 var infowindow = new google.maps.InfoWindow();
							 var marker, i;
							 for (i = 0; i < locations.length; i++) {
								marker = new google.maps.Marker({
									position: new google.maps.LatLng(locations[i][1], locations[i][2]),
									map: map,
									icon: baseurl+'themeassets/images/pulse.svg',
								});
								google.maps.event.addListener(marker, 'click', (function(marker, i) {
									return function() {
										infowindow.setContent(locations[i][0]);
										infowindow.open(map, marker);
									}
								})(marker, i)); 
							} 
                        }
                    }
                );  
	
		// load map on page loading 
        var map = new google.maps.Map(document.getElementById('fd_map'), {
            zoom: 13,
            center: new google.maps.LatLng(<?php echo $this->hs->getwebsettings('map_latitude'); ?>, <?php echo $this->hs->getwebsettings('map_longitude'); ?>),
            mapTypeId: google.maps.MapTypeId.ROADMAP
		});
</script> 
<?php } ?>
<!------password reset popup show------->		
<script type="text/javascript">
<?php 	if(isset($_GET['resetcode'])){
			$reset_code = $_GET['resetcode'];
			if(!empty($reset_code)){  ?>	
				$("#reset_code").val('<?php echo $reset_code; ?>');
				$("#reset_password").modal('show');
<?php 
			}else{
				redirect(base_url());
			}
		}
?>
//load more button   
$(document).ready(function (){
	$(".moreBox").slice(0, 5).show();
	if ($(".blogBox:hidden").length != 0) {
		$("#loadMore").show();
	}	
	
	$("#loadMore").on('click', function (e){
		e.preventDefault();
		$(".moreBox:hidden").slice(0,5).slideDown();
		if ($(".moreBox:hidden").length == 0){
			$("#loadMore").fadeOut('slow');
		}
	});
});
 
</script>

</body>
</html>