diff --git a/application/config/config.php b/application/config/config.php
index c87d7b8e..c60bee8e 100644
--- a/application/config/config.php
+++ b/application/config/config.php
@@ -423,7 +423,7 @@ $config['site'] = array(
//静态文件生成路径
$config['cache']['jp']['cache_path'] = 'D:\wwwcache-intl\arachina.com';
-$config['cache']['gm']['cache_path'] = 'D:\wwwcache-intl\chinarundreisen.com';
+$config['cache']['gm']['cache_path'] = 'C:\Dropbox\wwwcache\chinarundreisen.com';
$config['cache']['vc']['cache_path'] = 'D:\wwwcache-intl\voyageschine.com';
$config['cache']['vac']['cache_path'] = 'D:\wwwcache-intl\viaje-a-china.com';
$config['cache']['ru']['cache_path'] = 'D:\wwwcache-intl\chinahighlights.ru';
@@ -726,7 +726,7 @@ $config['css_source_ts'] = 'https://www.trainspread.com/css/bootstrap.min.css';
//静态文件生成路径
$config['cache']['jp']['cache_path'] = 'D:\wwwcache-intl\arachina.com';
-$config['cache']['gm']['cache_path'] = 'D:\wwwcache-intl\chinarundreisen.com';
+$config['cache']['gm']['cache_path'] = 'C:\Dropbox\wwwcache\chinarundreisen.com';
$config['cache']['vc']['cache_path'] = 'D:\wwwcache-intl\voyageschine.com';
$config['cache']['vac']['cache_path'] = 'D:\wwwcache-intl\viaje-a-china.com';
$config['cache']['ru']['cache_path'] = 'D:\wwwcache-intl\chinahighlights.ru';
diff --git a/application/controllers/information.php b/application/controllers/information.php
index e1a4c008..d413a5cc 100644
--- a/application/controllers/information.php
+++ b/application/controllers/information.php
@@ -664,11 +664,12 @@ class Information extends CI_Controller
$template = str_replace('', $template_TrainSearch, $template);
}
- //非产品页面
$meta_product_code = get_meta($information->ic_id, 'meta_product_code');
+ $meta_google_ad_article = get_meta($information->ic_id, 'meta_google_ad_article');
+ //非产品页面
if (empty($meta_product_code)) {
- $ads_by_google = !empty(get_meta($information->ic_id, 'meta_google_ad_article'));
+ $ads_by_google = !empty($meta_google_ad_article);
//H1模板替换
$data_H1 = array();
$data_H1['infocategory'] = $this->Information_model->get_detail_by_path($information->is_path, 1); //信息所属分类,获取信息顶级节点内容
@@ -835,6 +836,19 @@ class Information extends CI_Controller
$information->ic_content = str_replace('', $this->load->view($template_path . '-recommends-tour', array('recommands' => $template_recommand), TRUE), $information->ic_content);
}
+ // 未勾选In Article 广告时,加入标签 ,让 ezoic 识别出该页面不展示广告。
+ if (empty($meta_google_ad_article) || !$meta_google_ad_article) {
+ $template = str_replace(
+ '',
+ '',
+ $template);
+ } else {
+ $template = str_replace(
+ '',
+ '',
+ $template);
+ }
+
//替换内容中广告
$temp_array = array();
preg_match_all('^^', $information->ic_content, $temp_array);
diff --git a/application/views/mobile_first/ah-info-page-form.php b/application/views/mobile_first/ah-info-page-form.php
index 9edab961..0e242167 100644
--- a/application/views/mobile_first/ah-info-page-form.php
+++ b/application/views/mobile_first/ah-info-page-form.php
@@ -7,7 +7,139 @@