|
|
@ -995,18 +995,20 @@ class Information extends CI_Controller
|
|
|
|
$template_H1 = $this->load->view($template_path . '-h1', $data_H1, TRUE);
|
|
|
|
$template_H1 = $this->load->view($template_path . '-h1', $data_H1, TRUE);
|
|
|
|
$template = str_replace('<!--@HEAD_1@-->', $template_H1, $template);
|
|
|
|
$template = str_replace('<!--@HEAD_1@-->', $template_H1, $template);
|
|
|
|
|
|
|
|
|
|
|
|
$addthis_widget = $this->load->view($template_path . '-add-this', false, true);
|
|
|
|
if (empty($meta_product_code)) {
|
|
|
|
$template = str_replace('<!--@ADDTHIS-WIDGET@-->', $addthis_widget, $template);
|
|
|
|
$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(
|
|
|
|
$article_structured_data_content = $this->load->view(
|
|
|
|
$template_path . '-structured-data-article',
|
|
|
|
$template_path . '-structured-data-article',
|
|
|
|
array('information' => $information, 'author' => $author),
|
|
|
|
array('information' => $information, 'author' => $author),
|
|
|
|
true);
|
|
|
|
true);
|
|
|
|
$template = str_replace('<!--@STRUCTURED-DATA-ARTICLE-BLOCK@-->', $article_structured_data_content, $template);
|
|
|
|
$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">
|
|
|
|
// <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);
|
|
|
|
$template = str_replace('<!--@INPUT_PRODUCT_CODE@-->', $product_code_input, $template);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|