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