@ -647,10 +647,14 @@ class Information extends CI_Controller
$template_recommand = $this->recommand_information($information);
$template_recommand = $this->recommand_information($information);
$template = str_replace('<!-- @ARTICLENEXT@ --> ', $this->load->view($template_path . '-next', array('recommands' => $template_recommand), TRUE), $template);
$template = str_replace('<!-- @ARTICLENEXT@ --> ', $this->load->view($template_path . '-next', array('recommands' => $template_recommand), TRUE), $template);
// //广告, 改叫tips, 防止被插件屏蔽
// //广告, 改叫tips, 防止被插件屏蔽
if (!empty($template_recommand['Tips Right TOP'])) {
$template = str_replace('<!-- @TIPS - RIGHT - TOP@ --> ', "< div class = 'right_brand_info' > < aside > " . $template_recommand['Tips Right TOP']->it_content . "< / aside > < / div > ", $template);
}
if (!empty($template_recommand['Tips Right'])) {
if (!empty($template_recommand['Tips Right'])) {
$template = str_replace('<!-- @TIPS - RIGHT@ --> ', "< div class = 'right_tour' > " . $template_recommand['Tips Right']->it_content . "< / div > ", $template);
$template = str_replace('<!-- @TIPS - RIGHT@ --> ', "< div class = 'right_tour' > " . $template_recommand['Tips Right']->it_content . "< / div > ", $template);
}
}
//文中的信息推荐
//文中的信息推荐
if (strpos($information->ic_content, '<!-- @Content - Recommends - Article@ --> ') !== false) {
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);
$information->ic_content = str_replace('<!-- @Content - Recommends - Article@ --> ', $this->load->view($template_path . '-recommends-article', array('recommands' => $template_recommand), TRUE), $information->ic_content);