TOUR-FORM-TAG 迁移到产品页面

hotfix/paypal-note
Jimmy Liow 2 years ago
parent 8489d7b9ac
commit d6fe119229

@ -1015,17 +1015,6 @@ class Information extends CI_Controller
$template
);
$tour_form_content = $this->load->view(
$template_path . '-tour-form',
array('information' => $information),
true
);
$template = str_replace(
'<!--@TOUR-FORM-TAG@-->',
$tour_form_content,
$template
);
//替换模板中的标签
$template = str_replace('<!--@TITLE@-->', $information->ic_seo_title, $template);
$template = str_replace('<!--@DESCRIPTION@-->', $information->ic_seo_description, $template);
@ -1124,8 +1113,17 @@ class Information extends CI_Controller
);
$information->ic_content = str_replace('<!--@WHY-US-COVID-MOBILE@-->', $why_us_covid_list_mobile, $information->ic_content);
$info_page_form_content = $this->load->view($template_path . '-info-page-form', false, true);
$information->ic_content = str_replace('<!--@INFO-PAGE-FORM@-->', $info_page_form_content, $information->ic_content);
if (empty($meta_product_code)) {
$info_page_form_content = $this->load->view($template_path . '-info-page-form', false, true);
$information->ic_content = str_replace('<!--@INFO-PAGE-FORM@-->', $info_page_form_content, $information->ic_content);
} else {
$tour_form_content = $this->load->view(
$template_path . '-tour-form',
array('information' => $information, 'meta_product_code' => $meta_product_code),
true
);
$information->ic_content = str_replace('<!--@TOUR-FORM-TAG@-->', $tour_form_content, $information->ic_content);
}
if (is_file('D:/wwwroot/origin-www.globalhighlights.com/css/gh-global.css')) { //主样式表,内联模式,优先读取本地,没有在从网络读取,为了加速
$main_css_string = compress_css(file_get_contents('D:/wwwroot/origin-www.globalhighlights.com/css/gh-global.css'));

@ -312,6 +312,7 @@
<input name="nullemail" placeholder="Your alternative email?" type="hidden">
<input id="url" name="url" type="hidden">
<input name="product_code" type="hidden" value="<?php echo $meta_product_code; ?>"/>
<input id="sourcetype" name="sourcetype" type="hidden" value="32113">
<button class="sendButton" type="submit">
Send My Inquiry

Loading…
Cancel
Save