diff --git a/application/controllers/information.php b/application/controllers/information.php index 74134625..b7c1e072 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -626,18 +626,19 @@ class Information extends CI_Controller $template = str_replace('', $information->ic_seo_keywords, $template); $template = str_replace('', $this->config->item('site_url') . $information->ic_url, $template); - // 动态加载反馈标签 - // HTLM:
- // 解析结果:, Shanghai + // 动态加载反馈标签,第一个城市不足八条,使用第二城市数据。 + // HTLM: + // 解析结果:; Shanghai,Beijing $feedback_array = []; preg_match_all('^^', $information->ic_content, $feedback_array); if (!empty($feedback_array)) { foreach ($feedback_array[0] as $index => $tag_name) { - $city_name = $feedback_array[1][$index]; - $feedback_data = $this->Feedback_model->get_feedback_by_city($city_name); + $city_name_string = $feedback_array[1][$index]; + $city_name_list = explode(',', $city_name_string); + $feedback_list = $this->Feedback_model->get_feedback_by_city_list($city_name_list); $feedback_content = $this->load->view( - $template_path . '-feedback', - array('feedback_data' => $feedback_data), + $template_path . '-feedback-list', + array('feedback_list' => $feedback_list), true); $information->ic_content = str_replace( $tag_name, diff --git a/application/views/mobile_first/ch-feedback-list.php b/application/views/mobile_first/ch-feedback-list.php new file mode 100644 index 00000000..483c1813 --- /dev/null +++ b/application/views/mobile_first/ch-feedback-list.php @@ -0,0 +1,22 @@ +Since 1998 we've guided everyone ranging from US presidents, Australian Geographic and retired backpackers. Our goal is to create unique trips that take you off-the-beaten path, helping you discover China in a more authentic way. Our motto: "Discovery Your Way!"
+
| + + | + +