|
|
|
@ -785,6 +785,10 @@ class Information extends CI_Controller
|
|
|
|
|
$template = str_replace('<!--@TIPS-RIGHT@-->', "<div class='right_tour'>" . $template_recommand['Tips Right']->it_content . "</div>", $template);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//文中广告
|
|
|
|
|
if (!empty($template_recommand['Tips Content']) && strpos($information->ic_content, '<!--@TIPS-CONTENT@-->') !== false) {
|
|
|
|
|
$information->ic_content = str_replace('<!--@TIPS-CONTENT@-->', $template_recommand['Tips Content']->it_content, $information->ic_content);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//文中的信息推荐
|
|
|
|
|
if (strpos($information->ic_content, '<!--@Content-Recommends-Article@-->') !== false) {
|
|
|
|
@ -993,6 +997,10 @@ class Information extends CI_Controller
|
|
|
|
|
if (!empty($template_recommand['Tips Right'])) {
|
|
|
|
|
$template = str_replace('<!--@TIPS-RIGHT@-->', "<div class='right_tour'><div class='ah_inforight'>" . $template_recommand['Tips Right']->it_content . "</div></div>", $template);
|
|
|
|
|
}
|
|
|
|
|
//文中广告
|
|
|
|
|
if (!empty($template_recommand['Tips Content']) && strpos($information->ic_content, '<!--@TIPS-CONTENT@-->') !== false) {
|
|
|
|
|
$information->ic_content = str_replace('<!--@TIPS-CONTENT@-->', $template_recommand['Tips Content']->it_content, $information->ic_content);
|
|
|
|
|
}
|
|
|
|
|
//文中的信息推荐
|
|
|
|
|
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);
|
|
|
|
|