From d6fe119229f25c48264b6182d605c543d60daec7 Mon Sep 17 00:00:00 2001 From: Jimmy Liow <18777396951@163.com> Date: Wed, 12 Apr 2023 10:06:39 +0800 Subject: [PATCH] =?UTF-8?q?TOUR-FORM-TAG=20=E8=BF=81=E7=A7=BB=E5=88=B0?= =?UTF-8?q?=E4=BA=A7=E5=93=81=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/information.php | 24 +++++++++---------- .../views/mobile_first/gh-tour-form.php | 1 + 2 files changed, 12 insertions(+), 13 deletions(-) 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 @@ +