|
|
@ -564,7 +564,8 @@ class Information extends CI_Controller
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public function update_www_cache($ic_id){
|
|
|
|
public function update_www_cache($ic_id)
|
|
|
|
|
|
|
|
{
|
|
|
|
$information = $this->Information_model->detail_by_ic_id($ic_id);
|
|
|
|
$information = $this->Information_model->detail_by_ic_id($ic_id);
|
|
|
|
if (empty($information)) {
|
|
|
|
if (empty($information)) {
|
|
|
|
echo json_encode(array('name' => 'no', 'data' => '找不到这个页面'));
|
|
|
|
echo json_encode(array('name' => 'no', 'data' => '找不到这个页面'));
|
|
|
@ -674,7 +675,7 @@ class Information extends CI_Controller
|
|
|
|
$meta_news_video = get_meta($information->ic_id, 'meta_news_video');
|
|
|
|
$meta_news_video = get_meta($information->ic_id, 'meta_news_video');
|
|
|
|
$meta_video_picture = get_meta($information->ic_id, 'meta_video_picture');
|
|
|
|
$meta_video_picture = get_meta($information->ic_id, 'meta_video_picture');
|
|
|
|
if (!empty($meta_news_video) && !empty($meta_video_picture)) {
|
|
|
|
if (!empty($meta_news_video) && !empty($meta_video_picture)) {
|
|
|
|
$template = str_replace('<!--@TOP-VIDEO@-->', '<div class="videoBg" style="margin-top: 120px;"><video autoplay="" controls="controls" id="bgvid" poster="'.$meta_video_picture.'" src="'.$meta_news_video.'" style="position: inherit;"> </video></div>', $template);
|
|
|
|
$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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//额外样式
|
|
|
|
//额外样式
|
|
|
|
$meta_addon_css = get_meta($information->ic_id, 'meta_addon_css');
|
|
|
|
$meta_addon_css = get_meta($information->ic_id, 'meta_addon_css');
|
|
|
@ -840,6 +841,26 @@ class Information extends CI_Controller
|
|
|
|
'/aboutus/no-shops.htm',
|
|
|
|
'/aboutus/no-shops.htm',
|
|
|
|
'/aboutus/company-history.htm'
|
|
|
|
'/aboutus/company-history.htm'
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
$data['info_howtoplan'] = $this->Information_model->Detail('/travelguide/article-private-tour-vs-group-tour.htm');
|
|
|
|
|
|
|
|
if (!empty($data['info_howtoplan'])) {
|
|
|
|
|
|
|
|
$data['info_howtoplan_root'] = $this->Information_model->get_detail_by_path($data['info_howtoplan']->is_path, 1);//信息所属分类,获取信息顶级节点内容
|
|
|
|
|
|
|
|
$data['info_howtoplan']->ic_photo = $this->set_photo_content($data['info_howtoplan']->ic_photo, $data['info_howtoplan']->ic_content);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$data['info_besttime'] = $this->Information_model->Detail('/travelguide/how-chinahighlights-selects-your-hotel.htm');
|
|
|
|
|
|
|
|
if (!empty($data['info_besttime'])) {
|
|
|
|
|
|
|
|
$data['info_besttime_root'] = $this->Information_model->get_detail_by_path($data['info_besttime']->is_path, 1);//信息所属分类,获取信息顶级节点内容
|
|
|
|
|
|
|
|
$data['info_besttime']->ic_photo = $this->set_photo_content($data['info_besttime']->ic_photo, $data['info_besttime']->ic_content);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$data['info_topthings'] = $this->Information_model->Detail('/aboutus/who-recommended.htm');
|
|
|
|
|
|
|
|
if (!empty($data['info_topthings'])) {
|
|
|
|
|
|
|
|
$data['info_topthings_root'] = $this->Information_model->get_detail_by_path($data['info_topthings']->is_path, 1);//信息所属分类,获取信息顶级节点内容
|
|
|
|
|
|
|
|
$data['info_topthings']->ic_photo = $this->set_photo_content($data['info_topthings']->ic_photo, $data['info_topthings']->ic_content);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$data['info_hotel'] = $this->Information_model->Detail('/aboutus/no-shops.htm');
|
|
|
|
|
|
|
|
if (!empty($data['info_hotel'])) {
|
|
|
|
|
|
|
|
$data['info_hotel_root'] = $this->Information_model->get_detail_by_path($data['info_hotel']->is_path, 1);//信息所属分类,获取信息顶级节点内容
|
|
|
|
|
|
|
|
$data['info_hotel']->ic_photo = $this->set_photo_content($data['info_hotel']->ic_photo, $data['info_hotel']->ic_content);
|
|
|
|
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
}
|
|
|
|
}
|
|
|
|