HEX
Server: Apache/2.4.41 (Amazon) OpenSSL/1.0.2k-fips PHP/5.6.40
System: Linux ip-172-31-40-18 4.14.146-93.123.amzn1.x86_64 #1 SMP Tue Sep 24 00:45:23 UTC 2019 x86_64
User: apache (48)
PHP: 5.6.40
Disabled: NONE
Upload Files
File: /var/www/html/pmw24/footer1.php
<?php
/**
 * The template for displaying the footer
 *
 * Contains the closing of the #content div and all content after
 *
 * @package WordPress
 * @subpackage Punjab_Motor
 * @since Punjab Motor 1.0
 */
?>
<?php if ( is_page_template( 'template-page/contact-template.php' ) ) {?>

<?php } else { ?>
<div class="footer">

  <div class="address">
		<div class="address_box">
			<span>Address</span>
			<p><?php echo get_field('contact_address',16); ?></p>
		</div>
		<div class="address_box">
			<span>Phone</span>
			<p><a href="tel:<?php $cnt = get_field('contact_phone',16); echo str_replace(" ","",$cnt);?>"><?php echo get_field('contact_phone',16); ?></a></p>
		</div>
		<div class="address_box">
			<span>Email</span>
			<p><a href="mailto: <?php echo get_field('contact_email',16); ?>"><?php echo get_field('contact_email',16); ?></a></p>
		</div>
	</div>
    <div class="map_section">
  <iframe src="<?php echo get_field('contact_map',16); ?>" width="100%" height="333" frameborder="0" style="border:0" allowfullscreen></iframe>
  </div>
</div>
<?php } ?>
<div class="footer_bottom">
	<div class="container">
		<div class="row">
		<div class="col-md-7 col-sm-12 col-xs-12">
			<div class="footer_l">				
				<?php             
				$menuFooter = array(
				  'theme_location'  => 'footer', 
				  'menu_class'      => '', // the manu element class              
				  'fallback_cb'     => false
				  );
				wp_nav_menu( $menuFooter ); // Defining the menu with attributes                                        
			  ?>
			</div>
		</div>
		<div class="col-md-5 col-sm-12 col-xs-12">
			<div class="footer_r">
				<p>&copy; <?php echo date('Y'); ?> <a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a>. All rights reserved!</a></p>
			</div>
		</div>
		</div>
	</div>
</div>

<script>
	//script to create sticky header 
	jQuery(function(){
		createSticky(jQuery("#sticky-wrap"));
	});

	function createSticky(sticky) {
		if (typeof sticky != "undefined") {

			var pos = sticky.offset().top ,
				win = jQuery(window);

			win.on("scroll", function() {

				if( win.scrollTop() > pos ) {
					sticky.addClass("stickyhead");
				} else {
					sticky.removeClass("stickyhead");
				}           
			});         
		}
	}
	</script>
	



<?php wp_footer(); ?>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.2/jquery-confirm.min.css">
<script src="https://cdn.jsdelivr.net/jquery.validation/1.16.0/jquery.validate.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.4/jquery-confirm.min.js"></script>

<script type="text/javascript">

  jQuery(document).ready(function() {
    jQuery("#frm").validate({
        meta: "validate",
        rules: {
            email: {
            required: true,
            email: true,
            remote: {
                url: "https://pmw24.com.au/app/api/remote_emailcheck",
                type: "post",
                dataType: 'text',
                data: {
                    email: function() {
                        return $('#email_staff').val();
                    }
                 },
                dataFilter: function (data) {

               if (data == 0) {
                  return "Email not exist ! please try another one";
                } else {
                  return 'true';
                }
              }
              }
            },
          password: {
              required: true,
           },
        },
         messages: {
	       email: {
	                required: "Please Enter Email!",
	                email: "This is not a valid email!",
	                remote: "Email already in use!"
	            },
	         
      },
      submitHandler: function(e) {
        //e.preventDefault();
        $('form[id="frm"]')[0].submit();
      }
	 });
    
		$( "#signup_form" ).validate({
			rules: {
				mobile: {required:true,number: true, minlength:10,maxlength:15}, 
				pin:{required:true,number: true, minlength:4,maxlength:4},
				abn:{number: true, minlength:13,maxlength:13},
				landline_no:{number: true, minlength:10,maxlength:15}
			},
			messages: {						
				mobile:{minlength:"Mobile should be 10 - 15 digits",maxlength:"Mobile should be 10 - 15 digits"},
				pin:{minlength:"Post Code should be 4 digits",maxlength:"Post Code should be 4 digits"},
				abn:{minlength:"Min length is 13 digit",maxlength:"Max length is 13 digit"},
				landline_no:{minlength:"Telephone (home) should be 10 - 15 digits.",maxlength:"Telephone (home) should be 10 - 15 digits."},     
			},
			errorElement: "em",
			errorClass: "form_validation_error",
			submitHandler: function (e) {
				var senddata =$("#signup_form").serializeArray();  
				$.ajax({
					url: "<?php echo home_url(); ?>/app/customer/login/add_customer",
					type: "POST",
					data: senddata,
					dataType: "json",
					encode: true,
					async: false
				})
				.done(function(data) {
					if (data.status) {
						$.alert({
							type: 'green',
							title: 'Success',
							content: data.msg,
							buttons: {
								OK: function () {
									window.location.reload(true);
								}
							},
						})
					} else {
						$.alert({
							type: 'red',
							title: 'Error',
							content: data.msg,
						});
					}
				})
				.fail(function(result) {
					$.alert({
						type: 'red',
						title: 'Alert!',
						content: 'Oops!Something went wrong...',
					});
				})
			}

		});
	
		$("#login_form").validate({
			errorElement: "em",
			errorClass: "form_validation_error",
			submitHandler: function (e) {
				var senddata =$("#login_form").serializeArray();
				$.ajax({
					url: "<?php echo home_url(); ?>/app/customer/login/customer_login",
					type: "POST",
					data: senddata,
					dataType: "json",
					encode: true,
					async: false
				})
				.done(function(data) {
					if (data.status) {
						window.location.href="<?php echo home_url(); ?>/app/customer/customer/dashboard";
					} else {
						$.alert({
							type: 'red',
							title: 'Error',
							content: data.msg,
						});
					}
				})
				.fail(function(result) {
					$.alert({
						type: 'red',
						title: 'Alert!',
						content: 'Oops!Something went wrong...',
					});
				})
				
			}

		});
	
		$("#forgot_password_form").validate({
			errorElement: "em",
			errorClass: "form_validation_error",
			submitHandler: function (e) {
				var senddata =$("#forgot_password_form").serializeArray();
				$.ajax({
					url: "<?php echo home_url(); ?>/app/customer/login/forgot_password",
					type: "POST",
					data: senddata,
					dataType: "json",
					encode: true,
					async: false
				})
				.done(function(data) {
					if (data.status) {
						$.alert({
							type: 'green',
							title: 'Success',
							content: data.msg,
						});
					} else {
						$.alert({
							type: 'red',
							title: 'Error',
							content: data.msg,
						});
					}
				})
				.fail(function(result) {
					$.alert({
						type: 'red',
						title: 'Alert!',
						content: 'Oops!Something went wrong...',
					});
				})
				
			}

		});
	
	
	});
</script>
<script>

	$(".customer_type_cls").change(function(){
		if($(this).val()=='I'){
			$("#business_name_div").hide();
			$("#business_name").removeAttr('required');
		}else{
			$("#business_name_div").show();
			$("#business_name").attr('required',true);
		}
	})

	$("#forgot_pw_a").click(function(){
		$("#myloginModal").modal('hide');
	})
</script>
</body>
</html>