diff --git a/application/controllers/information.php b/application/controllers/information.php index 68047375..a8c7cd9a 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -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_content, - $template - ); - //替换模板中的标签 $template = str_replace('', $information->ic_seo_title, $template); $template = str_replace('', $information->ic_seo_description, $template); @@ -1124,8 +1113,17 @@ class Information extends CI_Controller ); $information->ic_content = str_replace('', $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_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_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_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')); diff --git a/application/views/mobile_first/gh-tour-form.php b/application/views/mobile_first/gh-tour-form.php index 2e95f6d5..b4178314 100644 --- a/application/views/mobile_first/gh-tour-form.php +++ b/application/views/mobile_first/gh-tour-form.php @@ -312,6 +312,7 @@ +