|
|
|
@ -618,8 +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); //信息所属分类,获取信息顶级节点内容
|
|
|
|
|
$author_nickname = $this->Operator_model->get_author_nikename($information->ic_author);
|
|
|
|
|
$data_H1['author'] = $author_nickname; //获取作者信息
|
|
|
|
|
$author = $this->Operator_model->get_author_nikename($information->ic_author);
|
|
|
|
|
$data_H1['author'] = $author; //获取作者信息
|
|
|
|
|
$data_H1['ic_title'] = $information->ic_title;
|
|
|
|
|
$data_H1['ic_photo'] = $information->ic_photo;
|
|
|
|
|
$data_H1['breadcrumb_data'] = $breadcrumb_data;
|
|
|
|
@ -632,7 +632,7 @@ class Information extends CI_Controller
|
|
|
|
|
if ($information->is_id == '278006460') {
|
|
|
|
|
$article_structured_data_content = $this->load->view(
|
|
|
|
|
$template_path . '-structured-data-article',
|
|
|
|
|
array('information' => $information, 'author_nickname' => $author_nickname),
|
|
|
|
|
array('information' => $information, 'author' => $author),
|
|
|
|
|
true);
|
|
|
|
|
$template = str_replace('<!--@STRUCTURED-DATA-ARTICLE-BLOCK@-->', $article_structured_data_content, $template);
|
|
|
|
|
}
|
|
|
|
|