|
|
|
@ -714,13 +714,20 @@ class Information extends CI_Controller
|
|
|
|
|
$template = str_replace('<!--@KEYWORDS@-->', $information->ic_seo_keywords, $template);
|
|
|
|
|
$template = str_replace('<!--@CANONICAL@-->', $this->config->item('site_url') . $information->ic_url, $template);
|
|
|
|
|
|
|
|
|
|
//顶部全屏大图
|
|
|
|
|
if ($device == 'mobile') { //移动端读取移动大图
|
|
|
|
|
$data['meta_addon_picture'] = get_meta($information->ic_id, 'meta_addon_picture_mobile');
|
|
|
|
|
} else {
|
|
|
|
|
$data['meta_addon_picture'] = get_meta($information->ic_id, 'meta_addon_picture');
|
|
|
|
|
//顶部视频
|
|
|
|
|
$data['meta_news_video'] = get_meta($information->ic_id, 'meta_news_video');
|
|
|
|
|
$data['meta_video_picture'] = get_meta($information->ic_id, 'meta_video_picture');
|
|
|
|
|
if (empty($data['meta_news_video']) && empty($data['meta_video_picture'])) {
|
|
|
|
|
//没有顶部视频时候才读取全屏大图
|
|
|
|
|
//顶部全屏大图
|
|
|
|
|
if ($device == 'mobile') { //移动端读取移动大图
|
|
|
|
|
$data['meta_addon_picture'] = get_meta($information->ic_id, 'meta_addon_picture_mobile');
|
|
|
|
|
} else {
|
|
|
|
|
$data['meta_addon_picture'] = get_meta($information->ic_id, 'meta_addon_picture');
|
|
|
|
|
}
|
|
|
|
|
$data['meta_addon_picture_url'] = get_meta($information->ic_id, 'meta_addon_picture_url');
|
|
|
|
|
}
|
|
|
|
|
$data['meta_addon_picture_url'] = get_meta($information->ic_id, 'meta_addon_picture_url');
|
|
|
|
|
|
|
|
|
|
$data['author'] = $this->Operator_model->get_author_nikename($information->ic_author); //获取作者信息
|
|
|
|
|
$template_H1 = $this->load->view($template_path . '-h1', $data, TRUE);
|
|
|
|
|
$template = str_replace('<!--@HEAD_1@-->', $template_H1, $template);
|
|
|
|
|