diff --git a/application/controllers/information.php b/application/controllers/information.php index 8112bdce..467496ec 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -629,13 +629,11 @@ class Information extends CI_Controller $addthis_widget = $this->load->view($template_path . '-add-this', false, true); $template = str_replace('', $addthis_widget, $template); - if ($information->is_id == '278006460') { - $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); @@ -1197,7 +1195,7 @@ class Information extends CI_Controller //读取附加移动端图片 $data->mobile_photo = get_meta($data->ic_id, 'meta_addon_picture_mobile'); if (empty($data->mobile_photo)) { - if (!empty($information->ic_photo)) { + if (!empty($data->ic_photo)) { $data->mobile_photo = $this->config->item('site_image_url').$data->ic_photo; } else { $data->mobile_photo = 'https://data.asiahighlights.com/image/travel-guide/thailand/info-template-recommended.jpg'; diff --git a/application/views/mobile_first/ch-structured-data-article.php b/application/views/mobile_first/ch-structured-data-article.php index af03f39e..40624411 100644 --- a/application/views/mobile_first/ch-structured-data-article.php +++ b/application/views/mobile_first/ch-structured-data-article.php @@ -11,7 +11,7 @@ "https://images.chinahighlights.comic_photo; ?>" ], "datePublished": "is_datetime; ?>", - "dateModified": "", + "dateModified": "", "author": { "@type": "Person", "name": "OPI_FirstName; ?>"