Commit 7508ea6a by Harshit

changes

1 parent 44b3978d
...@@ -317,9 +317,9 @@ p { ...@@ -317,9 +317,9 @@ p {
.navbar-img { .navbar-img {
width: 138px !important; width: 89px !important;
margin-top: 15px !important; margin-top: 1px !important;
margin-left: 94px !important; margin-left: 117px !important;
} }
.navbar-brand { .navbar-brand {
...@@ -3649,11 +3649,18 @@ input[type="number"]::-webkit-outer-spin-button { ...@@ -3649,11 +3649,18 @@ input[type="number"]::-webkit-outer-spin-button {
} }
.navbar-img { .navbar-img {
width: 150px; width: 94px;
margin-left: -134px; margin-left: -112px;
margin-top: 15px; margin-top: 3px;
} }
.form-group{
/* margin-bottom: 23px; */
height: 40px;
}
.enquire-div { .enquire-div {
position: fixed; position: fixed;
bottom: 0; bottom: 0;
......
...@@ -37,6 +37,10 @@ ...@@ -37,6 +37,10 @@
setcookie('cstm_ppc_adgroup', $adgroup, time() + (86400 * 180)); setcookie('cstm_ppc_adgroup', $adgroup, time() + (86400 * 180));
} }
if (isset($lead_source)) {
setcookie('lead_source', $lead_source, time() + (86400 * 180));
}
// cloudfront Distribution---- https://d2plr2im4rez5d.cloudfront.net // cloudfront Distribution---- https://d2plr2im4rez5d.cloudfront.net
// PROD // PROD
// for production, keep below two lines uncommented, and comment below line labeled LOCAL // for production, keep below two lines uncommented, and comment below line labeled LOCAL
...@@ -52,8 +56,7 @@ ...@@ -52,8 +56,7 @@
<html> <html>
<head> <head>
<!-- Google Tag Manager --> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
...@@ -64,6 +67,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= ...@@ -64,6 +67,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
<meta http-equiv="ContenType" content="text/html; charset=UTF-8" /> <meta http-equiv="ContenType" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<title> Urban Luxurious 3 & 4 BHK Villas in Hoskote <title> Urban Luxurious 3 & 4 BHK Villas in Hoskote
...@@ -99,13 +103,12 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= ...@@ -99,13 +103,12 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
</head> </head>
<body> <body>
<!-- Google Tag Manager (noscript) -->
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-55ZP867L" <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-55ZP867L"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) --> <!-- End Google Tag Manager (noscript) -->
<!-- Plum5 script --> <!-- Plum5 script -->
...@@ -130,7 +133,7 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> ...@@ -130,7 +133,7 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
</a> </a>
<!-- <button class="btn btn-danger download1 btn-download visible-xs">Download <!-- <button class="btn btn-danger download1 btn-download visible-xs">Download
Brochure</button> --> Brochure</button> -->
<img class="navbar-img mob-img" src="images/logo/logo-2.png"> <img class="navbar-img mob-img" src="images/logo/parem.png">
</div> </div>
</div> </div>
...@@ -160,7 +163,7 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> ...@@ -160,7 +163,7 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
</div> </div>
<div class="col-md-1"> <div class="col-md-1">
<img class="navbar-img desk-img" src="images/logo/logo-2.png"> <img class="navbar-img desk-img" src="images/logo/parem.png">
</div> </div>
<!-- /.container-fluid --> <!-- /.container-fluid -->
...@@ -191,11 +194,11 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> ...@@ -191,11 +194,11 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<img src="images/slider/mobile-1.gif" alt="" class="visible-xs"> <img src="images/slider/mobile-1.gif" alt="" class="visible-xs">
</div> --> </div> -->
<div class="item active"> <!-- <div class="item active">
<img src="images/banner/WEB_1.jpg" alt="" class="hidden-xs"> <img src="images/banner/WEB_1.jpg" alt="" class="hidden-xs">
<img src="images/banner/MOB_1.jpg" alt="" class="visible-xs"> <img src="images/banner/MOB_1.jpg" alt="" class="visible-xs">
</div> </div> -->
<div class="item "> <div class="item active ">
<img src="images/banner/WEB_2.jpg" alt="" class="hidden-xs"> <img src="images/banner/WEB_2.jpg" alt="" class="hidden-xs">
<img src="images/banner/MOB_2.jpg" alt="" class="visible-xs"> <img src="images/banner/MOB_2.jpg" alt="" class="visible-xs">
</div> </div>
...@@ -1497,8 +1500,8 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> ...@@ -1497,8 +1500,8 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
ENQUIRE NOW</h2> ENQUIRE NOW</h2>
<!-- <hr style="border-top: 4px solid #fff"> --> <!-- <hr style="border-top: 4px solid #fff"> -->
<h1>Please enter your details to know more about Eco City</h1> <h1>Please enter your details to know more about Eco City</h1>
<form id="contact_form" action="thank-you.php" name="contact_form" method="POST" <form id="contact_form2" action="thank-you.php" name="contact_form2" method="POST"
onsubmit="return save_landing_pageinfo('contact_form');" novalidate="novalidate"> onsubmit="return save_landing_pageinfo('contact_form2');" novalidate="novalidate">
<div class="form-group col-md-12"> <div class="form-group col-md-12">
<div class="input-group"> <div class="input-group">
...@@ -1959,7 +1962,7 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> ...@@ -1959,7 +1962,7 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
</form> </form>
</div> </div>
</div><!-- /.modal-content --> </div><!-- /.modal-content -->
</div><!-- /.modal-dialog --> </div><!-- /.modal-dialog -->footer
</div> </div>
<!-- ============================================= --> <!-- ============================================= -->
......
...@@ -84,6 +84,45 @@ jQuery(function ($) { ...@@ -84,6 +84,45 @@ jQuery(function ($) {
} }
if ($("#contact_form2").length > 0) {
$("#contact_form2").validate({
rules: {
fname: {
required: true,
maxlength: 100,
},
mobile: {
required: true,
number: true,
minlength: 7,
maxlength: 14,
},
email: {
required: true,
email: true,
},
},
messages: {
fname: {
required: "Enter Your Name",
},
mobile: {
required: "Enter Your Number",
},
email: {
required: "Enter Your Email",
},
},
});
}
if ($("#register-form").length > 0) { if ($("#register-form").length > 0) {
$("#register-form").validate({ $("#register-form").validate({
rules: { rules: {
......
...@@ -11,6 +11,7 @@ class PostData ...@@ -11,6 +11,7 @@ class PostData
$keyword = $_COOKIE['cstm_ppc_keyword']; $keyword = $_COOKIE['cstm_ppc_keyword'];
$device = $_COOKIE['cstm_ppc_device']; $device = $_COOKIE['cstm_ppc_device'];
$gclid = $_COOKIE['gclid']; $gclid = $_COOKIE['gclid'];
$lead_source = $_COOKIE['lead_source'];
$ip = $_SERVER['REMOTE_ADDR']; $ip = $_SERVER['REMOTE_ADDR'];
...@@ -25,15 +26,8 @@ class PostData ...@@ -25,15 +26,8 @@ class PostData
$site_visit = $_REQUEST['select_option_2']; $site_visit = $_REQUEST['select_option_2'];
//$country_code = $_REQUEST['country_code']; //$country_code = $_REQUEST['country_code'];
$name = $fname . ' ' . $lname; $name = $fname . ' ' . $lname;
$fullmobile = "91" . $mobile; $fullmobile = "91" . $mobile;
// Google Sheet Interation------------------
$postFields = "entry.449648499=" . $name; $postFields = "entry.449648499=" . $name;
$postFields .= "&entry.1379833540=" . $email; $postFields .= "&entry.1379833540=" . $email;
$postFields .= "&entry.758332158=" . $fullmobile; $postFields .= "&entry.758332158=" . $fullmobile;
...@@ -62,6 +56,86 @@ class PostData ...@@ -62,6 +56,86 @@ class PostData
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://accounts.zoho.in/oauth/v2/token?refresh_token=1000.97ccf5a662503908f7386aac639d3f8c.c4cf3294129c81da18181996e55af4c7&client_id=1000.E5Q33CVDAS2U8SO2V12N02F8R8R0OK&client_secret=c71c44d0167124d3557369ca49245027f83add1c07&grant_type=refresh_token',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => array(
'Cookie: _zcsr_tmp=103f0b91-b3ef-410f-93e1-e24a5038c5c0; iamcsr=103f0b91-b3ef-410f-93e1-e24a5038c5c0; zalb_6e73717622=13e67ac15bc4d3ece130966123511df7'
),
));
$response = curl_exec($curl);
$json = json_decode($response);
//echo 'token- ' . $json->access_token;
$access_token = $json->access_token;
// var_dump( $access_token);
if ($lead_source == "") {
$lead_source = "Google Ads";
}
if (!$access_token == '' || !$access_token == null) {
$data = array(
"data" => array(
array(
"Campaigner" => "Realatte",
"Last_Name" => $name,
"First_Name" => "",
"Phone" => $fullmobile,
"Email" => $email,
"State" => "",
"Lead_Source" => $lead_source,
"Campaign_Project" => "Ecocity",
"Lead_Status" => "New Lead"
)
)
);
$json_input = json_encode($data, true);
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://www.zohoapis.in/crm/v2.1/Leads',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => $json_input,
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer ' . $access_token,
'Content-Type: application/json',
'Cookie: _zcsr_tmp=db4f4e23-ce1f-43c6-8710-3b73b562a77e; crmcsr=db4f4e23-ce1f-43c6-8710-3b73b562a77e'
),
));
$response = curl_exec($curl);
curl_close($curl);
// echo $response;
// var_dump($response);
// die;
}
// do not delete // do not delete
return true; return true;
} }
......
...@@ -56,8 +56,7 @@ if ((!isset($_COOKIE['formfilled'])) && isset($_REQUEST['mobile'])) { ...@@ -56,8 +56,7 @@ if ((!isset($_COOKIE['formfilled'])) && isset($_REQUEST['mobile'])) {
<html> <html>
<head> <head>
<!-- Google Tag Manager -->
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
...@@ -85,7 +84,6 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= ...@@ -85,7 +84,6 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
<body> <body>
<!-- Google Tag Manager (noscript) --> <!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-55ZP867L" <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-55ZP867L"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!