From 0f7969af7ebe2031ac912a2c40f727a86720c883 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=96=87=E5=BC=BA=40HWQ-PC?= Date: Fri, 19 Jul 2024 15:29:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0ah=EF=BC=8Cch=EF=BC=8Cgh?= =?UTF-8?q?=E5=AF=B9$OPI=5FCode=E7=9A=84=E5=88=9D=E5=A7=8B=E5=8C=96?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/information.php | 2 +- application/views/mobile_first/ah-h1.php | 1 + application/views/mobile_first/ch-h1.php | 31 ++++++++++++------------ application/views/mobile_first/gh-h1.php | 1 + 4 files changed, 19 insertions(+), 16 deletions(-) diff --git a/application/controllers/information.php b/application/controllers/information.php index d65c987b..eb09082e 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -1047,7 +1047,7 @@ class Information extends CI_Controller $author = $this->Operator_model->get_author_nikename($information->ic_author); if (!empty($author)) { $data_H1['author'] = $author->OPI_FirstName; - $data_H1['OPI_Code'] = $author->OPI_Code; + $data_H1['OPI_Code'] = $author->OPI_Code; } else { $author_web = $this->Infoauthors_model->detail_by_id($information->ic_author); //原始作者,可能是在线作者等 if (!empty($author_web)) { diff --git a/application/views/mobile_first/ah-h1.php b/application/views/mobile_first/ah-h1.php index 403de8f8..da3cea40 100644 --- a/application/views/mobile_first/ah-h1.php +++ b/application/views/mobile_first/ah-h1.php @@ -31,6 +31,7 @@ 'LXW' => 'https://www.globalhighlights.com/aboutus/team/carper-li', 'zzyGH' => 'https://www.globalhighlights.com/aboutus/team/ruru-zhou', ]; + $OPI_Code = empty($OPI_Code) ? '' : $OPI_Code; if (!empty($meta_news_createdate)) {?>
Written by diff --git a/application/views/mobile_first/ch-h1.php b/application/views/mobile_first/ch-h1.php index 80f4558f..660f9a4b 100644 --- a/application/views/mobile_first/ch-h1.php +++ b/application/views/mobile_first/ch-h1.php @@ -28,20 +28,21 @@ 'LXW' => 'https://www.globalhighlights.com/aboutus/team/carper-li', 'zzyGH' => 'https://www.globalhighlights.com/aboutus/team/ruru-zhou', ]; - if (!empty($meta_news_createdate)) {?> -
- Written by - - - - - - Updated -
- - - - + $OPI_Code = empty($OPI_Code) ? '' : $OPI_Code; + if (!empty($meta_news_createdate)) {?> +
+ Written by + + + + + + Updated +
+ + + +
\ No newline at end of file diff --git a/application/views/mobile_first/gh-h1.php b/application/views/mobile_first/gh-h1.php index c594d032..0d503ccc 100644 --- a/application/views/mobile_first/gh-h1.php +++ b/application/views/mobile_first/gh-h1.php @@ -28,6 +28,7 @@ 'LXW' => 'https://www.globalhighlights.com/aboutus/team/carper-li', 'zzyGH' => 'https://www.globalhighlights.com/aboutus/team/ruru-zhou', ]; + $OPI_Code = empty($OPI_Code) ? '' : $OPI_Code; if (!empty($meta_news_createdate)) {?>
Written by