|
|
|
@ -551,5 +551,68 @@ class Information_model extends CI_Model {
|
|
|
|
|
return $this->GetList();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* CT 获取当前页面的面包屑,不包括当前节点,去除链接为空及不发布的节点
|
|
|
|
|
*/
|
|
|
|
|
function get_path_exclude_ct($is_id, $path) {
|
|
|
|
|
$site_code = $this->config->item('site_code');
|
|
|
|
|
$path_query = $this->HT->query("select
|
|
|
|
|
ic_id, is_id, ic_url,ic_url_title,ic_title,is_path,is_level,ic_status
|
|
|
|
|
from infoStructures a inner join infoContents b on a.is_ic_id=b.ic_id
|
|
|
|
|
where is_id in ($path 0) and is_id <> ? and is_siteCode = ? order by is_level asc", array($is_id, $site_code));
|
|
|
|
|
$path_result = $path_query->result();
|
|
|
|
|
$path_list = [];
|
|
|
|
|
|
|
|
|
|
$group_map = [
|
|
|
|
|
278013869 => [
|
|
|
|
|
'ic_url' => '/tour',
|
|
|
|
|
'ic_url_title' => 'China Tours'
|
|
|
|
|
],
|
|
|
|
|
278014282 => [
|
|
|
|
|
'ic_url' => '/citytour',
|
|
|
|
|
'ic_url_title' => 'China City Tours'
|
|
|
|
|
],
|
|
|
|
|
278013862 => [
|
|
|
|
|
'ic_url' => '/daytrip',
|
|
|
|
|
'ic_url_title' => 'China Day Trip'
|
|
|
|
|
],
|
|
|
|
|
278014609 => [
|
|
|
|
|
'ic_url' => '/china-trains',
|
|
|
|
|
'ic_url_title' => 'China Trains'
|
|
|
|
|
],
|
|
|
|
|
278014608 => [
|
|
|
|
|
'ic_url' => '/china-flights',
|
|
|
|
|
'ic_url_title' => 'China Flights'
|
|
|
|
|
]
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
foreach ($path_result as $path_row) {
|
|
|
|
|
|
|
|
|
|
if (array_key_exists($path_row->is_id, $group_map)) {
|
|
|
|
|
$top_group = $group_map[$path_row->is_id];
|
|
|
|
|
$path_array = [
|
|
|
|
|
'ic_id' => $path_row->ic_id,
|
|
|
|
|
'is_id' => $path_row->is_id,
|
|
|
|
|
'ic_title' => $path_row->ic_title,
|
|
|
|
|
'ic_url' => $top_group['ic_url'],
|
|
|
|
|
'ic_url_title' => $top_group['ic_url_title']
|
|
|
|
|
];
|
|
|
|
|
$path_list[] = $path_array;
|
|
|
|
|
}
|
|
|
|
|
else if ($path_row->ic_status === 1) {
|
|
|
|
|
$path_array = [
|
|
|
|
|
'ic_id' => $path_row->ic_id,
|
|
|
|
|
'is_id' => $path_row->is_id,
|
|
|
|
|
'ic_title' => $path_row->ic_title,
|
|
|
|
|
'ic_url' => $path_row->ic_url,
|
|
|
|
|
'ic_url_title' => $path_row->ic_url_title
|
|
|
|
|
];
|
|
|
|
|
$path_list[] = $path_array;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return $path_list;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|