From 085c8e760cb0d641be02a65a8adf5792910e940d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E8=AF=9A=E8=AF=9A?= Date: Tue, 3 Aug 2021 09:34:14 +0800 Subject: [PATCH] =?UTF-8?q?CH=E6=96=87=E4=B8=AD=E4=BF=A1=E6=81=AF=E6=8E=A8?= =?UTF-8?q?=E8=8D=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/information.php | 13 +- .../mobile_first/ch-recommends-article.php | 136 ++++++++++++++++++ .../views/mobile_first/ch-recommends-tour.php | 136 ++++++++++++++++++ 3 files changed, 281 insertions(+), 4 deletions(-) create mode 100644 application/views/mobile_first/ch-recommends-article.php create mode 100644 application/views/mobile_first/ch-recommends-tour.php diff --git a/application/controllers/information.php b/application/controllers/information.php index 467496ec..8ddb9b87 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -650,10 +650,15 @@ 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){ -// $information->ic_content = 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-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); + } //顶部全屏大图 diff --git a/application/views/mobile_first/ch-recommends-article.php b/application/views/mobile_first/ch-recommends-article.php new file mode 100644 index 00000000..84259335 --- /dev/null +++ b/application/views/mobile_first/ch-recommends-article.php @@ -0,0 +1,136 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ <?php echo $recommands['Content Article A']->ic_title; ?> + + + + + <?php echo $recommands['Content Article B']->ic_title; ?> + + + + + <?php echo $recommands['Content Article C']->ic_title; ?> + + + + + <?php echo $recommands['Content Article D']->ic_title; ?> + + + + + <?php echo $recommands['Content Article E']->ic_title; ?> + + + + + <?php echo $recommands['Content Article F']->ic_title; ?> + + + + + <?php echo $recommands['Content Article G']->ic_title; ?> + + + + + <?php echo $recommands['Content Article H']->ic_title; ?> + + + +
+
+ \ No newline at end of file diff --git a/application/views/mobile_first/ch-recommends-tour.php b/application/views/mobile_first/ch-recommends-tour.php new file mode 100644 index 00000000..09343ec5 --- /dev/null +++ b/application/views/mobile_first/ch-recommends-tour.php @@ -0,0 +1,136 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ <?php echo $recommands['Content Tour A']->ic_title; ?> + + + + + <?php echo $recommands['Content Tour B']->ic_title; ?> + + + + + <?php echo $recommands['Content Tour C']->ic_title; ?> + + + + + <?php echo $recommands['Content Tour D']->ic_title; ?> + + + + + <?php echo $recommands['Content Tour E']->ic_title; ?> + + + + + <?php echo $recommands['Content Tour F']->ic_title; ?> + + + + + <?php echo $recommands['Content Tour G']->ic_title; ?> + + + + + <?php echo $recommands['Content Tour H']->ic_title; ?> + + + +
+
+ \ No newline at end of file