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 @@
+