|
|
|
@ -678,12 +678,6 @@ class Information extends CI_Controller
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//AMP更新和生成 end
|
|
|
|
|
//为新闻添加默认发布时间
|
|
|
|
|
$meta_news_createdate = get_meta($information->ic_id, 'meta_news_createdate');
|
|
|
|
|
if (empty ($meta_news_createdate)) {
|
|
|
|
|
add_meta($information->ic_id, 'meta_news_createdate', date('m/d/Y', time()));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//如果URL有修改也删除静态文件
|
|
|
|
|
if ($this->input->post('ic_url') != $information->ic_url) {
|
|
|
|
@ -1045,6 +1039,7 @@ class Information extends CI_Controller
|
|
|
|
|
$data_H1 = array();
|
|
|
|
|
$data_H1['infocategory'] = $this->Information_model->get_detail_by_path($information->is_path, 1); //信息所属分类,获取信息顶级节点内容
|
|
|
|
|
$data_H1['author'] = ''; //获取作者信息
|
|
|
|
|
$data_H1['meta_news_createdate'] = get_meta($information->ic_id, 'meta_news_createdate');
|
|
|
|
|
$author = $this->Operator_model->get_author_nikename($information->ic_author);
|
|
|
|
|
if (!empty ($author)) {
|
|
|
|
|
$data_H1['author'] = $author->OPI_FirstName;
|
|
|
|
@ -1723,6 +1718,7 @@ class Information extends CI_Controller
|
|
|
|
|
$data_H1 = array();
|
|
|
|
|
$data_H1['infocategory'] = $this->Information_model->get_detail_by_path($information->is_path, 1); //信息所属分类,获取信息顶级节点内容
|
|
|
|
|
$data_H1['author'] = ''; //获取作者信息
|
|
|
|
|
$data_H1['meta_news_createdate'] = get_meta($information->ic_id, 'meta_news_createdate');
|
|
|
|
|
$author = $this->Operator_model->get_author_nikename($information->ic_author);
|
|
|
|
|
|
|
|
|
|
if (!empty ($author)) {
|
|
|
|
|