From 1319b140bc87b5fea9c503cb189b7ab6797646c1 Mon Sep 17 00:00:00 2001 From: ycc Date: Mon, 25 Jan 2021 16:47:53 +0800 Subject: [PATCH 01/17] =?UTF-8?q?=E5=BB=B6=E8=BF=9F=E5=8A=A0=E8=BD=BDgoogl?= =?UTF-8?q?e=E5=B9=BF=E5=91=8A=E5=92=8Cadd=20this=E7=A4=BE=E5=AA=92?= =?UTF-8?q?=E6=8F=92=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/information.php | 6 ++++-- application/views/mobile_first/ch-pc.php | 1 + application/views/mobile_first/ch.php | 2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/application/controllers/information.php b/application/controllers/information.php index 857b55a1..d34f8347 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -666,7 +666,8 @@ class Information extends CI_Controller //信息推荐 $template_NEXT = $this->call_mobile_template_NEXT($template_path, $information->is_id); $template = str_replace('', $template_NEXT, $template); - $template = str_replace('', '', $template); + $addthis_widget=$this->load->view($template_path.'-add-this', false,true); + $template = str_replace('', $addthis_widget, $template); } else { $template = str_replace('', '', $template); } @@ -708,7 +709,8 @@ class Information extends CI_Controller $template = str_replace('', '', $template); } if (!empty(get_meta($information->ic_id, 'meta_google_ad_article'))) { - $template = str_replace('', '', $template); + $in_article_google=$this->load->view($template_path.'-google-ad', false,true); + $template = str_replace('', $in_article_google, $template); } //社媒分享图片 if (!empty($information->ic_photo)) { diff --git a/application/views/mobile_first/ch-pc.php b/application/views/mobile_first/ch-pc.php index 6de2a045..edf961f2 100644 --- a/application/views/mobile_first/ch-pc.php +++ b/application/views/mobile_first/ch-pc.php @@ -284,6 +284,7 @@ + diff --git a/application/views/mobile_first/ch.php b/application/views/mobile_first/ch.php index 5f5f9e5a..60b2386d 100644 --- a/application/views/mobile_first/ch.php +++ b/application/views/mobile_first/ch.php @@ -255,6 +255,8 @@ !function(e,n,t){function r(e,n){return typeof e===n}function o(){var e,n,t,o,i,s,a;for(var f in C){if(C.hasOwnProperty(f)){if(e=[],n=C[f],n.name&&(e.push(n.name.toLowerCase()),n.options&&n.options.aliases&&n.options.aliases.length)){for(t=0;td;d++){if(v=e[d],h=z.style[v],a(v,"-")&&(v=s(v)),z.style[v]!==t){if(i||r(o,"undefined")){return l(),"pfx"==n?v:!0}try{z.style[v]=o}catch(g){}if(z.style[v]!=h){return l(),"pfx"==n?v:!0}}}return l(),!1}function h(e,n,t,o,i){var s=e.charAt(0).toUpperCase()+e.slice(1),a=(e+" "+b.join(s+" ")+s).split(" ");return r(n,"string")||r(n,"undefined")?v(a,n,o,i):(a=(e+" "+N.join(s+" ")+s).split(" "),u(a,n,t))}function y(e,n,r){return h(e,t,t,n,r)}var g=[],C=[],_={_version:"3.2.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,n){var t=this;setTimeout(function(){n(t[e])},0)},addTest:function(e,n,t){C.push({name:e,fn:n,options:t})},addAsyncTest:function(e){C.push({name:null,fn:e})}},Modernizr=function(){};Modernizr.prototype=_,Modernizr=new Modernizr;var w=n.documentElement,x="svg"===w.nodeName.toLowerCase(),S="Moz O ms Webkit",b=_._config.usePrefixes?S.split(" "):[]; _._cssomPrefixes=b;var E=function(n){var r,o=prefixes.length,i=e.CSSRule;if("undefined"==typeof i){return t}if(!n){return !1}if(n=n.replace(/^@/,""),r=n.replace(/-/g,"_").toUpperCase()+"_RULE",r in i){return"@"+n}for(var s=0;o>s;s++){var a=prefixes[s],f=a.toUpperCase()+"_"+r;if(f in i){return"@-"+a.toLowerCase()+"-"+n}}return !1};_.atRule=E;var N=_._config.usePrefixes?S.toLowerCase().split(" "):[];_._domPrefixes=N;var P={elem:f("modernizr")};Modernizr._q.push(function(){delete P.elem});var z={style:P.elem.style};Modernizr._q.unshift(function(){delete z.style}),_.testAllProps=h;_.prefixed=function(e,n,t){return 0===e.indexOf("@")?E(e):(-1!=e.indexOf("-")&&(e=s(e)),n?h(e,n,t):h(e,"pfx"))};_.testAllProps=y,Modernizr.addTest("cssanimations",y("animationName","a",!0)),o(),i(g),delete _.addTest,delete _.addAsyncTest;for(var T=0;T From c9d460f069f0e246e8fbc190c3385d26719940a9 Mon Sep 17 00:00:00 2001 From: ycc Date: Mon, 25 Jan 2021 16:48:12 +0800 Subject: [PATCH 02/17] =?UTF-8?q?=E5=BB=B6=E8=BF=9F=E5=8A=A0=E8=BD=BDgoogl?= =?UTF-8?q?e=E5=B9=BF=E5=91=8A=E5=92=8Cadd=20this=E7=A4=BE=E5=AA=92?= =?UTF-8?q?=E6=8F=92=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/views/mobile_first/ch-add-this.php | 1 + application/views/mobile_first/ch-google-ad.php | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 application/views/mobile_first/ch-add-this.php create mode 100644 application/views/mobile_first/ch-google-ad.php diff --git a/application/views/mobile_first/ch-add-this.php b/application/views/mobile_first/ch-add-this.php new file mode 100644 index 00000000..e5a9df04 --- /dev/null +++ b/application/views/mobile_first/ch-add-this.php @@ -0,0 +1 @@ + diff --git a/application/views/mobile_first/ch-google-ad.php b/application/views/mobile_first/ch-google-ad.php new file mode 100644 index 00000000..6b9e6b56 --- /dev/null +++ b/application/views/mobile_first/ch-google-ad.php @@ -0,0 +1,6 @@ + + + \ No newline at end of file From 0aeb14c369defbc9b9115109304703edbc0e5fb2 Mon Sep 17 00:00:00 2001 From: ycc Date: Tue, 26 Jan 2021 09:44:50 +0800 Subject: [PATCH 03/17] =?UTF-8?q?=E5=AF=BC=E8=88=AA=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/views/mobile_first/ch.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/application/views/mobile_first/ch.php b/application/views/mobile_first/ch.php index 60b2386d..80003daa 100644 --- a/application/views/mobile_first/ch.php +++ b/application/views/mobile_first/ch.php @@ -32,7 +32,7 @@