|
|
|
|
@ -961,6 +961,12 @@ class Information extends CI_Controller
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//顶部全屏大图
|
|
|
|
|
if ($device == 'mobile') { //移动端读取移动大图
|
|
|
|
|
$meta_addon_picture = get_meta($information->ic_id, 'meta_addon_picture_mobile');
|
|
|
|
|
} else {
|
|
|
|
|
$meta_addon_picture = get_meta($information->ic_id, 'meta_addon_picture');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//非产品页面
|
|
|
|
|
$meta_product_code = get_meta($information->ic_id, 'meta_product_code');
|
|
|
|
|
@ -973,7 +979,7 @@ class Information extends CI_Controller
|
|
|
|
|
$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['ic_photo'] = $meta_addon_picture;//$information->ic_photo; 用额外设置的图片替代
|
|
|
|
|
$data_H1['breadcrumb_data'] = $breadcrumb_data;
|
|
|
|
|
$data_H1['ads_by_google'] = $ads_by_google;
|
|
|
|
|
$template_H1 = $this->load->view($template_path . '-h1', $data_H1, TRUE);
|
|
|
|
|
@ -1027,28 +1033,7 @@ class Information extends CI_Controller
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//顶部全屏大图
|
|
|
|
|
if ($device == 'mobile') { //移动端读取移动大图
|
|
|
|
|
$meta_addon_picture = get_meta($information->ic_id, 'meta_addon_picture_mobile');
|
|
|
|
|
} else {
|
|
|
|
|
$meta_addon_picture = get_meta($information->ic_id, 'meta_addon_picture');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$meta_addon_picture_url = get_meta($information->ic_id, 'meta_addon_picture_url');
|
|
|
|
|
if (!empty($meta_addon_picture)) {
|
|
|
|
|
if (!empty($meta_addon_picture_url)) {
|
|
|
|
|
// $template = str_replace('<!--@TOP-BANNER@-->', '<div class="detailtopbanner"><a href="' . $meta_addon_picture_url . '"> <img class="img-responsive" alt="' . $information->ic_title . '" src="' . $meta_addon_picture . '"></a></div>', $template);
|
|
|
|
|
} else {
|
|
|
|
|
// $template = str_replace('<!--@TOP-BANNER@-->', '<div class="detailtopbanner"><img class="img-responsive" alt="' . $information->ic_title . '" src="' . $meta_addon_picture . '">' . $template_TrainSearch . '</div>', $template);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//顶部视频
|
|
|
|
|
// $meta_news_video = get_meta($information->ic_id, 'meta_news_video');
|
|
|
|
|
// $meta_video_picture = get_meta($information->ic_id, 'meta_video_picture');
|
|
|
|
|
// if (!empty($meta_news_video) && !empty($meta_video_picture)) {
|
|
|
|
|
// $template = str_replace('<!--@TOP-VIDEO@-->', '<div class="detailtopbanner"><video autoplay="" controls="controls" id="bgvid" poster="' . $meta_video_picture . '" src="' . $meta_news_video . '" style="position: inherit;"> </video></div>', $template);
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
if (is_file('D:/wwwroot/origin-www.globalhighlights.com/css/gh-global.css')) {//主样式表,内联模式,优先读取本地,没有在从网络读取,为了加速
|
|
|
|
|
$main_css_string = compress_css(file_get_contents('D:/wwwroot/origin-www.globalhighlights.com/css/gh-global.css'));
|
|
|
|
|
|