|
|
|
@ -1216,6 +1216,7 @@ class Information extends CI_Controller
|
|
|
|
|
$tips_right_a = [];
|
|
|
|
|
$tips_right_b = [];
|
|
|
|
|
$tips_right_c = [];
|
|
|
|
|
$meta_show_advertise = get_meta($information->ic_id, 'meta_show_advertise');
|
|
|
|
|
for ($i = 1; $i <= 12; $i++) {
|
|
|
|
|
$key = 'List Tips Right A_' . $i;
|
|
|
|
|
if (array_key_exists($key, $recommand_information) && $recommand_information[$key]) {
|
|
|
|
@ -1244,8 +1245,9 @@ class Information extends CI_Controller
|
|
|
|
|
),
|
|
|
|
|
true
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
if(!empty($meta_show_advertise)){
|
|
|
|
|
$template = str_replace('<!--@TIPS-RIGHT-LIST@-->', $tips_right_list_content, $template);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//文中的信息推荐
|
|
|
|
@ -1774,6 +1776,7 @@ class Information extends CI_Controller
|
|
|
|
|
$tips_right_a = [];
|
|
|
|
|
$tips_right_b = [];
|
|
|
|
|
$tips_right_c = [];
|
|
|
|
|
$meta_show_advertise = get_meta($information->ic_id, 'meta_show_advertise');
|
|
|
|
|
for ($i = 1; $i <= 12; $i++) {
|
|
|
|
|
$key = 'List Tips Right A_' . $i;
|
|
|
|
|
if (array_key_exists($key, $recommand_information) && $recommand_information[$key]) {
|
|
|
|
@ -1802,8 +1805,9 @@ class Information extends CI_Controller
|
|
|
|
|
),
|
|
|
|
|
true
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
if(!empty($meta_show_advertise)){
|
|
|
|
|
$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);
|
|
|
|
@ -2119,6 +2123,7 @@ class Information extends CI_Controller
|
|
|
|
|
$tips_right_a = [];
|
|
|
|
|
$tips_right_b = [];
|
|
|
|
|
$tips_right_c = [];
|
|
|
|
|
$meta_show_advertise = get_meta($information->ic_id, 'meta_show_advertise');
|
|
|
|
|
for ($i = 1; $i <= 12; $i++) {
|
|
|
|
|
$key = 'List Tips Right A_' . $i;
|
|
|
|
|
if (array_key_exists($key, $recommand_information) && $recommand_information[$key]) {
|
|
|
|
@ -2143,13 +2148,15 @@ class Information extends CI_Controller
|
|
|
|
|
array(
|
|
|
|
|
'tips_right_a' => $tips_right_a,
|
|
|
|
|
'tips_right_b' => $tips_right_b,
|
|
|
|
|
'tips_right_c' => $tips_right_c
|
|
|
|
|
'tips_right_c' => $tips_right_c,
|
|
|
|
|
),
|
|
|
|
|
true
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
$template = str_replace('<!--@TIPS-RIGHT-LIST@-->', $tips_right_list_content, $template);
|
|
|
|
|
|
|
|
|
|
if(!empty($meta_show_advertise)){
|
|
|
|
|
$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);
|
|
|
|
|