|
|
@ -633,6 +633,7 @@ class Information extends CI_Controller
|
|
|
|
if(empty($data['info_howtoplan'])){//找不到对应信息则显示备用
|
|
|
|
if(empty($data['info_howtoplan'])){//找不到对应信息则显示备用
|
|
|
|
$data['info_howtoplan']=$this->Information_model->Detail('/travelguide/plan-first-trip.htm');
|
|
|
|
$data['info_howtoplan']=$this->Information_model->Detail('/travelguide/plan-first-trip.htm');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$data['info_howtoplan_root']=$this->Information_model->get_detail_by_path($data['info_howtoplan']->is_path,1);//信息所属分类,获取信息顶级节点内容
|
|
|
|
if(!empty($data['info_howtoplan'])){
|
|
|
|
if(!empty($data['info_howtoplan'])){
|
|
|
|
if(empty($data['info_howtoplan']->ic_photo)){
|
|
|
|
if(empty($data['info_howtoplan']->ic_photo)){
|
|
|
|
$images=get_image_url_by_source($data['info_howtoplan']->ic_content);
|
|
|
|
$images=get_image_url_by_source($data['info_howtoplan']->ic_content);
|
|
|
@ -648,6 +649,7 @@ class Information extends CI_Controller
|
|
|
|
if(empty($data['info_besttime'])){
|
|
|
|
if(empty($data['info_besttime'])){
|
|
|
|
$data['info_besttime']=$this->Information_model->Detail('/weather/china-best-times.htm');
|
|
|
|
$data['info_besttime']=$this->Information_model->Detail('/weather/china-best-times.htm');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$data['info_besttime_root']=$this->Information_model->get_detail_by_path($data['info_besttime']->is_path,1);//信息所属分类,获取信息顶级节点内容
|
|
|
|
if(!empty($data['info_besttime'])){
|
|
|
|
if(!empty($data['info_besttime'])){
|
|
|
|
if(empty($data['info_besttime']->ic_photo)){
|
|
|
|
if(empty($data['info_besttime']->ic_photo)){
|
|
|
|
$images=get_image_url_by_source($data['info_besttime']->ic_content);
|
|
|
|
$images=get_image_url_by_source($data['info_besttime']->ic_content);
|
|
|
@ -663,6 +665,7 @@ class Information extends CI_Controller
|
|
|
|
if(empty($data['info_topthings'])){
|
|
|
|
if(empty($data['info_topthings'])){
|
|
|
|
$data['info_topthings']=$this->Information_model->Detail('/travelguide/article-top-china-tourist-destination.htm');
|
|
|
|
$data['info_topthings']=$this->Information_model->Detail('/travelguide/article-top-china-tourist-destination.htm');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$data['info_topthings_root']=$this->Information_model->get_detail_by_path($data['info_topthings']->is_path,1);//信息所属分类,获取信息顶级节点内容
|
|
|
|
if(!empty($data['info_topthings'])){
|
|
|
|
if(!empty($data['info_topthings'])){
|
|
|
|
if(empty($data['info_topthings']->ic_photo)){
|
|
|
|
if(empty($data['info_topthings']->ic_photo)){
|
|
|
|
$images=get_image_url_by_source($data['info_topthings']->ic_content);
|
|
|
|
$images=get_image_url_by_source($data['info_topthings']->ic_content);
|
|
|
@ -681,6 +684,7 @@ class Information extends CI_Controller
|
|
|
|
if(empty($data['info_hotel'])){
|
|
|
|
if(empty($data['info_hotel'])){
|
|
|
|
$data['info_hotel']=$this->Information_model->Detail('/travelguide/most-beautiful-places.htm');
|
|
|
|
$data['info_hotel']=$this->Information_model->Detail('/travelguide/most-beautiful-places.htm');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$data['info_hotel_root']=$this->Information_model->get_detail_by_path($data['info_hotel']->is_path,1);//信息所属分类,获取信息顶级节点内容
|
|
|
|
if(!empty($data['info_hotel'])){
|
|
|
|
if(!empty($data['info_hotel'])){
|
|
|
|
if(empty($data['info_hotel']->ic_photo)){
|
|
|
|
if(empty($data['info_hotel']->ic_photo)){
|
|
|
|
$images=get_image_url_by_source($data['info_hotel']->ic_content);
|
|
|
|
$images=get_image_url_by_source($data['info_hotel']->ic_content);
|
|
|
|