|
|
@ -2461,7 +2461,18 @@ class Information extends CI_Controller
|
|
|
|
$meta_ct_page_trainform = get_meta($information->ic_id, 'meta_ct_page_trainform'); //是否插入火车票搜索框
|
|
|
|
$meta_ct_page_trainform = get_meta($information->ic_id, 'meta_ct_page_trainform'); //是否插入火车票搜索框
|
|
|
|
$template_TrainDetailSearch = "";
|
|
|
|
$template_TrainDetailSearch = "";
|
|
|
|
if ($meta_ct_page_trainform == "yes" || $information->is_parent_id == "278014609") {
|
|
|
|
if ($meta_ct_page_trainform == "yes" || $information->is_parent_id == "278014609") {
|
|
|
|
$template_TrainDetailSearch = $this->load->view($template_path . '-train-detail', null, true);
|
|
|
|
$meta_train_city = get_meta($information->ic_id, 'meta_train_city'); //默认的出发及目的地城市 , beijing|shanghai
|
|
|
|
|
|
|
|
$data_TrainCity = array();
|
|
|
|
|
|
|
|
$data_TrainCity["from"] = "";
|
|
|
|
|
|
|
|
$data_TrainCity["to"] = "";
|
|
|
|
|
|
|
|
if (!empty ($meta_train_city)) {
|
|
|
|
|
|
|
|
if (strpos($meta_train_city, '|') !== false) {
|
|
|
|
|
|
|
|
$arrTrainCity = explode('|', $meta_train_city);
|
|
|
|
|
|
|
|
$data_TrainCity["from"] = $arrTrainCity[0];
|
|
|
|
|
|
|
|
$data_TrainCity["to"] = $arrTrainCity[1];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$template_TrainDetailSearch = $this->load->view($template_path . '-train-detail', $data_TrainCity, true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* 详细内容 */
|
|
|
|
/* 详细内容 */
|
|
|
@ -2485,8 +2496,14 @@ class Information extends CI_Controller
|
|
|
|
// },$ic_content);
|
|
|
|
// },$ic_content);
|
|
|
|
#enregion
|
|
|
|
#enregion
|
|
|
|
|
|
|
|
|
|
|
|
/** 替换H1加面包屑,加作者 */
|
|
|
|
/** 替换H1加面包屑,加作者. 2024-4-26不在H1放火车搜索框,改为替换标签 */
|
|
|
|
$ic_content = preg_replace('/<h1>(.*)<\/h1>/i', $crumb . "\r\n" . '<H1>$1</H1>' . "\r\n" . $str_author . $template_TrainDetailSearch . "\r\n", $ic_content, 1);
|
|
|
|
//$ic_content = preg_replace('/<h1>(.*)<\/h1>/i', $crumb . "\r\n" . '<H1>$1</H1>' . "\r\n" . $str_author . $template_TrainDetailSearch . "\r\n", $ic_content, 1);
|
|
|
|
|
|
|
|
$ic_content = preg_replace('/<h1>(.*)<\/h1>/i', $crumb . "\r\n" . '<H1>$1</H1>' . "\r\n" . $str_author . "\r\n", $ic_content, 1);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**替换火车标签 */
|
|
|
|
|
|
|
|
if (strpos($ic_content, '<!--@TRAINSEARCH-FORM@-->') !== false) {
|
|
|
|
|
|
|
|
$ic_content = str_replace('<!--@ZODIAC-CALC@-->', $template_TrainDetailSearch, $ic_content);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**替换zodiac标签 */
|
|
|
|
/**替换zodiac标签 */
|
|
|
|
if (strpos($ic_content, '<!--@ZODIAC-CALC@-->') !== false) {
|
|
|
|
if (strpos($ic_content, '<!--@ZODIAC-CALC@-->') !== false) {
|
|
|
|