From 584eb6b4e46c073192fd6c1d60f7d6646df2dcf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E8=AF=9A=E8=AF=9A?= Date: Wed, 11 Aug 2021 10:59:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=B3=E4=BE=A7=E9=A1=B6=E9=83=A8=E5=B9=BF?= =?UTF-8?q?=E5=91=8A=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/information.php | 4 ++++ .../third_party/recommend/views/bind.php | 17 ++++++++++++++++- .../third_party/recommend/views/templates.php | 15 ++++----------- application/views/mobile_first/ch-pc.php | 1 + 4 files changed, 25 insertions(+), 12 deletions(-) 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 @@ +