diff --git a/application/controllers/information.php b/application/controllers/information.php index 32adc849..d76e253f 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -618,7 +618,8 @@ class Information extends CI_Controller //H1模板替换 $data_H1 = array(); $data_H1['infocategory'] = $this->Information_model->get_detail_by_path($information->is_path, 1); //信息所属分类,获取信息顶级节点内容 - $data_H1['author'] = $this->Operator_model->get_author_nikename($information->ic_author); //获取作者信息 + $author_nickname = $this->Operator_model->get_author_nikename($information->ic_author); + $data_H1['author'] = $author_nickname; //获取作者信息 $data_H1['ic_title'] = $information->ic_title; $data_H1['ic_photo'] = $information->ic_photo; $data_H1['breadcrumb_data'] = $breadcrumb_data; @@ -627,6 +628,14 @@ class Information extends CI_Controller $addthis_widget = $this->load->view($template_path . '-add-this', false, true); $template = str_replace('', $addthis_widget, $template); + + if ($information->is_id == '278006460') { + $article_structured_data_content = $this->load->view( + $template_path . '-structured-data-article', + array('information' => $information, 'author_nickname' => $author_nickname), + true); + $template = str_replace('', $article_structured_data_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-pc.php b/application/views/mobile_first/ch-pc.php index b75f42c3..a9fbb4d3 100644 --- a/application/views/mobile_first/ch-pc.php +++ b/application/views/mobile_first/ch-pc.php @@ -514,5 +514,6 @@ } + \ No newline at end of file diff --git a/application/views/mobile_first/ch-structured-data-article.php b/application/views/mobile_first/ch-structured-data-article.php new file mode 100644 index 00000000..cd812a81 --- /dev/null +++ b/application/views/mobile_first/ch-structured-data-article.php @@ -0,0 +1,28 @@ + \ No newline at end of file diff --git a/application/views/mobile_first/ch.php b/application/views/mobile_first/ch.php index 4d00113c..b87380ff 100644 --- a/application/views/mobile_first/ch.php +++ b/application/views/mobile_first/ch.php @@ -376,5 +376,6 @@ } + \ No newline at end of file