|
|
|
|
@ -2276,6 +2276,9 @@ class Information extends CI_Controller {
|
|
|
|
|
}));
|
|
|
|
|
$article_image_json = json_encode($article_image_list, JSON_UNESCAPED_SLASHES);
|
|
|
|
|
|
|
|
|
|
$article_published_date = new DateTime($information->is_datetime, new DateTimeZone('UTC'));
|
|
|
|
|
$article_modified_date = new DateTime('now', new DateTimeZone('UTC'));
|
|
|
|
|
|
|
|
|
|
$data['meta_news_createdate'] = $this->get_publish_date_in_6_month($information);
|
|
|
|
|
$data['ads_by_google'] = $ads_by_google;
|
|
|
|
|
$data['author'] = ''; //获取作者信息
|
|
|
|
|
@ -2300,6 +2303,8 @@ class Information extends CI_Controller {
|
|
|
|
|
$article_structured_data_content = $this->load->view(
|
|
|
|
|
$template_path . '-structured-data-article', [
|
|
|
|
|
'information' => $information,
|
|
|
|
|
'article_published_date' => $article_published_date,
|
|
|
|
|
'article_modified_date' => $article_modified_date,
|
|
|
|
|
'author_name' => $data['author'], 'author_url' => $author_url,
|
|
|
|
|
'article_image_urls' => $article_image_json
|
|
|
|
|
],
|
|
|
|
|
|