|
|
|
@ -920,41 +920,45 @@ class Information extends CI_Controller
|
|
|
|
|
$template = str_replace('<!--@TIPS-RIGHT@-->', "<div class='right_tour'>" . $template_recommand['Tips Right']->it_content . "</div>", $template);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 右侧列表广告
|
|
|
|
|
$tips_right_a = [];
|
|
|
|
|
$tips_right_b = [];
|
|
|
|
|
$tips_right_c = [];
|
|
|
|
|
for ($i = 1; $i <= 12; $i++) {
|
|
|
|
|
$key = 'List Tips Right A_' . $i;
|
|
|
|
|
if (array_key_exists($key, $recommand_information) && $recommand_information[$key]) {
|
|
|
|
|
$tips_right_a[] = $recommand_information[$key];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
for ($i = 1; $i <= 12; $i++) {
|
|
|
|
|
$key = 'List Tips Right B_' . $i;
|
|
|
|
|
if (array_key_exists($key, $recommand_information) && $recommand_information[$key]) {
|
|
|
|
|
$tips_right_b[] = $recommand_information[$key];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
for ($i = 1; $i <= 12; $i++) {
|
|
|
|
|
$key = 'List Tips Right C_' . $i;
|
|
|
|
|
if (array_key_exists($key, $recommand_information) && $recommand_information[$key]) {
|
|
|
|
|
$tips_right_c[] = $recommand_information[$key];
|
|
|
|
|
}
|
|
|
|
|
// /day-tours/(278008224) 节点不使用推荐信息
|
|
|
|
|
if ($information->is_parent_id == '278008224') {
|
|
|
|
|
} else {
|
|
|
|
|
// 右侧列表广告
|
|
|
|
|
$tips_right_a = [];
|
|
|
|
|
$tips_right_b = [];
|
|
|
|
|
$tips_right_c = [];
|
|
|
|
|
for ($i = 1; $i <= 12; $i++) {
|
|
|
|
|
$key = 'List Tips Right A_' . $i;
|
|
|
|
|
if (array_key_exists($key, $recommand_information) && $recommand_information[$key]) {
|
|
|
|
|
$tips_right_a[] = $recommand_information[$key];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
for ($i = 1; $i <= 12; $i++) {
|
|
|
|
|
$key = 'List Tips Right B_' . $i;
|
|
|
|
|
if (array_key_exists($key, $recommand_information) && $recommand_information[$key]) {
|
|
|
|
|
$tips_right_b[] = $recommand_information[$key];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
for ($i = 1; $i <= 12; $i++) {
|
|
|
|
|
$key = 'List Tips Right C_' . $i;
|
|
|
|
|
if (array_key_exists($key, $recommand_information) && $recommand_information[$key]) {
|
|
|
|
|
$tips_right_c[] = $recommand_information[$key];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$tips_right_list_content = $this->load->view(
|
|
|
|
|
'mobile_first/ch-tips-right-list',
|
|
|
|
|
array(
|
|
|
|
|
'tips_right_a' => $tips_right_a,
|
|
|
|
|
'tips_right_b' => $tips_right_b,
|
|
|
|
|
'tips_right_c' => $tips_right_c
|
|
|
|
|
),
|
|
|
|
|
true
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
$template = str_replace('<!--@TIPS-RIGHT-LIST@-->', $tips_right_list_content, $template);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$tips_right_list_content = $this->load->view(
|
|
|
|
|
'mobile_first/ch-tips-right-list',
|
|
|
|
|
array(
|
|
|
|
|
'tips_right_a' => $tips_right_a,
|
|
|
|
|
'tips_right_b' => $tips_right_b,
|
|
|
|
|
'tips_right_c' => $tips_right_c
|
|
|
|
|
),
|
|
|
|
|
true
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
$template = str_replace('<!--@TIPS-RIGHT-LIST@-->', $tips_right_list_content, $template);
|
|
|
|
|
|
|
|
|
|
//文中的信息推荐
|
|
|
|
|
if (strpos($information->ic_content, '<!--@Content-Recommends-Article@-->') !== false) {
|
|
|
|
|
$information->ic_content = str_replace('<!--@Content-Recommends-Article@-->', $this->load->view($template_path . '-recommends-article', array('recommands' => $template_recommand), true), $information->ic_content);
|
|
|
|
|