From 1644318fd7781395745bb4422d79364f10330c06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E8=AF=9A=E8=AF=9A?= Date: Thu, 10 Jun 2021 14:43:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=85=E5=AE=B9=E4=B8=AD=E6=8E=A8=E8=8D=90?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E5=92=8C=E7=BA=BF=E8=B7=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/information.php | 8 + .../third_party/recommend/views/bind.php | 5 +- .../views/bootstrap3/information_edit.php | 7 +- .../mobile_first/ah-recommends-article.php | 152 ++++++++++++++++++ .../views/mobile_first/ah-recommends-tour.php | 152 ++++++++++++++++++ 5 files changed, 320 insertions(+), 4 deletions(-) create mode 100644 application/views/mobile_first/ah-recommends-article.php create mode 100644 application/views/mobile_first/ah-recommends-tour.php diff --git a/application/controllers/information.php b/application/controllers/information.php index af54c85d..fc5dfbad 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -743,6 +743,14 @@ class Information extends CI_Controller if(!empty($template_recommand['Tips Right'])) { $template = str_replace('', "
".$template_recommand['Tips Right']->it_content."
", $template); } + //文中的信息推荐 + if(strpos($information->ic_content,'')!==false){ + $template = str_replace('', $this->load->view($template_path . '-recommends-article', array('recommands'=>$template_recommand), TRUE), $information->ic_content); + } + //文中的线路推荐 + if(strpos($information->ic_content,'')!==false){ + $information->ic_content = str_replace('', $this->load->view($template_path . '-recommends-tour', array('recommands'=>$template_recommand), TRUE), $information->ic_content); + } //非产品页面 if (empty(get_meta($information->ic_id, 'meta_product_code'))) { diff --git a/application/third_party/recommend/views/bind.php b/application/third_party/recommend/views/bind.php index d0788a99..7e64c76d 100644 --- a/application/third_party/recommend/views/bind.php +++ b/application/third_party/recommend/views/bind.php @@ -8,10 +8,10 @@
-
文章内容 <!--@Content-Recommends-Tips@-->
+
文章内容
- +

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

@@ -114,6 +114,7 @@
+

<!--@Content-Recommends-Tour@-->

diff --git a/application/views/bootstrap3/information_edit.php b/application/views/bootstrap3/information_edit.php index d7650c52..23190d85 100644 --- a/application/views/bootstrap3/information_edit.php +++ b/application/views/bootstrap3/information_edit.php @@ -2178,7 +2178,6 @@ } else { meta('delete', 'ic_id; ?>', mate_name, value); } - }
@@ -2186,7 +2185,11 @@
+