|
|
|
@ -671,9 +671,17 @@ 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'] = ''; //获取作者信息
|
|
|
|
|
$author = $this->Operator_model->get_author_nikename($information->ic_author);
|
|
|
|
|
$data_H1['author'] = $author; //获取作者信息
|
|
|
|
|
$data_H1['author_nickname'] = $information->ic_author; //原始作者,可能是在线作者等
|
|
|
|
|
if(!empty($author)){
|
|
|
|
|
$data_H1['author']=$author->OPI_FirstName;
|
|
|
|
|
}else{
|
|
|
|
|
$author_web =$this->Infoauthors_model->detail_by_id($information->ic_author); //原始作者,可能是在线作者等
|
|
|
|
|
if(!empty($author_web)){
|
|
|
|
|
$data_H1['author'] = $author_web->a_name;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$data_H1['ic_title'] = $information->ic_title;
|
|
|
|
|
$data_H1['ic_photo'] = $information->ic_photo;
|
|
|
|
|
$data_H1['breadcrumb_data'] = $breadcrumb_data;
|
|
|
|
@ -1009,9 +1017,16 @@ 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'] = ''; //获取作者信息
|
|
|
|
|
$author = $this->Operator_model->get_author_nikename($information->ic_author);
|
|
|
|
|
$data_H1['author'] = $author; //获取作者信息
|
|
|
|
|
$data_H1['author_nickname'] = $information->ic_author; //原始作者,可能是在线作者等
|
|
|
|
|
if(!empty($author)){
|
|
|
|
|
$data_H1['author']=$author->OPI_FirstName;
|
|
|
|
|
}else{
|
|
|
|
|
$author_web =$this->Infoauthors_model->detail_by_id($information->ic_author); //原始作者,可能是在线作者等
|
|
|
|
|
if(!empty($author_web)){
|
|
|
|
|
$data_H1['author'] = $author_web->a_name;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$data_H1['ic_title'] = $information->ic_title;
|
|
|
|
|
$data_H1['ic_photo'] = $meta_addon_picture;//$information->ic_photo; 用额外设置的图片替代
|
|
|
|
|
$data_H1['breadcrumb_data'] = $breadcrumb_data;
|
|
|
|
@ -1194,9 +1209,16 @@ class Information extends CI_Controller
|
|
|
|
|
$breadcrumb_data = $this->Information_model->get_breadcrumb_data($information->is_id, $information->is_path, $group_map);
|
|
|
|
|
$ads_by_google = !empty(get_meta($information->ic_id, 'meta_google_ad_article'));
|
|
|
|
|
$data['ads_by_google'] = $ads_by_google;
|
|
|
|
|
$author = $this->Operator_model->get_author_nikename($information->ic_author); //获取作者信息
|
|
|
|
|
$data['author'] = $author;
|
|
|
|
|
$data['author_nickname'] = $information->ic_author; //原始作者,可能是在线作者等
|
|
|
|
|
$data['author'] = ''; //获取作者信息
|
|
|
|
|
$author = $this->Operator_model->get_author_nikename($information->ic_author);
|
|
|
|
|
if(!empty($author)){
|
|
|
|
|
$data['author']=$author->OPI_FirstName;
|
|
|
|
|
}else{
|
|
|
|
|
$author_web =$this->Infoauthors_model->detail_by_id($information->ic_author); //原始作者,可能是在线作者等
|
|
|
|
|
if(!empty($author_web)){
|
|
|
|
|
$data['author'] = $author_web->a_name;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$data['breadcrumb_data'] = $breadcrumb_data;
|
|
|
|
|
$template_H1 = $this->load->view($template_path . '-h1', $data, TRUE);
|
|
|
|
|
$template = str_replace('<!--@HEAD_1@-->', $template_H1, $template);
|
|
|
|
|