插件目录

变更集1341916


忽略:
时间戳:
2016年3月2日上午05:16:08(8年(之前)
作者:
沙内拉布斯
消息:

4.07-客户端模式和错误修复

位置:
ampedsense adsense分裂测试仪
文件夹:
添加了38个
5已编辑

图例:

未修改
补充
远离的
  • ampedsense-adsense-split-tester/trunk/amped-sense.php

    324318卢比 1341916兰特  
    3131$设置['lcse_v']=''
    3232$settings['lcse_checked']=(时间)
     33$settings['render']=服务器/客户端
    3334$设置[“段”][0]
    3435[“段名称”]
     
    107108}
    108109       
     110//如果全新用户集render=client,则保留为服务器
     111if(!isset($this->设置['render'])
     112        {
     113            /*
     114if(isset($this->设置['segments']))$this->settings['render']='server';
     115else$this->设置['render']='client';
     116            */
     117//暂时保留默认为服务器
     118$this->settings['render']='server';
     119           
     120$this->settings_dirty=true;
     121}
     122       
    109123//保存到数据库。析构函数不工作
    110124如果($this->settings_dirty)
     
    119133//无操作,保留设置以备稍后重新激活
    120134    }
    121 
    122135
    123136
     
    149162$this->ip=$_SERVER['REMOTE_ADDR'];
    150163
    151 //管理菜单
     164//管理菜单和样式/js
    152165add_action('admin_menu',数组($this,'make_settings_menu'));
     166add_action('admin_enqueue_scripts',数组($this,'loadAdminStylesAndScripts');
    153167       
    154168//侧栏小部件
     
    181195    }
    182196   
     197函数clientContentInject($thecontent)
     198    {
     199//对于内容中的每个点,注入JS调用
     200       
     201       
     202//内部
     203       
     204//将内容拆分为段落arr
     205$paragrapharr=preg_split('/(\n\s*\n|<\/p>)/',$the content,-1,preg_split_NO_EMPTY)//这是wpauto()使用的,除了我添加了|</p>
     206       
     207//计算索引
     208$insertindex_P=1//在p1之后
     209$insertindex_1=圆形(计数($paragrapharr)*.25);//1/4向下
     210$insertindex_2=圆形(计数($paragrapharr)*.5);//1/2向下
     211$insertindex_3=圆形(计数($paragrapharr)*.75);//3/4向下
     212
     213//插入它们
     214//将+X添加到少数元素中,因为我们要向数组中添加更多元素,所以每次执行此操作时都必须进行调整
     215array_splice($paragrapharr,$insertindex_P,0,array(“<script>AmpedSense.OptimizeAdSpot('PL');AmpedSence.OptimiseAdSpop('PC');AmpedSense.OP('PR');</script>”);
     216array_splice($paragrapharr,$insertindex_1+1,0,数组(“<script>AmpedSense.OptimizeAdSpot('1L');AmpedSence.Optim化AdSpot;
     217array_splice($paragrapharr,$insertindex_2+2,0,数组(“<script>AmpedSense.OptimizeAdSpot('2L');AmpedSence.OptimiseAdSpop('2C');AmpedSense.OPimizeADSpot('2R');</script>”);
     218array_splice($paragrapharr,$insertindex_3+3,0,数组(“<script>AmpedSense.OptimizeAdSpot('3L');AmpedSence.Optim化AdSpot;
     219       
     220//重新加入
     221$thecontent=内爆(“\n\n”,$paragrapharr);
     222//但删除新<scripts>添加的额外\n\n
     223//$thecontent=str_replace(“\n<script>”,“<script>“,$thecontent);
     224//$thecontent=str_replace(“</script>\n”,“</sscript>”,$thecontent);
     225//$thecontent=str_replace(“\n\n<script>”,“<script>“,$thecontent);
     226$the内容=str_replace(“</script>\n\n”,“</sscript>”,$the内容);
     227       
     228//上方、内侧顶部和下方
     229$thecontent=“<script>AmpedSense.OptimizeAdSpot('AP');AmpedSence.OptimiseAdSpop('IL');AmpedSense.ComimizeADSpot('IR');</script>”。
     230$内容。
     231“<script>AmpedSense.OptimizeAdSpot('BP')</script>”;
     232       
     233return$thecontent;
     234    }
     235   
    183236公共函数run()
    184237    {
    185238if(isset($this->settings['adsensepublisherid'])&&$this->settings['adsenssepublisherid']!='')
    186239        {
    187 //选择配方!
    188            
    189 if(isset($_GET['as_preview'])&&$_GET['as_preview']
    190 &&current_user_can('read'))//仅允许通过登录用户进行预览,否则可能允许js注入
    191             {
    192 //预览!
    193 
    194 //根据参数创建广告数组
    195 $previewads=数组();
    196 对于($i=1;$i<=$_GET['as_numads'];$i++)
     240           
     241if($this->settings['render']=='client')
     242            {
     243//将广告转储到js
     244add_action('wp_head',数组($this,'dumpAdstoJs');
     245               
     246//并在所有可能的位置注入js调用
     247               
     248//内容相关
     249add_filter('e_content',数组($this,'clientContentInject');
     250               
     251//AmpedSenseSidebarA/B/C处理的侧栏小部件
     252               
     253//由$this->shortcodeA/B/C处理的短代码处理程序
     254            }
     255其他
     256            {
     257//服务器端渲染
     258               
     259//选择菜谱!
     260               
     261if(isset($_GET['as_preview'])&&$_GET['as_preview']
     262&&current_user_can('read'))//仅允许通过登录用户进行预览,否则可能允许js注入
    197263                {
    198 if(isset($_GET['as_custom'][$i]))$previewad['custom']=$this->cleanInput($_GET['as_custom'][$i]]);
    199 if(isset($_GET['as_adsize'][$i]))$previewad['adsize']=$this->cleanInput($_GET['as.adsize'][$i);
    200 if(isset($_GET['as_adtype'][$i]))$previewad['adtype']=$this->cleanInput($_GET['as-adtype'][$i);
    201 if(isset($_GET['as_adlocation'][$i]))$previewad['adlocation']=$this->cleanInput($_GET['as-adlocation'][$i);
    202 if(isset($_GET['as_adpadding'][$i]))$previewad['adadding']=$this->cleanInput($_GET['as-adpadding'][$i);
    203 if(isset($_GET['as_admargin'][$i]))$previewad['admargin']=$this->cleanInput($_GET['as-admargin'][$i);
    204 if(isset($_GET['as_color'][$i]))$previewad['color']=$this->cleanInput($_GET['as-color'][$i]]);
    205 if(isset($_GET['as_colorborder'][$i]))$previewad['color_border']=$this->cleanInput($_GET['as_colorborder'][$i]);
    206 if(isset($_GET['as_colorbg'][$i]))$previewawd['color_bg']=$this->cleanInput($_GET['as-colorbg'][$i]);
    207 if(isset($_GET['as_colorlink'][$i]))$previewad['color_link']=$this->cleanInput($_GET['as-colorlink'][$i);
    208 if(isset($_GET['as_colortext'][$i]))$previewad['color_text']=$this->cleanInput($_GET['as-colortext'][$i);
    209 if(isset($_GET['as_colorurl'][$i]))$previewawd['color_url']=$this->cleanInput($_GET['as-colorurl'][$i]);
     264//预览!
     265
     266//根据参数创建广告数组
     267$previewads=array();
     268对于($i=1;$i<=$_GET['as_numads'];$i++)
     269                    {
     270if(isset($_GET['as_custom'][$i]))$previewad['custom']=$this->cleanInput($_GET['as_custom'][$i]]);
     271if(isset($_GET['as_adsize'][$i]))$previewad['adsize']=$this->cleanInput($_GET['as.adsize'][$i);
     272if(isset($_GET['as_adtype'][$i]))$previewad['adtype']=$this->cleanInput($_GET['as-adtype'][$i);
     273if(isset($_GET['as_adlocation'][$i]))$previewad['adlocation']=$this->cleanInput($_GET['as-adlocation'][$i);
     274if(isset($_GET['as_adpadding'][$i]))$previewad['adadding']=$this->cleanInput($_GET['as-adpadding'][$i);
     275if(isset($_GET['as_admargin'][$i]))$previewad['admargin']=$this->cleanInput($_GET['as-admargin'][$i);
     276if(isset($_GET['as_color'][$i]))$previewad['color']=$this->cleanInput($_GET['as-color'][$i]]);
     277if(isset($_GET['as_color_border'][$i]))$previewawd['color_bounder']=$this->cleanInput($_GET['as-color_obrder'][$i]]);
     278if(isset($_GET['as_color_bg'][$i]))$previewad['color_bg']=$this->cleanInput($_GET['as_color_bg'][$i]);
     279if(isset($_GET['as_color_link'][$i]))$previewad['color_link']=$this->cleanInput($_GET['as_color_link'][$i]);
     280if(isset($_GET['as_color_text'][$i]))$previewad['color_text']=$this->cleanInput($_GET['as-color_text'][$i]);
     281if(isset($_GET['as_color_url'][$i]))$previewad['color_url']=$this->cleanInput($_GET['as-color_url'][$i]);
     282                       
     283//安全风险,只显示黑框即可
     284//if(isset($_GET['as_customcode'][$i]))$previewad['customcode']=$this->cleanInput($_GET['as_customcode'][$i]);
     285if(isset($_GET['as_custom'][$i])&&$_GET['as_custom'][$i]=='html')$previewad['customcode']=“<div style='border:2px纯白;background:black;color:white'>此处的自定义代码由于安全原因无法预览自定义代码。<br/>在实时流量中,此框将替换为自定义代码。”;
     286else if(isset($_GET['as_custom'][$i])&&$_GET['as_custom'][$i]=='resp')$previewad['customcode']=“<div style='border:2px纯白;背景:黑色;color:white'>此处为响应广告单元<br/>出于安全原因,无法预览响应代码<br/>在实时流量中,此框将替换为您的响应广告单元</div>“;
     287                       
     288$previewads[]=$previewad;
     289                    }
     290$chosen_recipe['ads']=$previewad;
     291$chosen_recipe['channelid']=“0”;
     292}
     293其他
     294                {
     295//找出我们所处的细分市场
    210296                   
    211 //安全风险,只显示黑匣子
    212 //if(isset($_GET['as_customcode'][$i]))$previewad['customcode']=$this->cleanInput($_GET['as_customcode'][$i]);
    213 if(isset($_GET['as_custom'][$i])&&$_GET['as_custom'][$i]=='html')$previewad['customcode']=“<div style='border:2px纯白;background:black;color:white'>此处的自定义代码由于安全原因无法预览自定义代码。<br/>在实时流量中,此框将替换为自定义代码。”;
    214 else if(isset($_GET['as_custom'][$i])&&$_GET['as_custom'][$i]=='resp')$previewad['customcode']=“<div style='border:2px纯白;背景:黑色;color:white'>此处为响应广告单元<br/>出于安全原因,无法预览响应代码<br/>在实时流量中,此框将替换为您的响应广告单元</div>“;
     297//首先需要知道我们使用的是什么设备
     298require_once(插件dir_path(__FILE_)。'Mobile_Detect_ForAS.php');
     299$detect=新Mobile_detect_ForAS//重命名以防止重复类
     300$device=“d”//d=台式机,t=平板电脑,p=手机
     301if($detect->isTablet())$device='t';//任何平板电脑设备。
     302elseif($detect->isMobile())$device='p';//任何移动设备(手机或平板电脑)。
     303//否则必须是桌面(默认值)
    215304                   
    216 $previewads[]=$previewad;
    217 }
    218 $chosen_recipe['ads']=$previewad;
    219 $chosen_recipe['channelid']=“0”;
    220             }
    221 其他
    222             {
    223 //找出我们所处的细分市场
    224                
    225 //首先需要知道我们使用的是什么设备
    226 require_once(插件dir_path(__FILE_)。'Mobile_Detect_ForAS.php');
    227 $detect=新Mobile_detect_ForAS//重命名以防止重复类
    228 $device=“d”//d=台式机,t=平板电脑,p=手机
    229 if($detect->isTablet())$device='t';//任何平板电脑设备。
    230 elseif($detect->isMobile())$device='p';//任何移动设备(手机或平板电脑)。
    231 //否则必须是桌面(默认)
    232                
    233 $segmenti=0;
    234 $matchedsegment=false;
    235 foreach($this->将['segments']设置为$i=>$segment)
    236                 {
    237 $segmenti=$i;
    238                    
    239 if(stristr($segment['devices'],$device)!=“”)
     305$segmenti=0;
     306$matchedsegment=false;
     307foreach($this->settings['segments']作为$i=>$segment)
    240308                    {
    241                        //正确的设备,现在检查页面条件
    242                    
    243 如果($segment['criteria']==“所有页面”)
     309                       $segmenti=$i;
     310                      
     311如果(stristr($segment['devices'],$device)!=“”)
    244312                        {
    245 if(is_page())
     313//纠正设备,现在检查页面条件
     314                       
     315if($segment['criteria']==“allpages”)
    246316                            {
     317if(is_page())
     318                                {
     319$matchedsegment=true;
     320断裂;
     321                                }
     322                            }
     323elseif($segment['criteria']==“allposts”)
     324                            {
     325if(is_single())
     326                                {
     327$matchedsegment=true;
     328断裂;
     329                                }
     330                            }
     331elseif($segment['criteria']==“alllists”)
     332{
     333if(is_category())
     334                                {
     335$matchedsegment=true;
     336断裂;
     337                                }
     338}
     339elseif($segment['criteria']==“主页”)
     340                            {
     341if(is_front_page())
     342                                {
     343$matchedsegment=true;
     344断裂;
     345                                }
     346                            }
     347elseif($segment['criteria']==“page”||$segment['creteria']=“post”)
     348{
     349全球$邮政//_ID()打印出来
     350$id=$post->id;
     351if($id==$段['criteriaparam'])
     352                                {
     353$matchedsegment=true;
     354断裂;
     355                                }
     356                            }
     357elseif($segment['criteria']==“list”)
     358                            {
     359if(is_category($segment['criteriaparam'])
     360                                {
     361$matchedsegment=true;
     362断裂;
     363                                }
     364                            }
     365elseif($segment['criteria']==“类别”)
     366                            {
     367全球$post//_ID()打印出来
     368$id=$post->id;
     369$thispostcategories=get_the_category($id);
     370if(!空($thispostcategories))
     371                                {
     372foreach(将$thisportcategories作为$thisportcategory)
     373                                    {
     374if($thispostcategory->cat_ID==$segment['criteriaparam'])
     375                                        {
     376$matchedsegment=true;
     377断裂2;
     378                                        }
     379                                    }
     380                                }
     381                            }
     382elseif($segment['criteria']==“default”)
     383{
     384//所有流量都与此匹配
    247385$matchedsegment=true;
    248386断裂;
    249387                            }
    250388                        }
    251 elseif($segment['criteria']==“allposts”)
     389                    }
     390if($matchedsegment)
     391                    {
     392//随机挑选广告
     393if(isset($this->settings['segments'][$segmenti]['recipes'])&&count($this->settings['segmments'][$segmenti]['recipes']))
    252394                        {
    253 if(is_single())
     395//仅来自活动的
     396$activekeys=数组();
     397foreach($this->settings['segments'][$segmenti]['recipes']作为$key=>$recipe)
    254398                            {
    255 $matchedsegment=true;
    256 断裂;
    257                             }
    258                         }
    259 elseif($segment['criteria']==“主页”)
    260                         {
    261 if(is_front_page())
    262 {
    263 $matchededsegment=true;
    264 断裂;
    265                             }
    266                         }
    267 elseif($segment['criteria']==“page”||$segment['creteria']=“post”)
    268                         {
    269 全球$邮政//_ID()打印出来
    270 $id=$post->id;
    271 if($id==$段['criteriaparam'])
    272                             {
    273 $matchededsegment=true;
    274 断裂;
    275                             }
    276                         }
    277 elseif($segment['criteria']==“类别”)
    278                         {
    279 全球$邮政//_ID()打印出来
    280 $id=$post->id;
    281 $thispostcategories=get_the_category($id);
    282 if(!空($thispostcategories))
    283                             {
    284 foreach($thispostcategories作为$thispostcategory)
     399if($recipe['active'])
    285400                                {
    286 if($thispostcategory->cat_ID==$segment['criteriaparam'])
    287                                     {
    288 $matchedsegment=true;
    289 断裂2;
    290                                     }
     401$activekeys[]=$key;
    291402                                }
    292403                            }
    293                         }
    294                         /*
    295 elseif($segment['criteria']==“移动”)
    296 {
    297 //过去有自己的移动检测功能,但很快就过时了。使用WP的内置功能
    298 //这可以吃药片,但可能没关系
    299 if(wp_is_mobile())
    300                             {
    301 断裂;
    302                             }
    303                         }
    304                         */
    305 elseif($segment['criteria']==“default”)
    306 {
    307 //所有流量都与此匹配
    308 $matchedsegment=true;
    309 断裂;
     404$chosenindex=array_rand($activekeys);
     405$chosenkey=$activekeys[$chosenindex];
     406$chosen_recipe['ads']=$this->设置['segments'][$segmenti]['recipes'][$chosenkey]['ads'];
     407$chosen_recipe['channelid']=$this->设置['segments'][$segmenti]['recipes'][$chosenkey]['channel’];
    310408                        }
    311409                    }
     410//否则不在此处显示任何广告
    312411}
    313 if($matchedsegment)
     412               
     413如果此段上没有广告,则不能设置if(isset($chosenrecipe))//
    314414                {
    315                     //随机挑选广告
    316                    if(isset($this->settings['segments'][$segmenti]['recipes'])&&count($this->settings['segmments'][$segmenti]['recipes']))
     415                    //勾选食谱的广告供以后使用
     416                   foreach($chosen_recipe['ads']作为$ad)
    317417                    {
    318 //仅来自那些活动的
    319 $activekeys=数组();
    320 foreach($this->settings['segments'][$segmenti]['recipes']作为$key=>$recipe)
    321                         {
    322 if($recipe['active'])
    323                             {
    324 $activekeys[]=$key;
    325                             }
    326                         }
    327 $chosenindex=array_rand($activekeys);
    328 $chosenkey=$activekeys[$chosenindex];
    329 $chosen_recipe['ads']=$this->设置['segments'][$segmenti]['recipes'][$chosenkey]['ads'];
    330 $chosen_recipe['channelid']=$this->设置['segments'][$segmenti]['recipes'][$chosenkey]['channel’];
     418$this->hook_ad($ad,$chosen_recipe['channelid']);
    331419                    }
    332420}
    333 //否则不在此处显示任何广告
    334             }
    335            
    336 如果此段上没有广告,则不能设置if(isset($chosenrecipe))//
    337             {
    338 //勾选食谱的广告供以后使用
    339 foreach($chosen_recipe['ads']作为$ad)
     421            }
     422}
     423    }
     424   
     425公共函数dumpAdstoJs()
     426    {
     427//为转储创建精简版本的设置
     428$settingsDump=数组过滤器($this->settings['segments'],函数($segment){return true;})//深度复制阵列
     429foreach($settingsDump as$segmenti=>$segment)
     430        {
     431foreach($segment['recipes']作为$recipei=>$recipe)
     432            {
     433//如果未激活则删除
     434if(!$recipe['active'])
    340435                {
    341                    $this->hook_ad($ad,$chosen_recipe['channelid']);
     436                   取消设置($settingsDump[$segmenti]['recipes'][$recipei]);
    342437}
    343438            }
    344439}
     440       
     441//获取有关此帖子的信息
     442全球$邮政//_ID()打印出来
     443$categoryIds=数组();
     444foreach(get_the_category($post->ID)as$category)$categaryIds[]=$categorie->cat_ID;
     445全局$wp_query;
     446//在下面保留换行符(用于代码格式)
     447        ?>
     448
     449        <!-- 使用AmpedSense进行广告分割测试:网址:http://www.ampedsense.com -->
     450<脚本>
     451var AmpedSense={};
     452AmpedSense.segments=<?php echo json_encode($settingsDump,json_FORCE_OBJECT);?>;
     453AmpedSense.adsensepublisherid='<?php echo$this->settings['adsensepublisherid'];?>';
     454AmpedSense.is_page=<?php回声(is_page())?'真':'假';?>;
     455AmpedSense.is_single=<?php echo(is_single())?'真':'假';?>;
     456AmpedSense.is_category=<?php echo(is_category())?'真':'假';?>;
     457AmpedSense.is_front_page=<?php echo(is_front_page())?'真':'假';?>;
     458AmpedSense.post_ID=<?php echo$post->ID;?>;
     459AmpedSense.post_category_IDs=<?php echo json_encode($categoryIds);?>;
     460AmpedSense.category_ID=<?php回声(is_category())$wp_query->get_queried_object_id():“0”;?>;
     461</script>
     462        <!--<script src=“<?php echo$this->get_admin_dir();?>resources/client.max.js”></script>-->
     463<脚本>
     464AmpedSense。QueryStringToObj=函数(){var a={},e,b,c,d;e=window.location.search.split(“&”);c=0;对于(d=e.length;c<d;c++)b=e[c].split(“=”),a[b[0]]=b[1];返回一个};
     465if(-1==window.location.search.indexOf(“as_preview=1”){AmpedSense.device=“d”;var ratio=window.devicePixelRatio||1,width=screen.width*ratio;750>=width?AmpedSence.device=“p”:1080>=width&&(AmpedSens.device=“t”);AmpedSense.segmenti=-1;对于(AmpedSense.segments中的var i)if(AmpedSense.segents.hasOwnProperty(i)){var segment=AmpedSense.segments[i];if(-1!=segment.device.indexOf(AmpedSense.device)){if(“allpages”==segment.creditions&&AmpedSense.is_page){AmpedSense.segmenti=i;break}if(“allposts”==segment.creditionia&&
     466AmpedSense.is_single){AmpedSence.segmenti=i;break}if(“alllists”==segment.critories&AmpedSense.is.is_category){AmpedSense.segmenti=i;brreak}如果(“homepage”==section.critoris&AmpedSense is_front_page){AmpledSense.segmenti=i;break}if((“page”==segment.coritories||“post”==segment.critories)&Ampedsenses.post_ID=segmentif(“list”==段.标准&&AmpedSense.category_ID==段.criteriaparam){AmpedSense.segmenti=i;break}if((“category”==segment.criteria&&AmpedSense.post_category_ID.length&&
     467-1!=AmpedSense.post_category_ID.indexOf(segment.criteriaparam);var chosenrecipekey=recipekey[Math.floor(Math.random()*recipekays.length)];AmpedSense.recipe=segment.recipes[chosenrecipekey]}}其他{AmpedSense配方={};AmpedSense.接收器.ads=
     468[];AmpedSense.recipe.channelid=“0”;qsObj=增强感知。QueryStringToObj();var paramNames=“自定义广告大小广告类型广告位置广告添加广告精颜色border_color color_bg color_link color_text color_url”.split(“”);对于(i=1;i<=qsObj.as_numad;i++){var newad={};对于(j=0;j<=paramNames.length;j++){var paramName=paramNames[j],qsParamName=“as_”+paramName+“%5B”+i+“%5%D”;qsObj[qsParam Name]?newad[paramName]=qsOb2[qsParamName]:;
     469“custom”==paramName&&(“html”==qsObj[qsParamName]?newad.customcode=“<div style='border:2px solid white;background:black;color:white'>此处的自定义代码<br/>出于安全原因,无法预览自定义代码。<br/>On live traffic上,此框将替换为您的自定义代码&&(newad.customcode=“<div style='border:2px纯白;background:black;color:white'>此处为响应广告单元<br/>出于安全原因,无法预览响应代码。<br/>On live traffic上,此框将替换为您的响应广告单元。</div>”)}AmpedSense.decipe.ads.push(newad)}
     470AmpedSense。OptimizeAdSpot=函数(a){if(AmpedSense.recipe.ads中的变量e)if(AmpedSense.decipe.ads.hasOwnProperty(e)){var b=AmpedSence.recip.eads[e];if(b.adlocation==a){varc=AmpedSens.RenderAd(b,AmpedSenes.recipc.channelid),d=b.adpadding&&“”!=b.adbadding?“padding:”+b.adpadpadding+“;”:“”,b=b.admargin&&“!=b_admargin?”margin:“”+b.admargin+“;”:“”;“AP”==a||“PC”==a ||“1C”==b||“2C”==a||”3C“==a|”BP“==a | |”SA“==b|”SB“==a|”SC“==a ||”CA“==c||”CB“==ab||”CC“==b?document.write(“<div style='width:100%;text-align:center;”+
     471d+b+“'>”+c+“</div>”):“IL”==a||“PL”==a ||“1L”==a||“2L”==a||”3L“==a?document.write(“<div style='float:left;”+d+b+“'>”+c+“</div>”):“IR”=a&&“公关”=a&&“1R”=a&&“2R”=a&&“3R”=a文档.write(“<div style='float:right;”+d+b+“'>”+c+“</div>”)}};
     472AmpedSense。RenderAd=函数(a,e){var b=“”;if(“resp”==a.custom||“html”==a.custom)b=a.cusstomcode;else{var c=b=0,d=“”,“728x90”==a.adsize?_as“):“970x90”==a.adsize?(b=970,c=90,d=“970x90_as”):“468x60”==.adsize==广告尺寸?(b=320,c=50,d=“320x50_as”):“234x60”==a.adsize?(b=234,c=60,d=“234x60_as”):“300x600”==a.adsize?(b=300,c=600,d=“300x600_as”):“300x1050”==
     473广告宣传?(b=300,c=1050,d=“300x1050_as”):“160x600”==a.adsize?(b=160,c=600,d=“160x600_as”):“120x600”==a.adsize?(b=120,c=600,d=“120x600_as”):“120x240”==a.adsize?(b=120,c=240,d=“120x240_as”):“336x280”==a.adsize?(b=336,c=280,d=“336x280_as”):“300x250”==a.adsize?(b=300,c=250,d=“300x250_as”):“250x250”==a.adsize?(c=b=250,d=“250x250_as”):“200x200”==a.adsize?(c=b=200,d=“200x200_as”):“180x150”==a.adsize?(b=180,c=150,d=“180x150_as”):“125x125”==a.adsize?(c=b=125,d=“125x125_as”):“728x15”==a.adsize?(b=728,c=15,d)=
     474“728x15_0ads_al”):“468x15”==a.adsize?(b=468,c=15,d=“468x15_0ads_al”):“200x90”==a.adsize?(b=200,c=90,d=“200x90_0ads_al”):“180x90”==a.adsize?(b=180,c=90,d=“180x90_0ads_al”):“160x90”==a.adsize?(b=160,c=90,d=“160x90_0ads_al”):“120x90”==a.adsize&&(b=120,c=90,d=“120x90_0ad”);var f=“text_image”;“T”==a.ad类型?f=“text”:“I”==a.adtype&&(f=“image”);var g=“”;a.color&&“custom”==a.color&(g=“google_color_border='”+a.border_color+“';google_clor_bg='”+a.color_bg+“'”;google-color_link='“+a.color _link+”';google_color_text='“”+
     475a.color_text+“';google_color_url='”+a.color_url+“'”);b=“google_ad_client='”+AmpedSense.adsensepublisherid=“';google_ad_width=”+b+“;google_ad_height=”+c+“;谷歌_ad_format='”+d+“';谷歌_ad_type='“+f+”';谷歌_频道='“+e+”'“+g+”\x3c/script><script type='text/javascript'src='http://pagead2.googlesyndication.com/pagead/show_ads.js'>\x3c/script>“}返回b};
     476</script>
     477        <?
    345478    }
    346479   
     
    406539公共函数shortcodeA()
    407540    {
    408 return AmpedSenseRenderer::applyShortcodeRenderers($this->shortcodeA_renders);
     541if($this->settings['render']=='client')return“<script>AmpedSense.OptimizeAdSpot('CA')</script>”;
     542否则返回AmpedSenseRenderer::applyRenderers($this->shortcodeA_renders);
    409543    }
    410544公共函数shortcodeB()
    411545    {
    412 return AmpedSenseRenderer::applyShortcodeRenderers($this->shortcodeB_renderers);
     546if($this->settings['render']=='client')return“<script>AmpedSense.OptimizeAdSpot('CB')</script>”;
     547否则返回AmpedSenseRenderer::applyRenderers($this->shortcodeB_renderers);
    413548    }
    414549公共函数shortcodeC()
    415550    {
    416 return AmpedSenseRenderer::applyShortcodeRenderers($this->shortcodeC_renderers);
     551if($this->settings['render']=='client')return“<script>AmpedSense.OptimizeAdSpot('CC')</script>”;
     552否则返回AmpedSenseRenderer::applyRenderers($this->shortcodeC_renderers);
    417553    }
    418554
     
    429565if(isset($子菜单[“pedsense-main”])
    430566$submenu['ampedsense-main'][0][0]=__('拆分测试','ampedsense-main');
     567    }
     568   
     569公共函数loadAdminStylesAndScripts()
     570    {
     571//将js和css排队
     572wp_enqueue_style(“AmpedSense自定义BS”,$this->get_admin_dir()。“资源/aswrapped-bootstrap-3.0.3.css”);
     573wp_enqueue_style(“AmpedSense自定义样式”,$this->get_admin_dir()。“资源/as_style.css”);
     574wp_enqueue_style(“jQuery UI平滑度”,$this->get_admin_dir()。“resources/jquery-ui-smoothress-1.10.4.css”);
     575wp_enqueue_script(“jquery-ui-core”);
     576wp_enqueue_script(“jquery-ui-datepicker”);
     577//必须在下面将上面标记为依赖项,否则jquery ui将被加载到页脚中,因为它是由wp-core在页脚中注册的
     578wp_enqueue_script(“jscolor”,$this->get_admin_dir())。“resources/jscolor.js”,数组(“jquery-ui-core”,“jquely-ui-datepicker”);
    431579    }
    432580
     
    487635$this->设置['adsensepublisherid']=$this->cleanInput($_POST['as_adsensepublisherid']);
    488636$this->设置['siteabbrev']=$this->cleanInput($_POST['as_siteabbrev']);
     637$this->设置['render']=$this->cleanInput($_POST['as_render']);
    489638$this->设置['lcse_k']=$this->cleanInput($_POST['as.lcse_k']);
    490639           
     
    512661如果($_POST['as_criteria']==“页面”)$newsegment['criteriaparam']=$_POST['as_criteriaparam_page'];
    513662elseif($_POST['as_criteria']=='POST')$newsegment['criteriaparam']=$_POST['as-criteriaparam_POST'];
    514 elseif($_POST['as_criation']==“类别”)$newsegment['criteriaparam']=$_POST['as_criteriaparam_category'];
     663elseif($_POST['as_criation']==“类别”|$_POST['as_criation']==“列表”)$newsegment['criteriaparam']=$_POST['as_criteriaparam_category'];
    515664           
    516665$newsegment['segmentname']=$this->cleanInput($_POST['as_segmentname']);
     
    619768                {
    620769$newad['color']=“自定义”;
    621 $newad['color_border']=$this->cleanInput($_POST['as_color边框'][$i]);
    622 $newad['color_bg']=$this->cleanInput($_POST['as_color背景'][$i]);
    623 $newad['color_link']=$this->cleanInput($_POST['as_color链接'][$i]);
    624 $newad['color_text']=$this->cleanInput($_POST['as_color文本'][$i]);
    625 $newad['color_url']=$this->cleanInput($_POST['as_colorurl'][$i]);
     770$newad['color_border']=$this->cleanInput($_POST['as_color_边框'][$i]);
     771$newad['color_bg']=$this->cleanInput($_POST['as_color_背景'][$i]);
     772$newad['color_link']=$this->cleanInput($_POST['as_color_链接'][$i]);
     773$newad['color_text']=$this->cleanInput($_POST['as_color_文本'][$i]);
     774$newad['color_url']=$this->cleanInput($_POST['as_color_url'][$i]);
    626775}
    627776其他
     
    774923if($criteria==“发布”)
    775924        {
     925//获取特定的帖子url
    776926返回get_permalink($criteriaparam);
    777927}
    778928elseif($criteria==“page”)
    779929        {
     930//获取特定页面url
    780931返回get_permalink($criteriaparam);
    781932}
     933elseif($criteria==“list”)
     934        {
     935//获取特定列表url
     936返回get_category_link($criteriaparam);
     937}
    782938elseif($criteria==“类别”)
    783939        {
     940//获取指定类别中的任何帖子
    784941$recent_posts=wp_get_recent_phosts(数组('numberposts'=>'1','post_type'=>'post','poststatus'=>‘publish’,'category'=>$criteriaparam);
    785942if(count($recent_posts))返回get_permalink($rement_posts[0][“ID”]);
     
    788945elseif($criteria==“主页”)
    789946        {
     947//主页url
    790948return get_home_url();
    791949}
    792950elseif($criteria==“allposts”)
    793951        {
     952//获得任何帖子
    794953$recent_posts=wp_get_recent_phosts(数组('numberposts'=>'1','post_type'=>'post','post_status'=>‘publish’);
    795954if(count($recent_posts))返回get_permalink($rement_posts[0][“ID”]);
     
    798957elseif($criteria==“allpages”)
    799958        {
     959//获取任何页面
    800960$recent_posts=wp_get_recent_phosts(数组('numberposts'=>'1','post_type'=>'页面','post_status'=>‘发布’);
    801961if(count($recent_posts))返回get_permalink($rement_posts[0][“ID”]);
    802962否则返回$nonefoundurl;
    803963}
    804 else//移动或默认(全部)段
     964elseif($criterial=“所有列表”)
     965        {
     966//获取任何类别
     967$categories=获取类别();
     968//由于某些原因,它返回的数组并不总是从0索引开始
     969$keys=数组键($categories);
     970$firstkey=$keys[0];
     971if(count($categories))返回getcategory_link($categories[$firstkey]->termid);
     972否则返回$nonefoundurl;
     973}
     974else//默认(all)段
    805975        {
    806976//返回帖子或页面
     
    8331003//如果(isset($ad['customcode']))$qs.=“&as_customcode[$i]=”.urlencode($ad['customcode']);
    8341004if(isset($ad['color']))$qs.=“&as_color[$i]=”.urlencode($ad['color']);
    835 if(isset($ad['color_border']))$qs.=“作为颜色(&A)border[$i]=“.urlencode($ad['color_border']);
    836 if(isset($ad['color_bg']))$qs.=“作为颜色(&A)bg[$i]=“.urlencode($ad['color_bg']);
    837 if(isset($ad['color_link'])$qs.=“作为颜色(&A)链接[$i]=“.urlencode($ad['color_link']);
    838 if(isset($ad['color_text']))$qs.=“作为颜色(&A)text[$i]=“.urlencode($ad['color_text']);
    839 if(isset($ad['color_url']))$qs.=“作为颜色(&A)url[$i]=“.urlencode($ad['color_url']);
     1005if(isset($ad['color_border']))$qs.=“作为颜色(&A)_border[$i]=“.urlencode($ad['color_border']);
     1006if(isset($ad['color_bg']))$qs.=“作为颜色(&A)_bg[$i]=“.urlencode($ad['color_bg']);
     1007if(isset($ad['color_link']))$qs.=“作为颜色(&A)_链接[$i]=“.urlencode($ad['color_link']);
     1008if(isset($ad['color_text']))$qs.=“作为颜色(&A)_text[$i]=“.urlencode($ad['color_text']);
     1009if(isset($ad['color_url']))$qs.=“作为颜色(&A)_url[$i]=“.urlencode($ad['color_url']);
    8401010}
    8411011返回$qs;
     
    12251395   
    12261396//静态
    1227 公共职能申请短代码渲染器($rendererarr)
     1397公共职能申请渲染器($rendererarr)
    12281398    {
    12291399$buffer=“”;
     
    12411411    }
    12421412   
    1243     //静态的
     1413    /*
    12441414公共函数applySidebarRenderers($rendererarr)
    12451415    {
     
    12551425}
    12561426    }
     1427*/
    12571428}
    12581429
     
    12751446//输出小部件的内容
    12761447全局$amped_sense;
    1277 AmpedSenseRenderer::applySidebarRenderers($amped_sense->widgetA_renders);     
     1448if($amped_sense->settings['render']=='client')echo“<script>AmpedSense.OptimizeAdSpot('SA')</script>”;
     1449else echo AmpedSenseRenderer::applyRenderers($amped_sense->widgetA_renders);
    12781450    }
    12791451//不需要form()或update(),因为没有选项
     
    12961468//输出小部件的内容
    12971469全局$amped_sense;
    1298 AmpedSenseRenderer::applySidebarRenderers($amped_sense->widgetB_renderers);     
     1470if($amped_sense->settings['render']=='client')echo“<script>AmpedSense.OptimizeAdSpot('SB')</script>”;
     1471else echo AmpedSenseRenderer::applyRenderers($amped_sense->widgetB_renderers);
    12991472    }
    13001473//不需要form()或update(),因为没有选项
     
    13171490//输出小部件的内容
    13181491全局$amped_sense;
    1319 AmpedSenseRenderer::applySidebarRenderers($amped_sense->widgetC_renderers);     
     1492if($amped_sense->settings['render']=='client')echo“<script>AmpedSense.OptimizeAdSpot('SC')</script>”;
     1493else echo AmpedSenseRenderer::applyRenderers($amped_sense->widgetC_renderers);     
    13201494    }
    13211495//不需要form()或update(),因为没有选项
  • ampedsense-adsense-split-tester/trunk/main.php

    1324318兰特 1341916兰特  
    1616}
    1717
    18 ?>
    19 <?php(电话)
    20 //将js和css排队
    21 wp_enque_style(“AmpedSense自定义BS”,$amped_sense->get_admin_dir()。“资源/aswrapped-bootstrap-3.0.3.css”);
    22 wp_enqueue_style(“AmpedSense自定义样式”,$amped_sense->get_admin_dir()。“资源/as_style.css”);
    23 wp_enqueue_style(“jQuery UI平滑度”,$amped_sense->get_admin_dir()。“resources/jquery-ui-smoothress-1.10.4.css”);
    24 wp_enqueue_script('jquery-ui-core');
    25 wp_enque_script(“jscolor”,$amped_sense->get_admin_dir()。“resources/jscolor.js”);
    2618?>
    2719
     
    622614       
    623615<div class='form-group adsense<?php echo$i;?>as_adcustomcolorrow<?php echo$i;?>'style='显示:无'>
    624 <label class='col-sm-2 control-label'for='as_color边界<?php回声$i;?>'>边框颜色</label>
    625 <div class='col-sm-6'>
    626 <input type='text'name='as_colorborder[<?php-echo$i;?>]'id='as_color边界<?php echo$i;?>'class='form-control-color'最大长度=6<?php if($editingad&&isset($currentad)&&issset($currentad['color_border']))echo“value='$currentidad[color_order]'”;else echo“value='FFFFFF'”;?>>
     616<label class='col-sm-2 control-label'for='as_color_边界<?php回声$i;?>'>边框颜色</label>
     617<div class='col-sm-6'>
     618<input type='text'name='as_color_border[<?php-echo$i;?>]'id='as_color_边界<?php echo$i;?>'class='form-control-color'最大长度=6<?php if($editingad&&isset($currentad)&&issset($currentad['color_border']))echo“value='$currentidad[color_order]'”;else echo“value='FFFFFF'”;?>>
    627619</div>
    628620</div>
    629621       
    630622<div class='form-group adsense<?php echo$i;?>as_adcustomcolorrow<?php echo$i;?>'style='显示:无'>
    631 <label class='cl-sm-2控制标签'for='as_color背景<?php回声$i;?>'>背景颜色</label>
    632 <div class='col-sm-6'>
    633 <input type='text'name='as_colorbg[<?php-echo$i;?>]'id='as_color背景<?php echo$i;?>'class='form-control-color'最大长度=6<?php if($editingad&&isset($currentad)&&isset($currentad['color_bg']))echo“value='$currentad[color_bg]'”;else echo“value='FFFFFF'”;?>>
     623<label class='col-sm-2 control-label'for='as_color_背景<?php回声$i;?>'>背景颜色</label>
     624<div class='col-sm-6'>
     625<input type='text'name='as_color_bg[<?php-echo$i;?>]'id='as_color_背景<?php echo$i;?>'class='form-control-color'最大长度=6<?php if($editingad&-isset($currentad)&&isset($currentad['color_bg']))echo“value='$currentidad[color_bg]'”;else echo“value='FFFFFF'”;?>>
    634626</div>
    635627</div>
    636628       
    637629<div class='form-group adsense<?php echo$i;?>as_adcustomcolorrow<?php echo$i;?>'style='显示:无'>
    638 <label class='col-sm-2 control-label'for='as_color链接<?php回声$i;?>'>链接颜色</label>
    639 <div class='col-sm-6'>
    640 <input type='text'name='as_color链接[<?php echo$i;?>]'id='as_color链接<?php echo$i;?>'class='form-control-color'最大长度=6<?php if($editingad&-isset($currentad)&&isset($currentad['color_link']))echo“value='$currentidad[color_link]'”;else echo“value='1E0FBE'”;?>>
     630<label class='col-sm-2 control-label'for='as_color_链接<?php回声$i;?>'>链接颜色</label>
     631<div class='col-sm-6'>
     632<input-type='text'名称='as_color_链接[<?php echo$i;?>]'id='as_color_链接<?php echo$i;?>'class='form-control-color'最大长度=6<?php if($editingad&-isset($currentad)&&isset($currentad['color_link']))echo“value='$currentidad[color_link]'”;else echo“value='1E0FBE'”;?>>
    641633</div>
    642634</div>
    643635       
    644636<div class='form-group adsense<?php echo$i;?>as_adcustomcolorrow<?php echo$i;?>'style='显示:无'>
    645 <label class='col-sm-2 control-label'for='as_color文本<?php回声$i;?>'>文本颜色</label>
    646 <div class='col-sm-6'>
    647 <input type='text'name='as_colortext[<?php echo$i;?>]'id='as_color文本<?php echo$i;?>'class='form-control-color'最大长度=6<?php if($editingad&&isset($currentad)&&issset($currentad['color_text']))echo“value='$currentidad[color_text]'”;else echo“value='373737'”;?>>
     637<label class='col-sm-2 control-label'for='as_color_文本<?php回声$i;?>'>文本颜色</label>
     638<div class='col-sm-6'>
     639<input type='text'name='as_color_text[<?php echo$i;?>]'id='as_color_文本<?php echo$i;?>'class='form-control-color'最大长度=6<?php if($editingad&-isset($currentad)&&isset($currentad['color_text']))echo“value='$currentidad[color_text]'”;else echo“value='373737'”;?>>
    648640</div>
    649641</div>
    650642       
    651643<div class='form-group adsense<?php echo$i;?>as_adcustomcolorrow<?php echo$i;?>'style='显示:无'>
    652 <label class='col-sm-2 control-label'for='as_color网址<?php回声$i;?>'>URL颜色</label>
    653 <div class='col-sm-6'>
    654 <input type='text'name='as_colorurl[<?php-echo$i;?>]'id='as_color网址<?php echo$i;?>'class='form-control-color'最大长度=6<?php if($editingad&&isset($currentad)&&issset($currentad['color_url']))echo“value='$currentida[color_url]'”;else echo“value='006621'”;?>>
     644<label class='cl-sm-2控制标签'for='as_color_网址<?php回声$i;?>'>URL颜色</label>
     645<div class='col-sm-6'>
     646<input type='text'name='as_color_url[<?php-echo$i;?>]'id='as_color_网址<?php echo$i;?>'class='form-control-color'最大长度=6<?php if($editingad&-isset($currentad)&&isset($currentad['color_url']))echo“value='$currentidad[color_url]'”;else echo“value='006621'”;?>>
    655647</div>
    656648</div>
  • ampedsense-adsense-split-tester/trunk/readme.txt

    1324318兰特 1341916兰特  
    标签:广告,广告,谷歌
    44要求至少:3.6
    5 测试达到:4.4。1
    6 稳定标签:4.06
     5测试达到:4.4。2
     6稳定标签:4.07
    77许可证:GPLv2或更高版本
    88许可证URI:http://www.gnu.org/licenses/gpl-2.0.html
     
    7070==变更日志==
    7171
     72= 4.07 =
     73*客户端渲染模式选项(BETA)-缓存友好!
     74*新段类型-类别列表和特定类别列表
     75*错误修复:段命名,日期选取器
     76
    7277= 4.06 =
    7378*高级功能已解锁
  • ampedsense-adsense-split-tester/trunk/segments.php

    1308454兰特 1341916兰特  
    1212
    1313?>
    14 <?php(电话)
    15 //将js和css排队
    16 wp_enqueue_style(“AmpedSense自定义BS”,$amped_sense->get_admin_dir()。“resources/aswrapped-botstrap-3.0.css”);
    17 wp_enqueue_style(“AmpedSense自定义样式”,$amped_sense->get_admin_dir()。“资源/as_style.css”);
    18 ?>
     14
    1915<div class='amedsense'>
    2016<?php(电话)
     
    6460'allpages'=>'All Pages',
    6561'allposts'=>'allposts',
     62“alllists”=>“所有类别列表”,
    6663'主页'=>'主页',
    6764“页面”=>“特定页面”,
    6865“帖子”=>“特定帖子”,
     66“list”=>“特定类别列表”,
    6967“类别”=>“类别中的帖子”);
    7068foreach($criteriaoptions作为$criterakey=>$criterival)
     
    147145函数toggleCriteriaSettings(){
    148146var val=jQuery('#as_criteria').val();
    149    
    150 //集合名称
    151 if(val==“所有页面”)
    152     {
    153 jQuery('#as_segmentname').val('所有页面');
    154     }
    155 else if(val==“所有帖子”)
    156     {
    157 jQuery('#as_segmentname').val('所有帖子');
    158     }
    159 else if(val==“主页”)
    160     {
    161 jQuery('#as_segmentname').val('主页');
    162     }
    163 else if(val==“页面”)
    164     {
    165 var pgname=jQuery('#as_criteriaparam_page option:selected').text();
    166 jQuery('#as_segmentname').val(pgname);
    167     }
    168 else if(val=='post')
    169     {
    170 var postname=jQuery('#as_criteriaparam_post-option:selected').text();
    171 jQuery('#as_segmentname').val(postname);
    172     }
    173 else if(val==“类别”)
    174     {
    175 var catname=jQuery('#as_criteriaparam_category-option:selected').text();
    176 jQuery('#as_segmentname').val(catname);
    177     }
    178    
     147
    179148//显示/隐藏其他字段
    180149if(val==“页面”)
     
    190159jQuery('.as_criteriassetting_post').show();
    191160    }
    192 else if(val==“类别”)
     161否则如果(val=“类别”|val==“列表”)
    193162    {
    194163jQuery('.as_criteriasetting_page').hide();
     
    203172    }
    204173}
     174
     175函数suggestSegmentName(){
     176var val=jQuery('#as_criteria').val();
     177   
     178//集合名称
     179if(val=“默认”)
     180    {
     181jQuery('#as_segmentname').val('整个站点');
     182    }
     183if(val==“所有页面”)
     184    {
     185jQuery('#as_segmentname').val('所有页面');
     186    }
     187else if(val==“所有帖子”)
     188    {
     189jQuery('#as_segmentname').val('所有帖子');
     190    }
     191else if(val==“所有列表”)
     192    {
     193jQuery('#as_segmentname').val('所有列表');
     194    }
     195else if(val==“主页”)
     196    {
     197jQuery('#as_segmentname').val('主页');
     198    }
     199否则如果(val=“页面”)
     200    {
     201var pgname=jQuery('#as_criteriaparam_page option:selected').text();
     202jQuery('#as_segmentname').val(pgname);
     203    }
     204else if(val=='post')
     205    {
     206var postname=jQuery('#as_criteriaparam_post-option:selected').text();
     207jQuery('#as_segmentname').val(postname);
     208    }
     209else if(val=='list')
     210    {
     211var catname=jQuery('#as_criteriaparam_category-option:selected').text();
     212jQuery('#as_segmentname').val(catname+'List');
     213    }
     214else if(val==“类别”)
     215    {
     216var catname=jQuery('#as_criteriaparam_category-option:selected').text();
     217jQuery('#as_segmentname').val(catname+'Posts');
     218    }
     219}
    205220jQuery('#as_criteria,#as_crinteriaparam_page,#as_criteriaparam_post,#as_criteriaparam_category').change(toggleCriteriaSettings);
     221jQuery('#as_criteria,#as_crinteriaparam_page,#as_criteriaparam_post,#as_criteriaparam_category').change(suggestSegmentName);
    206222切换标准设置()//立即调用以设置第一页加载
     223<?php(电话)
     224if(!$editing){//并建议名称if新段
     225    ?> 建议段名称();<?php(电话)
     226} ?>
    207227
    208228//验证
  • ampedsense-adsense-split-tester/trunk/settings.php

    1324318兰特 1341916兰特  
    4040}
    4141?>
    42 <?php(电话)
    43 //将js和css放入队列
    44 wp_enque_style(“AmpedSense自定义BS”,$amped_sense->get_admin_dir()。“资源/aswrapped-bootstrap-3.0.3.css”);
    45 wp_enqueue_style(“AmpedSense自定义样式”,$amped_sense->get_admin_dir()。“资源/as_style.css”);
    46 ?>
     42
    4743<div class='amedsense'>
    4844<h2>设置</h2>
     
    7470<input type='text'class='form-control'id='as_siteabbrev'name='as_steabbrev'maxlength='3'placeholder='Foo'value='<?php echo$amped_sense->设置['siteabbrev'];?>'>
    7571谷歌报告中用作前缀的3个字母缩写
     72</div>
     73</div>
     74<div class='form-group'>
     75渲染模式
     76<div class='col-sm-6'>
     77<label class='radio-inline'><input type='radiao'name='as_render'id='as_lender_client'value='client'?php if($amped_sense->settings[‘nder’]=‘client’)echo“checked=‘checked’”;?>>客户端(缓存友好型)-BETA
     78<label class='radio-inline'><input type='radiao'name='as_render'id='as_lender_server'value='server'?php if($amped_sense->settings['render']=='server')echo“checked='checked'”;?>>服务器(隐藏测试设置)</label>
     79<label class='radio-inline'style='adding-left:5px'><a href='http://www.ampedsense.com/render-mode-client-vs-server'target='_blank'>了解更多信息
    7680</div>
    7781</div>
注:请参见TracChangeset(跟踪变更集)获取有关使用变更集查看器的帮助。