From c3f001bde2fa84146be83ebedb3ac4884fb59ce7 Mon Sep 17 00:00:00 2001 From: Jimmy Liow Date: Thu, 7 Sep 2023 09:52:42 +0800 Subject: [PATCH] =?UTF-8?q?AH=20=E6=8E=A8=E8=8D=90=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=A7=BB=E5=8A=A8=E7=AB=AF=E5=92=8C=20PC=20?= =?UTF-8?q?=E5=A4=B4=E9=83=A8=E5=A4=A7=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/information.php | 10 +- .../views/mobile_first/ah-next-mobile.php | 266 ++++++++++++++++++ 2 files changed, 272 insertions(+), 4 deletions(-) create mode 100644 application/views/mobile_first/ah-next-mobile.php diff --git a/application/controllers/information.php b/application/controllers/information.php index a2f7ae7a..de625951 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -1679,6 +1679,7 @@ class Information extends CI_Controller $data = array(); $data['information'] = $information; + $recommand_template = ''; switch ($device) { case 'mobile': //获取移动优先的模板,如果有的话 @@ -1689,6 +1690,7 @@ class Information extends CI_Controller } else { return false; } + $recommand_template = 'mobile_first/ah-next-mobile'; break; case 'pc': //获取PC的模板,如果有的话 @@ -1699,6 +1701,7 @@ class Information extends CI_Controller } else { return false; } + $recommand_template = 'mobile_first/ah-next'; break; default: } @@ -1771,9 +1774,8 @@ class Information extends CI_Controller ); //推荐信息或者产品 - //信息推荐 - $template_recommand = $recommand_information; // $this->recommand_information($information); - $template = str_replace('', $this->load->view($template_path . '-next', array('recommands' => $template_recommand), true), $template); + $template_recommand = $recommand_information; + $template = str_replace('', $this->load->view($recommand_template, array('recommands' => $template_recommand), true), $template); //广告,改叫tips,防止被插件屏蔽 if (!empty($template_recommand['Tips Right'])) { $template = str_replace('', "
" . $template_recommand['Tips Right']->it_content . "
", $template); @@ -2801,7 +2803,7 @@ class Information extends CI_Controller } if (!empty($data)) { $exclude_ids[] = $data->is_id; - //读取附加移动端图片 + $data->desktop_photo = get_meta($data->ic_id, 'meta_addon_picture'); $data->mobile_photo = get_meta($data->ic_id, 'meta_addon_picture_mobile'); if (empty($data->mobile_photo)) { if (!empty($data->ic_photo)) { diff --git a/application/views/mobile_first/ah-next-mobile.php b/application/views/mobile_first/ah-next-mobile.php new file mode 100644 index 00000000..90466f65 --- /dev/null +++ b/application/views/mobile_first/ah-next-mobile.php @@ -0,0 +1,266 @@ +
+ +

Get Inspired with Some Popular Itineraries

+

At Asia Highlights, we create your kind of journey — your dates, your destinations, at your pace. You can have any trip tailor made for your travel.

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + +

More Travel Ideas and Inspiration

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + +
+
+ + + + +
\ No newline at end of file