Merge branch 'master' of github.com:hainatravel/information-system

hotfix/paypal-note
赵鹏 4 years ago
commit f69f98507f

@ -594,8 +594,8 @@ class Information extends CI_Controller
$template = str_replace('<!--@KEYWORDS@-->', $information->ic_seo_keywords, $template);
$template = str_replace('<!--@CANONICAL@-->', $this->config->item('site_url') . $information->ic_url, $template);
//非产品页面
if (empty(get_meta($information->ic_id, 'meta_product_code'))) {
$meta_product_code=get_meta($information->ic_id, 'meta_product_code');
if (empty($meta_product_code)) {
//H1模板替换
$data_H1 = array();
$data_H1['infocategory'] = $this->Information_model->get_detail_by_path($information->is_path, 1); //信息所属分类,获取信息顶级节点内容
@ -612,6 +612,8 @@ class Information extends CI_Controller
$template = str_replace('<!--@ADDTHIS-WIDGET@-->', $addthis_widget, $template);
} else {
$template = str_replace('<!--@PRODUCT-JS@-->', '<script src="https://data.chinahighlights.com/js/flatpickr.js"></script>', $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@-->', $inquiry_form_template, $information->ic_content);
}
//顶部全屏大图
if ($device == 'mobile') { //移动端读取移动大图

@ -0,0 +1,40 @@
<div class="tmbottom">
<div class="contactwechat"><img alt="" height="100px"
src="https://data.chinahighlights.com/image/forms/follow-us-wechat-2020.png"
width="100px"/>
<div class="wechatinfo">Quickly inquire about this tour via our WeChat: <span class="wechatred">chinahighlightstour</span>
</div>
</div>
<p>Or Submit an Inquiry Below</p>
<form action="https://www.chinahighlights.com/secureforms/qi_save" id="quick_inquiry_form" method="post"
name="quick_inquiry_form" novalidate="" onsubmit="return validateQuickInquiryForm()">
<div class="InquiryBox">
<p><input class="FullName" id="realname" name="realname" placeholder="Full name" type="text"/> <span
id="realname_errmsg" style="display: none"><span class="requiredArea">Please enter your full name</span></span>
</p>
<p><input class="EmailAddress" id="email" name="email" placeholder="Email" type="text"/> <span
id="email_errmsg" style="display: none"><span
class="requiredArea">Please enter your email</span></span></p>
<p><input class="Inquiryphone" id="PhoneNo" name="PhoneNo"
placeholder="Any other way to reach you (optional)" style="padding-left: 50px;" type="tel"/></p>
<p class="InquiryDate"><input class="InquiryCalendar" data-min-date="7" id="starting_date"
name="starting_date" placeholder="Starting date" readonly="readonly"
type="text"/><span id="starting_date_errmsg" style="display: none"><span
class="requiredArea">Please verify your email</span></span></p>
<p>
<textarea id="form_additionalrequirements" name="form_additionalrequirements"
placeholder="Tell us your travel ideas/interests, how many people, your hotel style…"></textarea>
</p>
<input type="hidden" name="nullemail">
<input name="cli_no" type="hidden" value="<?php echo $meta_product_code; ?>"/>
<button class="sendButton" id="quick_inquiry_button" name="quick_inquiry_button" type="submit">Send My
Inquiry <i aria-hidden="true" class="fa fa-angle-right"></i></button>
</div>
</form>
</div>
Loading…
Cancel
Save