diff --git a/application/controllers/information.php b/application/controllers/information.php
index 68164e02..14c9e9be 100644
--- a/application/controllers/information.php
+++ b/application/controllers/information.php
@@ -1698,6 +1698,22 @@ class Information extends CI_Controller
}
}
+ // 未勾选In Article 广告时,加入标签 ,让 ezoic 识别出该页面不展示广告。
+ $meta_google_ad_article = get_meta($information->ic_id, 'meta_google_ad_article');
+ if (empty($meta_google_ad_article) || !$meta_google_ad_article) {
+ $template = str_replace(
+ '',
+ '',
+ $template
+ );
+ } else {
+ $template = str_replace(
+ '',
+ '',
+ $template
+ );
+ }
+
$why_us_covid_list_pc = $this->load->view(
$template_path . '-why-us-covid-list-pc',
array(),
@@ -1845,22 +1861,6 @@ class Information extends CI_Controller
$html_path .= $html_path_ext;
create_folder_by_path(dirname($html_path));
file_put_contents($html_path, $template, LOCK_EX);
-
- // 未勾选In Article 广告时,加入标签 ,让 ezoic 识别出该页面不展示广告。
- $meta_google_ad_article = get_meta($information->ic_id, 'meta_google_ad_article');
- if (empty($meta_google_ad_article) || !$meta_google_ad_article) {
- $template = str_replace(
- '',
- '',
- $template
- );
- } else {
- $template = str_replace(
- '',
- '',
- $template
- );
- }
}
public function make_www_cache_ah($device, $information, $recommand_information)