开放广告测试

hotfix/paypal-note
ycc 4 years ago
parent cfae4d1241
commit 91a8611404

@ -712,9 +712,9 @@ class Information extends CI_Controller
} }
$template = str_replace('<!--@CUSTOM-CONENT@-->', $information->ic_content, $template); $template = str_replace('<!--@CUSTOM-CONENT@-->', $information->ic_content, $template);
//Google广告代码 //Google广告代码
if (!empty(get_meta($information->ic_id, 'meta_google_ad_content'))) { //if (!empty(get_meta($information->ic_id, 'meta_google_ad_content'))) {
$template = str_replace('<!--@Match-Content-GOOGLE@-->', '<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script><ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-4231674166786366" data-ad-slot="1447610161"></ins><script>(adsbygoogle = window.adsbygoogle || []).push({});</script>', $template); $template = str_replace('<!--@Match-Content-GOOGLE@-->', '<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script><ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-4231674166786366" data-ad-slot="1447610161"></ins><script>(adsbygoogle = window.adsbygoogle || []).push({});</script>', $template);
} //}
if (!empty(get_meta($information->ic_id, 'meta_google_ad_article'))) { if (!empty(get_meta($information->ic_id, 'meta_google_ad_article'))) {
$in_article_google=$this->load->view($template_path.'-google-ad', false,true); $in_article_google=$this->load->view($template_path.'-google-ad', false,true);
$template = str_replace('<!--@IN-ARTICLE-GOOGLE@-->', $in_article_google, $template); $template = str_replace('<!--@IN-ARTICLE-GOOGLE@-->', $in_article_google, $template);

@ -176,7 +176,7 @@
</div> </div>
<div id="main_content_next"> <div id="main_content_next">
<!--@Match-Content-GOOGLE@--> <!--@Match-Content-GOOGLE###ycc###@-->
<!--@ARTICLENEXT@--> <!--@ARTICLENEXT@-->
</div> </div>
</div> </div>

@ -158,7 +158,7 @@
<div id="main_content_mobile"> <div id="main_content_mobile">
<!--@CUSTOM-CONENT@--> <!--@CUSTOM-CONENT@-->
<!--@Match-Content-GOOGLE@--> <!--@Match-Content-GOOGLE###ycc###@-->
<!--@ARTICLENEXT@--> <!--@ARTICLENEXT@-->
</div> </div>

Loading…
Cancel
Save