|
|
@ -813,7 +813,14 @@ class Information extends CI_Controller
|
|
|
|
$meta_addon_picture_url = get_meta($information->ic_id, 'meta_addon_picture_url');
|
|
|
|
$meta_addon_picture_url = get_meta($information->ic_id, 'meta_addon_picture_url');
|
|
|
|
if($device=='mobile'){//移动端读取移动大图
|
|
|
|
if($device=='mobile'){//移动端读取移动大图
|
|
|
|
$meta_addon_picture = get_meta($information->ic_id, 'meta_addon_picture_mobile');
|
|
|
|
$meta_addon_picture = get_meta($information->ic_id, 'meta_addon_picture_mobile');
|
|
|
|
$bannerImg = '<img class="img-responsive" alt="' . $information->ic_title . '" src="' . $meta_addon_picture . '">';
|
|
|
|
$bannerImg = '<img class="img-responsive" alt="' . $information->ic_title . '" src="' . $meta_addon_picture . '">';
|
|
|
|
|
|
|
|
$meta_addon_picture_text = get_meta($information->ic_id,'meta_addon_picture_text');
|
|
|
|
|
|
|
|
if(!empty($meta_addon_picture_url)){
|
|
|
|
|
|
|
|
$ImgText = '<div class="carousel-caption"><p class="ads-title"><a href="'.$meta_addon_picture_url.'">'.$meta_addon_picture_text.'</a></p></div>';
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
$ImgText = '<div class="carousel-caption"><p class="ads-title">'.$meta_addon_picture_text.'</p></div>';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
$meta_addon_picture = get_meta($information->ic_id, 'meta_addon_picture');
|
|
|
|
$meta_addon_picture = get_meta($information->ic_id, 'meta_addon_picture');
|
|
|
|
$bannerImg = '<img class="img-responsive" alt="' . $information->ic_title . '" src="' . $meta_addon_picture . '">';
|
|
|
|
$bannerImg = '<img class="img-responsive" alt="' . $information->ic_title . '" src="' . $meta_addon_picture . '">';
|
|
|
@ -892,7 +899,7 @@ class Information extends CI_Controller
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//列表js
|
|
|
|
//列表js
|
|
|
|
if ($meta_ct_page_type=="daytripindex" || $meta_ct_page_type=="tourindex"){
|
|
|
|
if (in_array($meta_ct_page_type,array('daytripindex','tourindex','attractionindex'))){
|
|
|
|
$addonJs .= '<script src="/js/mobile-first/getlist.js"></script>';
|
|
|
|
$addonJs .= '<script src="/js/mobile-first/getlist.js"></script>';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -913,14 +920,23 @@ class Information extends CI_Controller
|
|
|
|
|
|
|
|
|
|
|
|
//页面传递参数
|
|
|
|
//页面传递参数
|
|
|
|
$passParam = "";
|
|
|
|
$passParam = "";
|
|
|
|
if ($meta_ct_page_type=="daytripindex" || $meta_ct_page_type=="tourindex"){
|
|
|
|
if (in_array($meta_ct_page_type,array("daytripindex","tourindex","attractionindex")) ){ //一日游和线路列表
|
|
|
|
//产品首页
|
|
|
|
//产品首页
|
|
|
|
$meta_ct_page_value = get_meta($information->ic_id,'meta_ct_page_value');
|
|
|
|
$meta_ct_page_value = get_meta($information->ic_id,'meta_ct_page_value');
|
|
|
|
$passParam .= '<input type="hidden" name="param_city" id="param_city" value="'.$meta_ct_page_value.'"/>';
|
|
|
|
|
|
|
|
|
|
|
|
if (in_array($meta_ct_page_type,array("attractionindex") )){
|
|
|
|
|
|
|
|
//旧信息id,景点等信息类
|
|
|
|
|
|
|
|
$passParam .= '<input type="hidden" name="param_old_pid" id="param_old_pid" value="'.$meta_ct_page_value.'"/>';
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
//城市名称,产品类用
|
|
|
|
|
|
|
|
$passParam .= '<input type="hidden" name="param_city" id="param_city" value="'.$meta_ct_page_value.'"/>';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//加信息平台的is_id
|
|
|
|
//加信息平台的is_id
|
|
|
|
$passParam .= '<input type="hidden" name="param_parentId" id="param_parentId" value="'.$information->is_id.'"/>';
|
|
|
|
$passParam .= '<input type="hidden" name="param_parentId" id="param_parentId" value="'.$information->is_id.'"/>';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$data["passParam"] = $passParam;
|
|
|
|
$data["passParam"] = $passParam;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|