Merge branch 'master' of github.com:hainatravel/information-system into master

hotfix/paypal-note
candice 4 years ago
commit 44419a5285

@ -618,7 +618,8 @@ class Information extends CI_Controller
//H1模板替换 //H1模板替换
$data_H1 = array(); $data_H1 = array();
$data_H1['infocategory'] = $this->Information_model->get_detail_by_path($information->is_path, 1); //信息所属分类,获取信息顶级节点内容 $data_H1['infocategory'] = $this->Information_model->get_detail_by_path($information->is_path, 1); //信息所属分类,获取信息顶级节点内容
$data_H1['author'] = $this->Operator_model->get_author_nikename($information->ic_author); //获取作者信息 $author = $this->Operator_model->get_author_nikename($information->ic_author);
$data_H1['author'] = $author; //获取作者信息
$data_H1['ic_title'] = $information->ic_title; $data_H1['ic_title'] = $information->ic_title;
$data_H1['ic_photo'] = $information->ic_photo; $data_H1['ic_photo'] = $information->ic_photo;
$data_H1['breadcrumb_data'] = $breadcrumb_data; $data_H1['breadcrumb_data'] = $breadcrumb_data;
@ -627,6 +628,14 @@ class Information extends CI_Controller
$addthis_widget = $this->load->view($template_path . '-add-this', false, true); $addthis_widget = $this->load->view($template_path . '-add-this', false, true);
$template = str_replace('<!--@ADDTHIS-WIDGET@-->', $addthis_widget, $template); $template = str_replace('<!--@ADDTHIS-WIDGET@-->', $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('<!--@STRUCTURED-DATA-ARTICLE-BLOCK@-->', $article_structured_data_content, $template);
}
} else { } else {
$template = str_replace('<!--@PRODUCT-JS@-->', '<script src="https://data.chinahighlights.com/js/flatpickr.js"></script>', $template); $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); $inquiry_form_template = $this->load->view($template_path . '-inquiry-form', array('meta_product_code' => $meta_product_code), true);

@ -498,6 +498,22 @@
] ]
} }
</script> </script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"url": "https://secure.chinahighlights.com/",
"potentialAction": {
"@type": "SearchAction",
"target": {
"@type": "EntryPoint",
"urlTemplate": "https://secure.chinahighlights.com/result.asp?001281624266240652297:cl1fy1cxepi&cof=FORID:9&q={search_term_string}"
},
"query-input": "required name=search_term_string"
}
}
</script>
<!--@STRUCTURED-DATA-BREADCRUMB-BLOCK@--> <!--@STRUCTURED-DATA-BREADCRUMB-BLOCK@-->
<!--@STRUCTURED-DATA-ARTICLE-BLOCK@-->
</body> </body>
</html> </html>

@ -0,0 +1,28 @@
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Article",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "https://www.chinahighlights.com<?php echo $information->ic_url; ?>"
},
"headline": "<?php echo $information->ic_seo_title; ?>",
"image": [
"https://images.chinahighlights.com<?php echo $information->ic_photo; ?>"
],
"datePublished": "<?php echo $information->is_datetime; ?>",
"dateModified": "<?php echo time(); ?>",
"author": {
"@type": "Person",
"name": "<?php echo $author->OPI_FirstName; ?>"
},
"publisher": {
"@type": "Organization",
"name": "China Highlights",
"logo": {
"@type": "ImageObject",
"url": "https://data.chinahighlights.com/pic/logo/china-highlights-top-navigation-logo.png"
}
}
}
</script>

@ -360,6 +360,22 @@
] ]
} }
</script> </script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"url": "https://secure.chinahighlights.com/",
"potentialAction": {
"@type": "SearchAction",
"target": {
"@type": "EntryPoint",
"urlTemplate": "https://secure.chinahighlights.com/result.asp?001281624266240652297:cl1fy1cxepi&cof=FORID:9&q={search_term_string}"
},
"query-input": "required name=search_term_string"
}
}
</script>
<!--@STRUCTURED-DATA-BREADCRUMB-BLOCK@--> <!--@STRUCTURED-DATA-BREADCRUMB-BLOCK@-->
<!--@STRUCTURED-DATA-ARTICLE-BLOCK@-->
</body> </body>
</html> </html>
Loading…
Cancel
Save