diff --git a/application/controllers/information.php b/application/controllers/information.php index f57afd0c..d6c009b0 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -862,6 +862,8 @@ class Information extends CI_Controller $data['meta_addon_picture_url'] = get_meta($information->ic_id, 'meta_addon_picture_url'); } + $ads_by_google = !empty(get_meta($information->ic_id, 'meta_google_ad_article')); + $data['ads_by_google'] = $ads_by_google; $data['author'] = $this->Operator_model->get_author_nikename($information->ic_author); //获取作者信息 $template_H1 = $this->load->view($template_path . '-h1', $data, TRUE); $template = str_replace('', $template_H1, $template); @@ -927,10 +929,6 @@ class Information extends CI_Controller //if (!empty(get_meta($information->ic_id, 'meta_google_ad_content'))) { $template = str_replace('', '', $template); //} - if (!empty(get_meta($information->ic_id, 'meta_google_ad_article'))) { - $in_article_google = $this->load->view($template_path . '-google-ad', false, true); - $template = str_replace('', $in_article_google, $template); - } //社媒分享图片 $full_ic_photo=''; diff --git a/application/views/mobile_first/ah-h1.php b/application/views/mobile_first/ah-h1.php index 006e095d..d95917c3 100644 --- a/application/views/mobile_first/ah-h1.php +++ b/application/views/mobile_first/ah-h1.php @@ -1,14 +1,11 @@