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); }