From e8b4e8b8be2dce6f7a87247611186094f103b8ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=B9=8F?= Date: Mon, 24 Mar 2025 11:26:04 +0800 Subject: [PATCH] =?UTF-8?q?CH=E7=AB=99=E7=81=AB=E8=BD=A6=E7=A5=A8=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E6=89=8B=E6=9C=BA=E7=AB=AF=E4=B8=8D=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=A4=B4=E9=83=A8=E5=9B=BE=E7=89=87=EF=BC=8C=E9=9D=A2=E5=8C=85?= =?UTF-8?q?=E5=B1=91=E5=8F=8AH1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/information.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/application/controllers/information.php b/application/controllers/information.php index 35e8d952..2142959c 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -1128,7 +1128,12 @@ class Information extends CI_Controller $data_H1['breadcrumb_data'] = $breadcrumb_data; $data_H1['ads_by_google'] = $ads_by_google; $data_H1['ic_datetime'] = $information->ic_datetime; - $template_H1 = $this->load->view($template_path . '-h1', $data_H1, true); + if ($information->ic_url == "/china-trains/" && $device == 'mobile'){ + //火车首页不需要头部大图及H1标题,但是需要一个H1的标签来占位置,避免表单上移 + $template_H1 = "

"; + }else{ + $template_H1 = $this->load->view($template_path . '-h1', $data_H1, true); + } $template = str_replace('', $template_H1, $template); //非产品页面