diff --git a/application/controllers/information.php b/application/controllers/information.php index f4e9c065..6ec879a5 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -1509,6 +1509,26 @@ class Information extends CI_Controller if (!empty($template_recommand['Tips Right'])) { $template = str_replace('', "
" . $template_recommand['Tips Right']->it_content . "
", $template); } + // 右侧列表广告 + $tipsRightList = []; + for ($i=1; $i <= 36; $i++) { + $key = 'List Tips Right '.$i; + if (array_key_exists($key, $recommand_information)) { + $tipsRightList[] = $recommand_information[$key]; + } + } + + $tips_right_list_content = $this->load->view( + 'mobile_first/ah-tips-right-list', + array( + 'tips_right_first' => array_slice($tipsRightList, 0, 12), + 'tips_right_second' => array_slice($tipsRightList, 12, 12), + 'tips_right_third' => array_slice($tipsRightList, 24, 12)), + true + ); + + $template = str_replace('', $tips_right_list_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); diff --git a/application/views/mobile_first/ah-pc.php b/application/views/mobile_first/ah-pc.php index 988653c1..49ff2ca2 100644 --- a/application/views/mobile_first/ah-pc.php +++ b/application/views/mobile_first/ah-pc.php @@ -286,6 +286,7 @@ +
Create my trip
diff --git a/application/views/mobile_first/ah-list-tips-right.php b/application/views/mobile_first/ah-tips-right-list.php similarity index 100% rename from application/views/mobile_first/ah-list-tips-right.php rename to application/views/mobile_first/ah-tips-right-list.php