From a67ba8ab8c052c0445025f8d013098b16f3cfe1a Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Thu, 24 Mar 2022 10:24:59 +0800 Subject: [PATCH] =?UTF-8?q?GH=20=E7=A4=BE=E5=AA=92=E5=88=86=E4=BA=AB?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E5=8F=AA=E7=94=A8=E4=BA=8E=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/information.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/application/controllers/information.php b/application/controllers/information.php index fd9d5206..fa0db104 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -995,18 +995,20 @@ class Information extends CI_Controller $template_H1 = $this->load->view($template_path . '-h1', $data_H1, TRUE); $template = str_replace('', $template_H1, $template); - $addthis_widget = $this->load->view($template_path . '-add-this', false, true); - $template = str_replace('', $addthis_widget, $template); + if (empty($meta_product_code)) { + $addthis_widget = $this->load->view($template_path . '-add-this', false, true); + $template = str_replace('', $addthis_widget, $template); + } $article_structured_data_content = $this->load->view( $template_path . '-structured-data-article', array('information' => $information, 'author' => $author), true); $template = str_replace('', $article_structured_data_content, $template); - $product_code = get_meta($information->ic_id, 'meta_product_code'); - if (!empty($product_code)) { + + if (!empty($meta_product_code)) { // - $product_code_input = ""; + $product_code_input = ""; $template = str_replace('', $product_code_input, $template); }