diff --git a/application/controllers/information.php b/application/controllers/information.php index c4cce1ae..06738757 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -941,26 +941,6 @@ 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 - $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); - $feedback_content = $this->load->view( - $template_path . '-feedback', - array('feedback_data' => $feedback_data), - true); - $information->ic_content = str_replace( - $tag_name, - $feedback_content, - $information->ic_content); - } - } - //顶部全屏大图 if ($device == 'mobile') { //移动端读取移动大图 $meta_addon_picture = get_meta($information->ic_id, 'meta_addon_picture_mobile'); @@ -988,11 +968,11 @@ class Information extends CI_Controller // $addthis_widget = $this->load->view($template_path . '-add-this', false, true); // $template = str_replace('', $addthis_widget, $template); -// $article_structured_data_content = $this->load->view( -// $template_path . '-structured-data-article', -// array('information' => $information, 'author' => $author), -// true); -// $template = str_replace('', $article_structured_data_content, $template); + $article_structured_data_content = $this->load->view( + $template_path . '-structured-data-article', + array('information' => $information, 'author' => $author), + true); + $template = str_replace('', $article_structured_data_content, $template); } else { // $template = str_replace('', '', $template); // $inquiry_form_template = $this->load->view($template_path . '-inquiry-form', array('meta_product_code' => $meta_product_code), true);