|
|
|
|
@ -2728,21 +2728,19 @@ class Information extends CI_Controller {
|
|
|
|
|
$ads_by_google = ! empty(get_meta($information->ic_id, 'meta_google_ad_article'));
|
|
|
|
|
$data['meta_news_createdate'] = $this->get_publish_date_in_6_month($information);
|
|
|
|
|
$data['ads_by_google'] = $ads_by_google;
|
|
|
|
|
$data['author_name'] = ''; //获取作者信息
|
|
|
|
|
$data['author'] = ''; //获取作者信息
|
|
|
|
|
$author_url = '';
|
|
|
|
|
$author = $this->Operator_model->get_author_nikename($information->ic_author);
|
|
|
|
|
$data['author_info'] = ['url' => '', 'avatar' => '', 'expertise' => ''];
|
|
|
|
|
|
|
|
|
|
if (!empty($author)) {
|
|
|
|
|
$data['author_name'] = $author->OPI_FirstName;
|
|
|
|
|
$data['OPI_Code'] = $author->OPI_Code;
|
|
|
|
|
if (! empty($author)) {
|
|
|
|
|
$data['author'] = $author->OPI_FirstName;
|
|
|
|
|
$data['OPI_Code'] = $author->OPI_Code;
|
|
|
|
|
$data['author_url'] = $this->get_author_url('www.highlightstravel.com', $author->OPI_Code);
|
|
|
|
|
$author_url = $this->get_author_url('www.highlightstravel.com', $author->OPI_Code);
|
|
|
|
|
|
|
|
|
|
$author_info = $this->get_author_info('thailandhighlights.com', $author->OPI_Code);
|
|
|
|
|
$data['author_info'] = $author_info;
|
|
|
|
|
} else {
|
|
|
|
|
$author_web = $this->Infoauthors_model->detail_by_id($information->ic_author); //原始作者,可能是在线作者等
|
|
|
|
|
if (!empty($author_web)) {
|
|
|
|
|
$data['author_name'] = $author_web->a_name;
|
|
|
|
|
$author_info = ['url' => '', 'avatar' => '', 'expertise' => ''];
|
|
|
|
|
if (! empty($author_web)) {
|
|
|
|
|
$data['author'] = $author_web->a_name;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$data['breadcrumb_data'] = $breadcrumb_data;
|
|
|
|
|
|