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

hotfix/paypal-note
candice 4 years ago
commit f7a55b9594

@ -594,17 +594,12 @@ class Information extends CI_Controller
$template_path . '-structured-data-breadcrumb', $template_path . '-structured-data-breadcrumb',
array('breadcrumb_data' => $breadcrumb_data, 'information' => $information), array('breadcrumb_data' => $breadcrumb_data, 'information' => $information),
true); true);
$information->ic_content = str_replace( $template = str_replace(
'<!--@STRUCTURED-DATA-BREADCRUMB-BLOCK@-->', '<!--@STRUCTURED-DATA-BREADCRUMB-BLOCK@-->',
$breadcrumb_structured_data_content, $breadcrumb_structured_data_content,
$information->ic_content); $template);
} }
$information->ic_content = str_replace(
'<!--@STRUCTURED-DATA-BREADCRUMB-BLOCK@-->',
"<div style='display: none' data-is-id='".$information->is_id."'></div>",
$information->ic_content);
//替换模板中的标签 //替换模板中的标签
$template = str_replace('<!--@TITLE@-->', $information->ic_seo_title, $template); $template = str_replace('<!--@TITLE@-->', $information->ic_seo_title, $template);

@ -445,7 +445,6 @@ if (window.localStorage && localStorage.getItem(GOT_IT_KEY)) {
] ]
} }
</script> </script>
<div style='display: none' data-is-id='test'></div>
<!--@STRUCTURED-DATA-BREADCRUMB-BLOCK@--> <!--@STRUCTURED-DATA-BREADCRUMB-BLOCK@-->
</body> </body>
</html> </html>
Loading…
Cancel
Save