GH 社媒分享按钮只用于信息页面

hotfix/paypal-note
LiaoYijun 3 years ago
parent 0da4ca1e88
commit a67ba8ab8c

@ -995,18 +995,20 @@ class Information extends CI_Controller
$template_H1 = $this->load->view($template_path . '-h1', $data_H1, TRUE);
$template = str_replace('<!--@HEAD_1@-->', $template_H1, $template);
$addthis_widget = $this->load->view($template_path . '-add-this', false, true);
$template = str_replace('<!--@ADDTHIS-WIDGET@-->', $addthis_widget, $template);
if (empty($meta_product_code)) {
$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);
$product_code = get_meta($information->ic_id, 'meta_product_code');
if (!empty($product_code)) {
if (!empty($meta_product_code)) {
// <input name="cli_no" type="hidden" value="cht-63">
$product_code_input = "<input name='cli_no' type='hidden' value='$product_code'>";
$product_code_input = "<input name='cli_no' type='hidden' value='$meta_product_code'>";
$template = str_replace('<!--@INPUT_PRODUCT_CODE@-->', $product_code_input, $template);
}

Loading…
Cancel
Save