|
|
|
@ -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'));
|
|
|
|
|