|
|
@ -951,7 +951,19 @@ class Information extends CI_Controller
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$breadcrumb_data = $this->Information_model->get_path_exclude_self($information->is_id, $information->is_path);
|
|
|
|
|
|
|
|
|
|
|
|
// GH Home 下层节点名称和链接映射
|
|
|
|
|
|
|
|
$group_map = [
|
|
|
|
|
|
|
|
278009289 => [
|
|
|
|
|
|
|
|
'ic_url' => '/destinations',
|
|
|
|
|
|
|
|
'ic_url_title' => 'Destinations'
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
278009290 => [
|
|
|
|
|
|
|
|
'ic_url' => '/about',
|
|
|
|
|
|
|
|
'ic_url_title' => 'About Us'
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
$breadcrumb_data = $this->Information_model->get_breadcrumb_data($information->is_id, $information->is_path, $group_map);
|
|
|
|
|
|
|
|
|
|
|
|
$breadcrumb_structured_data_content = $this->load->view(
|
|
|
|
$breadcrumb_structured_data_content = $this->load->view(
|
|
|
|
$template_path . '-structured-data-breadcrumb',
|
|
|
|
$template_path . '-structured-data-breadcrumb',
|
|
|
@ -1368,7 +1380,9 @@ class Information extends CI_Controller
|
|
|
|
$data["DESCRIPTION"] = $information->ic_seo_description;
|
|
|
|
$data["DESCRIPTION"] = $information->ic_seo_description;
|
|
|
|
$data["KEYWORDS"] = $information->ic_seo_keywords;
|
|
|
|
$data["KEYWORDS"] = $information->ic_seo_keywords;
|
|
|
|
$data["CANONICAL"] = $this->config->item('site_url') . $information->ic_url;
|
|
|
|
$data["CANONICAL"] = $this->config->item('site_url') . $information->ic_url;
|
|
|
|
|
|
|
|
$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'); //绑定的产品编号
|
|
|
|
|
|
|
|
|
|
|
|
//面包屑
|
|
|
|
//面包屑
|
|
|
|
$crumb = "";
|
|
|
|
$crumb = "";
|
|
|
@ -1381,6 +1395,15 @@ class Information extends CI_Controller
|
|
|
|
$crumb .= "</div>";
|
|
|
|
$crumb .= "</div>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$data["crumb"] = $crumb;
|
|
|
|
$data["crumb"] = $crumb;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//作者字符串,信息页或者城市天气页加载 2022-7-26
|
|
|
|
|
|
|
|
$str_author="";
|
|
|
|
|
|
|
|
$author = $this->Operator_model->get_author_nikename($information->ic_author);
|
|
|
|
|
|
|
|
if ((empty($meta_product_code) && !($meta_ct_page_type !== false && $meta_ct_page_type != "")) || $meta_ct_page_type=="weatherpage"){
|
|
|
|
|
|
|
|
$OPI_FirstName = !empty($author)?$author->OPI_FirstName:'author nickname';
|
|
|
|
|
|
|
|
$str_author = '<div class="authorupdate">Written by <strong>'.$OPI_FirstName.'</strong> Updated <span>' . date("M. j, Y",strtotime($information->ic_datetime)) . '</span></div>' ;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* 详细内容 */
|
|
|
|
/* 详细内容 */
|
|
|
|
$ic_content = $information->ic_content;
|
|
|
|
$ic_content = $information->ic_content;
|
|
|
|
// /**替换详细内容里面的价格
|
|
|
|
// /**替换详细内容里面的价格
|
|
|
@ -1399,8 +1422,8 @@ class Information extends CI_Controller
|
|
|
|
// return '<span class="js_getTourPrice" data="'.$matchItem.'"></span>';;
|
|
|
|
// return '<span class="js_getTourPrice" data="'.$matchItem.'"></span>';;
|
|
|
|
// },$ic_content);
|
|
|
|
// },$ic_content);
|
|
|
|
|
|
|
|
|
|
|
|
/** 替换H1加面包屑 */
|
|
|
|
/** 替换H1加面包屑,加作者 */
|
|
|
|
$ic_content = preg_replace('/<h1>(.*)<\/h1>/i', $crumb . "\r\n" . '<H1>$1</H1>', $ic_content, 1);
|
|
|
|
$ic_content = preg_replace('/<h1>(.*)<\/h1>/i', $crumb . "\r\n" . '<H1>$1</H1>' . "\r\n" .$str_author, $ic_content, 1);
|
|
|
|
|
|
|
|
|
|
|
|
/**替换zodiac标签 */
|
|
|
|
/**替换zodiac标签 */
|
|
|
|
if (strpos($ic_content, '<!--@ZODIAC-CALC@-->') !== false){
|
|
|
|
if (strpos($ic_content, '<!--@ZODIAC-CALC@-->') !== false){
|
|
|
@ -1476,9 +1499,8 @@ class Information extends CI_Controller
|
|
|
|
//总JS:为了方便以后js好维护,必须的把一些公用的JS统计到一个文件。但是又不是所有页面都需要调用这个基础js,所以必须在这里进行判断
|
|
|
|
//总JS:为了方便以后js好维护,必须的把一些公用的JS统计到一个文件。但是又不是所有页面都需要调用这个基础js,所以必须在这里进行判断
|
|
|
|
$addBaseJs = false;
|
|
|
|
$addBaseJs = false;
|
|
|
|
$addonJs = "";
|
|
|
|
$addonJs = "";
|
|
|
|
$meta_ct_page_type = "";
|
|
|
|
|
|
|
|
$meta_ct_page_price = get_meta($information->ic_id, 'meta_ct_page_price'); //是否包含价格
|
|
|
|
$meta_ct_page_price = get_meta($information->ic_id, 'meta_ct_page_price'); //是否包含价格
|
|
|
|
$meta_ct_page_type = get_meta($information->ic_id, 'meta_ct_page_type'); //页面类型
|
|
|
|
|
|
|
|
if ($meta_ct_page_price == "yes") {
|
|
|
|
if ($meta_ct_page_price == "yes") {
|
|
|
|
$addBaseJs = true;
|
|
|
|
$addBaseJs = true;
|
|
|
|
} else if ($meta_ct_page_type !== false && $meta_ct_page_type != "") {
|
|
|
|
} else if ($meta_ct_page_type !== false && $meta_ct_page_type != "") {
|
|
|
|