diff --git a/application/controllers/information.php b/application/controllers/information.php index e6e08021..9108de84 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -1097,6 +1097,7 @@ class Information extends CI_Controller if (!empty($author)) { $data_H1['author'] = $author->OPI_FirstName; $data_H1['OPI_Code'] = $author->OPI_Code; + $data_H1['author_url'] = $this->get_author_url('www.chinahighlights.com', $author->OPI_Code); } else { $author_web = $this->Infoauthors_model->detail_by_id($information->ic_author); //原始作者,可能是在线作者等 if (!empty($author_web)) { @@ -1150,7 +1151,7 @@ class Information extends CI_Controller $article_structured_data_content = $this->load->view( $template_path . '-structured-data-article', - array('information' => $information, 'author' => $author), + array('information' => $information, 'author_name' => $data_H1['author'], 'author_url' => $data_H1['author_url']), true ); $template = str_replace('', $article_structured_data_content, $template); @@ -2227,6 +2228,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.asiahighlights.com', $author->OPI_Code); } else { $author_web = $this->Infoauthors_model->detail_by_id($information->ic_author); //原始作者,可能是在线作者等 if (!empty($author_web)) { @@ -2239,7 +2241,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); diff --git a/application/views/mobile_first/ah-structured-data-article.php b/application/views/mobile_first/ah-structured-data-article.php index 75a180a3..71da38c6 100644 --- a/application/views/mobile_first/ah-structured-data-article.php +++ b/application/views/mobile_first/ah-structured-data-article.php @@ -14,7 +14,8 @@ "dateModified": "", "author": { "@type": "Person", - "name": "" + "name": "", + "url": "" }, "publisher": { "@type": "Organization", diff --git a/application/views/mobile_first/ch-structured-data-article.php b/application/views/mobile_first/ch-structured-data-article.php index 40624411..9c503cc1 100644 --- a/application/views/mobile_first/ch-structured-data-article.php +++ b/application/views/mobile_first/ch-structured-data-article.php @@ -14,7 +14,8 @@ "dateModified": "", "author": { "@type": "Person", - "name": "OPI_FirstName; ?>" + "name": "", + "url": "" }, "publisher": { "@type": "Organization",