diff --git a/application/controllers/information.php b/application/controllers/information.php index dd298d6a..1e846a4c 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -647,10 +647,14 @@ class Information extends CI_Controller $template_recommand = $this->recommand_information($information); $template = str_replace('', $this->load->view($template_path . '-next', array('recommands' => $template_recommand), TRUE), $template); // //广告,改叫tips,防止被插件屏蔽 + if (!empty($template_recommand['Tips Right TOP'])) { + $template = str_replace('', "
", $template); + } if (!empty($template_recommand['Tips Right'])) { $template = str_replace('', "
" . $template_recommand['Tips Right']->it_content . "
", $template); } + //文中的信息推荐 if (strpos($information->ic_content, '') !== false) { $information->ic_content = str_replace('', $this->load->view($template_path . '-recommends-article', array('recommands' => $template_recommand), TRUE), $information->ic_content); diff --git a/application/third_party/recommend/views/bind.php b/application/third_party/recommend/views/bind.php index 44b2d492..f17378dd 100644 --- a/application/third_party/recommend/views/bind.php +++ b/application/third_party/recommend/views/bind.php @@ -8,7 +8,7 @@
-
文章内容
+
文章内容

<!--@Content-Recommends-Article@-->

@@ -224,6 +224,19 @@
+ +
+
右侧广告-顶
+
+ ir_rule; ?> +
+
+ +
右侧广告ir_rule; ?>
+ +
diff --git a/application/third_party/recommend/views/templates.php b/application/third_party/recommend/views/templates.php index 24f28ca1..cbe1cc72 100644 --- a/application/third_party/recommend/views/templates.php +++ b/application/third_party/recommend/views/templates.php @@ -21,19 +21,12 @@

完整的右侧广告代码:

- + -
\ No newline at end of file +
diff --git a/application/views/mobile_first/ch-pc.php b/application/views/mobile_first/ch-pc.php index 3e7d91b3..a9653a78 100644 --- a/application/views/mobile_first/ch-pc.php +++ b/application/views/mobile_first/ch-pc.php @@ -218,6 +218,7 @@ +