CH火车信息页面添加搜索框

hotfix/paypal-note
赵鹏 4 years ago
parent 758cfc864c
commit b3335fda31

@ -593,6 +593,14 @@ class Information extends CI_Controller
$template = str_replace('<!--@DESCRIPTION@-->', $information->ic_seo_description, $template);
$template = str_replace('<!--@KEYWORDS@-->', $information->ic_seo_keywords, $template);
$template = str_replace('<!--@CANONICAL@-->', $this->config->item('site_url') . $information->ic_url, $template);
//火车票搜索框添加
if ($information->is_parent_id == "278035939"){
//本地测试的火车父类ID为278035939 。网前为278008234
$template_TrainSearch = $this->load->view($template_path . '-train-detail',null, TRUE);
$template = str_replace('<!--@TRAIN-SEARCH@-->', $template_TrainSearch, $template);
}
//非产品页面
$meta_product_code=get_meta($information->ic_id, 'meta_product_code');
if (empty($meta_product_code)) {

@ -172,6 +172,7 @@
<div id="main_content_pc">
<!--@HEAD_1@-->
<!--@TRAIN-SEARCH@-->
<!--@CUSTOM-CONENT@-->
</div>

@ -154,6 +154,7 @@
<!--@HEAD_1@-->
<div id="main_content_mobile">
<!--@TRAIN-SEARCH@-->
<!--@CUSTOM-CONENT@-->
<!--@Match-Content-GOOGLE###ycc###@-->

Loading…
Cancel
Save