|
|
|
|
@ -941,26 +941,6 @@ class Information extends CI_Controller
|
|
|
|
|
$template = str_replace('<!--@KEYWORDS@-->', $information->ic_seo_keywords, $template);
|
|
|
|
|
$template = str_replace('<!--@CANONICAL@-->', $this->config->item('site_url') . $information->ic_url, $template);
|
|
|
|
|
|
|
|
|
|
// 动态加载反馈标签
|
|
|
|
|
// HTLM: <div><!--@FEEDBACK_Shanghai@--></div>
|
|
|
|
|
// 解析结果:<!--@FEEDBACK_Shanghai@-->, Shanghai
|
|
|
|
|
$feedback_array = [];
|
|
|
|
|
preg_match_all('^<!--@FEEDBACK_(.*)@-->^', $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@-->', $addthis_widget, $template);
|
|
|
|
|
|
|
|
|
|
// $article_structured_data_content = $this->load->view(
|
|
|
|
|
// $template_path . '-structured-data-article',
|
|
|
|
|
// array('information' => $information, 'author' => $author),
|
|
|
|
|
// true);
|
|
|
|
|
// $template = str_replace('<!--@STRUCTURED-DATA-ARTICLE-BLOCK@-->', $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('<!--@STRUCTURED-DATA-ARTICLE-BLOCK@-->', $article_structured_data_content, $template);
|
|
|
|
|
} else {
|
|
|
|
|
// $template = str_replace('<!--@PRODUCT-JS@-->', '<script src="https://data.chinahighlights.com/js/flatpickr.js"></script>', $template);
|
|
|
|
|
// $inquiry_form_template = $this->load->view($template_path . '-inquiry-form', array('meta_product_code' => $meta_product_code), true);
|
|
|
|
|
|