diff --git a/application/controllers/information.php b/application/controllers/information.php index 7ec3c042..74134625 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -709,7 +709,6 @@ class Information extends CI_Controller $info_page_form_content = $this->load->view($template_path . '-info-page-form', false, true); $information->ic_content = str_replace('', $info_page_form_content, $information->ic_content); } else { - $template = str_replace('', '', $template); $inquiry_form_template = $this->load->view($template_path . '-inquiry-form', array('meta_product_code' => $meta_product_code), true); $information->ic_content = str_replace('', $inquiry_form_template, $information->ic_content); @@ -1273,8 +1272,7 @@ class Information extends CI_Controller if (empty($meta_product_code)) { $addthis_widget = $this->load->view($template_path . '-add-this', false, true); $template = str_replace('', $addthis_widget, $template); - } else { - $template = str_replace('', '', $template); + } else { $inquiry_form_template = $this->load->view( $template_path . '-inquiry-form', array('meta_product_code' => $meta_product_code, 'information' => $information), diff --git a/application/third_party/wwwlog/controllers/index.php b/application/third_party/wwwlog/controllers/index.php index bfeae234..bd97d39c 100644 --- a/application/third_party/wwwlog/controllers/index.php +++ b/application/third_party/wwwlog/controllers/index.php @@ -60,6 +60,7 @@ class Index extends CI_Controller and request_uri NOT like '%.png' and request_uri NOT like '%.gif' and request_uri NOT like '%.css' + and request_uri NOT like '%.webp' and request_uri NOT like '%.js' and request_uri NOT like '%.woff' and request_uri NOT like '%.ttf' diff --git a/application/views/mobile_first/ah-feedback-list.php b/application/views/mobile_first/ah-feedback-list.php index 62723006..5ad95895 100644 --- a/application/views/mobile_first/ah-feedback-list.php +++ b/application/views/mobile_first/ah-feedback-list.php @@ -8,7 +8,10 @@ $feedback) {?>
-
More
+
+ +

+ More
,
diff --git a/application/views/mobile_first/ah-gp-form.php b/application/views/mobile_first/ah-gp-form.php index e8d936be..817485f2 100644 --- a/application/views/mobile_first/ah-gp-form.php +++ b/application/views/mobile_first/ah-gp-form.php @@ -1,3 +1,4 @@ +

Book this trip now. Your 1:1 travel consultant will reply within 1 working day.

@@ -728,9 +729,24 @@ const submitFormBtn = el('submit_gp_form'); + const gp_form = el('gp_form'); submitFormBtn.on('click', () => { if (validateGPForm()) { - el('gp_form').submit(); + + if (typeof(grecaptcha) === "undefined") { + console.warn('grecaptcha is disabled.'); + gp_form.submit(); + } else { + grecaptcha.enterprise.ready(async () => { + const token = await grecaptcha.enterprise.execute('6Lf828MhAAAAANNetijCXKwW5ARyhcJ-b1Hhslja', {action: 'ADD_TO_CART'}); + var el = document.createElement("input"); + el.type = "hidden"; + el.name = "__grecaptcha_token__"; + el.value = token; + gp_form.appendChild(el); + gp_form.submit(); + }); + } } }); diff --git a/application/views/mobile_first/ah-info-page-form.php b/application/views/mobile_first/ah-info-page-form.php index cef577bc..7757752d 100644 --- a/application/views/mobile_first/ah-info-page-form.php +++ b/application/views/mobile_first/ah-info-page-form.php @@ -1,9 +1,11 @@ + +

Start planning your tailor-made tour now. Your 1:1 travel consultant will reply within 1 working day.

- + - +

For a quick conversation, simply reach us via WhatsApp:

@@ -620,6 +622,30 @@ document.addEventListener('DOMContentLoaded', () => { disableMobile: true, minDate: "today" }); + + var info_page_button = document.getElementById("info_page_button"); + var info_page_form = document.getElementById("info_page_form"); + + info_page_button.addEventListener('click', function(event) { + var validateResult = validateQuickInquiryForm(); + if (validateResult) { + if (typeof(grecaptcha) === "undefined") { + console.warn('grecaptcha is disabled.'); + info_page_form.submit(); + } else { + grecaptcha.enterprise.ready(async () => { + const token = await grecaptcha.enterprise.execute('6Lf828MhAAAAANNetijCXKwW5ARyhcJ-b1Hhslja', {action: 'ADD_TO_CART'}); + var el = document.createElement("input"); + el.type = "hidden"; + el.name = "__grecaptcha_token__"; + el.value = token; + info_page_form.appendChild(el); + info_page_form.submit(); + }); + } + } + }); + }); function validateQuickInquiryForm() { diff --git a/application/views/mobile_first/ah-inquiry-form.php b/application/views/mobile_first/ah-inquiry-form.php index 9bbef304..334ffffd 100644 --- a/application/views/mobile_first/ah-inquiry-form.php +++ b/application/views/mobile_first/ah-inquiry-form.php @@ -1,8 +1,7 @@ - - +

Start planning your tailor-made tour now. Your 1:1 travel consultant will reply within 1 working day.

-
+ - +

+8615807734776
Email: contact@asiahighlights.com

-
\ No newline at end of file + + + + \ No newline at end of file diff --git a/application/views/mobile_first/ah-lantern-form-info-page.php b/application/views/mobile_first/ah-lantern-form-info-page.php index 327f6232..c7fd8897 100644 --- a/application/views/mobile_first/ah-lantern-form-info-page.php +++ b/application/views/mobile_first/ah-lantern-form-info-page.php @@ -1,5 +1,5 @@ +
-

Get Your 2022 Chiang Mai CAD Lantern Mass Release Tickets Here!

@@ -25,7 +25,7 @@
@@ -60,7 +60,7 @@

Children under 8 years old enter free; 8-year-olds and above are charged the same as adults. You can buy a ticket for your child under 8 if you would like her or him to enjoy the same provision.

-
Total price: $170
+
Total price: $179

Please provide correct personal information for your ticket booking. Double check.

@@ -676,12 +676,20 @@
-

Get Your 2022 Chiang Mai CAD Lantern Mass Release Tickets Here!

@@ -25,7 +25,7 @@
@@ -60,7 +60,7 @@

Children under 8 years old enter free; 8-year-olds and above are charged the same as adults. You can buy a ticket for your child under 8 if you would like her or him to enjoy the same provision.

-
Total price: $170
+
Total price: $179

Please provide correct personal information for your ticket booking. Double check.

@@ -675,12 +675,20 @@ \ No newline at end of file diff --git a/application/views/mobile_first/ch-inquiry-form.php b/application/views/mobile_first/ch-inquiry-form.php index de535c7c..aec70f11 100644 --- a/application/views/mobile_first/ch-inquiry-form.php +++ b/application/views/mobile_first/ch-inquiry-form.php @@ -1,11 +1,7 @@
- - -

Start planning your tailor-made tour now. Your 1:1 travel consultant will reply within 1 working day.

-
+ name="quick_inquiry_form" novalidate="">
@@ -13,16 +9,16 @@ * - + +

* - - + +

@@ -30,7 +26,7 @@

+ class="requiredArea">Please enter your starting date.

+ placeholder="Phone number (We'll only call if you ask.)*" type="tel"/>

+

Having a phone number, especially with WeChat/WhatsApp capability will improve communication efficiency.

I prefer to be contacted via:

@@ -591,17 +588,95 @@
-
china highlights' wechat code
Quickly inquire about this tour via our WeChat: chinahighlightstour
+
+ + + \ No newline at end of file diff --git a/application/views/mobile_first/ch-pc.php b/application/views/mobile_first/ch-pc.php index e6657624..80897691 100644 --- a/application/views/mobile_first/ch-pc.php +++ b/application/views/mobile_first/ch-pc.php @@ -47,10 +47,7 @@