From 178de545fbb909cb6d6e141b3e0c73a1a103c81a Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Mon, 24 Jan 2022 13:42:46 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E9=A1=B6=E9=83=A8=E5=A4=A7=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/information.php | 7 +++++++ application/views/mobile_first/ch-info-top-img.php | 6 ++++++ application/views/mobile_first/ch-pc.php | 7 +------ application/views/mobile_first/ch.php | 7 +------ 4 files changed, 15 insertions(+), 12 deletions(-) create mode 100644 application/views/mobile_first/ch-info-top-img.php diff --git a/application/controllers/information.php b/application/controllers/information.php index ef0da442..62a1527d 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -678,6 +678,13 @@ class Information extends CI_Controller array('information' => $information, 'author' => $author), true); $template = str_replace('', $article_structured_data_content, $template); + + + $article_top_image_content = $this->load->view( + $template_path . '-info-top-img', + array('information' => $information), + true); + $template = str_replace('', $article_top_image_content, $template); } else { $template = str_replace('', '', $template); $inquiry_form_template = $this->load->view($template_path . '-inquiry-form', array('meta_product_code' => $meta_product_code), true); diff --git a/application/views/mobile_first/ch-info-top-img.php b/application/views/mobile_first/ch-info-top-img.php new file mode 100644 index 00000000..83ae235b --- /dev/null +++ b/application/views/mobile_first/ch-info-top-img.php @@ -0,0 +1,6 @@ + +
+ <?php echo !empty($ic_title)?$ic_title:'H1 title Chinahighlights mobile first template'; ?> +
+ \ No newline at end of file diff --git a/application/views/mobile_first/ch-pc.php b/application/views/mobile_first/ch-pc.php index 9d043204..811ad491 100644 --- a/application/views/mobile_first/ch-pc.php +++ b/application/views/mobile_first/ch-pc.php @@ -187,12 +187,7 @@
- -
- <?php echo !empty($ic_title)?$ic_title:'H1 title Chinahighlights mobile first template'; ?> -
- +
diff --git a/application/views/mobile_first/ch.php b/application/views/mobile_first/ch.php index 0fc9cbcb..0c3bbdda 100644 --- a/application/views/mobile_first/ch.php +++ b/application/views/mobile_first/ch.php @@ -198,12 +198,7 @@ - -
- <?php echo !empty($ic_title)?$ic_title:'H1 title Chinahighlights mobile first template'; ?> -
- +
From 056eba192d8bb3a019df78dc5727a0d2b70a3b79 Mon Sep 17 00:00:00 2001 From: candice Date: Mon, 24 Jan 2022 14:36:18 +0800 Subject: [PATCH 2/6] 11 --- application/views/mobile_first/ch-h1.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/views/mobile_first/ch-h1.php b/application/views/mobile_first/ch-h1.php index df745cc4..3668b289 100644 --- a/application/views/mobile_first/ch-h1.php +++ b/application/views/mobile_first/ch-h1.php @@ -11,7 +11,7 @@

-
By OPI_FirstName:'author nickname'; ?>Updated
+
Written by OPI_FirstName:'author nickname'; ?>Updated