From 8875595741a0c8b5fa0907e43e916d4589eefaa0 Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Mon, 21 Apr 2025 14:21:59 +0800 Subject: [PATCH] =?UTF-8?q?JH=20Article=20=E4=BD=BF=E7=94=A8=E4=BD=9C?= =?UTF-8?q?=E8=80=85=20URL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/information.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/controllers/information.php b/application/controllers/information.php index 84e8b460..e6e08021 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -2632,6 +2632,7 @@ class Information extends CI_Controller if (!empty($author)) { $data['author'] = $author->OPI_FirstName; $data['OPI_Code'] = $author->OPI_Code; + $data['author_url'] = $this->get_author_url('www.japanhighlights.com', $author->OPI_Code); } else { $author_web = $this->Infoauthors_model->detail_by_id($information->ic_author); //原始作者,可能是在线作者等 if (!empty($author_web)) { @@ -2644,7 +2645,7 @@ class Information extends CI_Controller // 结构化标签:Article $article_structured_data_content = $this->load->view( $template_path . '-structured-data-article', - array('information' => $information, 'author' => $data['author']), + array('information' => $information, 'author_name' => $data['author'], 'author_url' => $data['author_url']), true ); $template = str_replace('', $article_structured_data_content, $template);