diff --git a/application/controllers/information.php b/application/controllers/information.php index 277d51b0..99f1945b 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -1490,6 +1490,7 @@ class Information extends CI_Controller $meta_ct_page_type = ""; $meta_ct_page_type = get_meta($information->ic_id, 'meta_ct_page_type'); //页面类型 $meta_product_code = get_meta($information->ic_id, 'meta_product_code'); //绑定的产品编号 + $template_path = 'mobile_first/' . $this->config->item('site_code'); //模板位置 //面包屑 $crumb = ""; @@ -1511,9 +1512,17 @@ class Information extends CI_Controller $str_author = '
'; } + //火车票详细页搜索框添加 -- zp + $meta_ct_page_trainform = get_meta($information->ic_id, 'meta_ct_page_trainform'); //是否插入火车票搜索框 + if ($meta_ct_page_trainform == "yes" || $information->is_parent_id == "278014609") { + $template_TrainSearch = $this->load->view($template_path . '-train-detail', null, TRUE); + } + /* 详细内容 */ $ic_content = $information->ic_content; - // /**替换详细内容里面的价格 + + #region old replace + // /**替换详细内容里面的价格 /* 直接使用fetch来动态获取价格,这样不用替换标签,直接录标签 // * // 一日游价格标签, "" 或者 逗号后面是人数 // * //精华线路标签"" @@ -1528,9 +1537,10 @@ class Information extends CI_Controller // $matchItem = $match[1]; // return '';; // },$ic_content); + #enregion /** 替换H1加面包屑,加作者 */ - $ic_content = preg_replace('/