|
|
@ -838,15 +838,15 @@ class Information extends CI_Controller
|
|
|
|
|
|
|
|
|
|
|
|
// 未勾选In Article 广告时,加入标签 <meta name="ezoic" content="noads"/>,让 ezoic 识别出该页面不展示广告。
|
|
|
|
// 未勾选In Article 广告时,加入标签 <meta name="ezoic" content="noads"/>,让 ezoic 识别出该页面不展示广告。
|
|
|
|
if (empty($meta_google_ad_article) || !$meta_google_ad_article) {
|
|
|
|
if (empty($meta_google_ad_article) || !$meta_google_ad_article) {
|
|
|
|
$information->ic_content = str_replace(
|
|
|
|
$template = str_replace(
|
|
|
|
'<!--@Meta-Ezoic-NoAds@-->',
|
|
|
|
'<!--@Meta-Ezoic-NoAds@-->',
|
|
|
|
'<meta name="ezoic" content="noads"/>',
|
|
|
|
'<meta name="ezoic" content="noads"/>',
|
|
|
|
$information->ic_content);
|
|
|
|
$template);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$information->ic_content = str_replace(
|
|
|
|
$template = str_replace(
|
|
|
|
'<!--@Meta-Ezoic-NoAds@-->',
|
|
|
|
'<!--@Meta-Ezoic-NoAds@-->',
|
|
|
|
'',
|
|
|
|
'',
|
|
|
|
$information->ic_content);
|
|
|
|
$template);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//替换内容中广告
|
|
|
|
//替换内容中广告
|
|
|
|