|
|
|
@ -1017,8 +1017,25 @@ class Information extends CI_Controller
|
|
|
|
|
$information->ic_content
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 火车票首页搜索框 --zp
|
|
|
|
|
$template_TrainSearch = "";
|
|
|
|
|
if ($information->ic_url == "/china-trains/hometest.htm" || $information->ic_url == "/china-trains/") {
|
|
|
|
|
$template_TrainSearch = $this->load->view($template_path . '-train-index', null, true);
|
|
|
|
|
$information->ic_content = str_replace(
|
|
|
|
|
'<!--@TRAIN-INDEX-SEARCHFORM@-->',
|
|
|
|
|
$template_TrainSearch,
|
|
|
|
|
$information->ic_content
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
if ($device == "mobile") {
|
|
|
|
|
//手机端的搜索框直接显示,不再加背景图,这样可以保证CLS分数。
|
|
|
|
|
$template = str_replace('<!--@TOP-BANNER@-->', '<div class="detailtopbanner">' . $template_TrainSearch . '</div>', $template);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//火车票搜索框添加 -- zp
|
|
|
|
|
if ($information->is_parent_id == "278008234") {
|
|
|
|
|
if ($information->is_parent_id == "278008234" && $information->ic_url != "/china-trains/") { //20240403 字节
|
|
|
|
|
//本地测试的火车父类ID为:278035939 。网前为:278008234
|
|
|
|
|
$meta_train_city = get_meta($information->ic_id, 'meta_train_city'); //默认的出发及目的地城市 , beijing|shanghai
|
|
|
|
|
$data_TrainCity = array();
|
|
|
|
@ -1329,15 +1346,7 @@ class Information extends CI_Controller
|
|
|
|
|
$meta_addon_picture = get_meta($information->ic_id, 'meta_addon_picture');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 火车票首页搜索框 --zp
|
|
|
|
|
$template_TrainSearch = "";
|
|
|
|
|
if ($information->ic_url == "/china-trains/hometest.htm" || $information->ic_url == "/china-trains/") {
|
|
|
|
|
$template_TrainSearch = $this->load->view($template_path . '-train-index', null, true);
|
|
|
|
|
if ($device == "mobile") {
|
|
|
|
|
//手机端的搜索框直接显示,不再加背景图,这样可以保证CLS分数。
|
|
|
|
|
$template = str_replace('<!--@TOP-BANNER@-->', '<div class="detailtopbanner">' . $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');
|
|
|
|
|