https://www.wuisou.com/s/qgpk/845588112.html https://www.wuisou.com/s/jb/77292601.html https://www.wuisou.com/s/nygt/356490897.html https://www.wuisou.com/s/hnrp/404524403.html https://www.wuisou.com/s/xy/845922032.html https://www.wuisou.com/s/fcl/370682417.html https://www.wuisou.com/s/wzgw/577211489.html https://www.wuisou.com/s/jgwt/806991710.html https://www.wuisou.com/s/smd/176201864.html https://www.wuisou.com/s/dgj/760301438.html https://www.wuisou.com/s/rm/997214188.html https://www.wuisou.com/s/qp/98531543.html https://www.wuisou.com/s/nl/689720595.html https://www.wuisou.com/s/nzj/345459086.html https://www.wuisou.com/s/hnrp/168479435.html https://www.wuisou.com/s/smd/246781854.html https://www.wuisou.com/s/rwj/516057050.html https://www.wuisou.com/s/mbpl/253984414.html https://www.wuisou.com/s/nygt/89969494.html https://www.wuisou.com/s/qgpk/645341058.html https://www.wuisou.com/s/rd/452955814.html https://www.wuisou.com/s/stgg/73894108.html https://www.wuisou.com/s/nl/570464912.html https://www.wuisou.com/s/qly/434944877.html https://www.wuisou.com/s/lqhc/968101341.html https://www.wuisou.com/s/jgwt/220452397.html https://www.wuisou.com/s/pxf/772073564.html https://www.wuisou.com/s/hhjj/691203420.html https://www.wuisou.com/s/mbpl/124229471.html https://www.wuisou.com/s/qp/532418646.html https://www.wuisou.com/s/hrm/408200678.html https://www.wuisou.com/s/nl/655505358.html https://www.wuisou.com/s/jfz/437866735.html https://www.wuisou.com/s/wzgw/976254265.html https://www.wuisou.com/s/yx/85949330.html https://www.wuisou.com/s/lxgg/443736280.html https://www.wuisou.com/s/xy/18715071.html https://www.wuisou.com/s/qtqx/737905573.html https://www.wuisou.com/s/tpn/565334812.html https://www.wuisou.com/s/rwj/690265292.html https://www.wuisou.com/s/jcr/98387597.html https://www.wuisou.com/s/brjh/114791981.html https://www.wuisou.com/s/zz/876040021.html https://www.wuisou.com/s/tcfx/610007184.html https://www.wuisou.com/s/sj/163474468.html https://www.wuisou.com/s/xy/276614573.html https://www.wuisou.com/s/nl/22945304.html https://www.wuisou.com/s/zz/690258055.html https://www.wuisou.com/s/gwtj/352671847.html https://www.wuisou.com/s/nygt/345075827.html https://www.wuisou.com/s/qp/435448612.html https://www.wuisou.com/s/zz/229350405.html https://www.wuisou.com/s/tcfx/71414456.html https://www.wuisou.com/s/qgpk/509367461.html https://www.wuisou.com/s/jfz/815382406.html https://www.wuisou.com/s/yc/888603660.html https://www.wuisou.com/s/hhjj/148074244.html https://www.wuisou.com/s/qtqx/909521874.html https://www.wuisou.com/s/qly/272314514.html https://www.wuisou.com/s/fnn/895515574.html https://www.wuisou.com/s/wzgw/954835991.html https://www.wuisou.com/s/fnn/479232795.html https://www.wuisou.com/s/jb/586555406.html https://www.wuisou.com/s/lxgg/690077148.html https://www.wuisou.com/s/dgj/330831554.html https://www.wuisou.com/s/zz/229604925.html https://www.wuisou.com/s/nl/941987085.html https://www.wuisou.com/s/nwr/733757713.html https://www.wuisou.com/s/brjh/900942381.html https://www.wuisou.com/s/msg/282229255.html https://www.wuisou.com/s/jfz/172031429.html https://www.wuisou.com/s/nygt/215154078.html https://www.wuisou.com/s/hm/389371774.html https://www.wuisou.com/s/smd/191446913.html https://www.wuisou.com/s/mkfw/85640016.html https://www.wuisou.com/s/nygt/15478640.html https://www.wuisou.com/s/mkfw/568838715.html https://www.wuisou.com/s/lxgg/699376897.html https://www.wuisou.com/s/wg/537613895.html https://www.wuisou.com/s/fcl/463512527.html https://www.wuisou.com/s/hrm/183615005.html https://www.wuisou.com/s/rm/656020449.html https://www.wuisou.com/s/yc/286822089.html https://www.wuisou.com/s/qly/480601228.html https://www.wuisou.com/s/wg/218640988.html https://www.wuisou.com/s/rwj/639280595.html https://www.wuisou.com/s/jb/482665978.html https://www.wuisou.com/s/msg/798132101.html https://www.wuisou.com/s/msg/963740086.html https://www.wuisou.com/s/gwtj/487742232.html https://www.wuisou.com/s/jb/393503399.html https://www.wuisou.com/s/stgg/745577775.html https://www.wuisou.com/s/fcl/744100657.html https://www.wuisou.com/s/msg/396789116.html https://www.wuisou.com/s/msg/116348245.html https://www.wuisou.com/s/brjh/584689046.html https://www.wuisou.com/s/lqhc/766009324.html https://www.wuisou.com/s/stgg/475464168.html https://www.wuisou.com/s/msg/878084419.html https://www.wuisou.com/s/ny/873022077.html

emlg侧边栏微语美化教程

  • 内容
  • 相关

QQ图片20180224191026.png

前几天没事干就把侧边栏微语美化了一下,也算练习php吧,

话不多说,直接打开模版里面的mou文件找到最新微语的代码然后替换成下面的代码即可。

代码如下:

<?php
//widget:最新微语
function widget_twitter($title){
	global $CACHE; 
	$newtws_cache = $CACHE->readCache('newtw');
	$istwitter = Option::get('istwitter');
    $color3 = '(3, 195, 102)';
	$color1 = '(255, 144, 136)';
	$color4 = '(0, 175, 240)';
	$color2 = '(255, 169, 0)';
	?>
	<li class="box-a mb20">
    <h3 class="title pt5 pl10"><span><?php echo $title; ?></span></h3>
	<ul class="newlist">
		<?php $i=1;foreach($newtws_cache as $value){?>
		<?php $img = empty($value['img']) ? "" : '<a title="查看图片"  class="t_img" href="'.BLOG_URL.str_replace('thum-', '', $value['img']).'" target="_blank">&nbsp;</a>';?>
		<li>
		<p style="color:rgb<?php if($i==1){?><?php echo $color1;?>
	  <?php }else if($i==2){ ?><?php echo $color2;?>
      <?php }else if($i==3){ ?><?php echo $color3;?>
		 <?php }else{ ?><?php echo $color4;?>
		<?php }?>;"><?php if($i==1){?><c style="color:#fff;background:#ff9088;padding:1px 4px;border-radius:3px"><?php echo $i;?></c>.
			<?php }else if($i==2){ ?><c style="color:#fff;background:#ffa900;padding:1px 4px;border-radius:3px"><?php echo $i;?></c>.
      <?php }else if($i==3){ ?><c style="color:#fff;background:#03c366;padding:1px 4px;border-radius:3px"><?php echo $i;?></c>.
		 <?php }else{ ?><c style="color:#fff;background:#00aff0;padding:1px 4px;border-radius:3px"><?php echo $i;?></c>.
		<?php }?><?php echo preg_replace("/\[F(([1-4]?[0-9])|50)\]/",'<img alt="face" src="'.TEMPLATE_URL.'img/face/$1.gif"  />',$value['t']);echo date('(Y年n月j日)',$value['date']);?>
				</p></li>
	<?php $i++; } ?>
	</ul>
	</li>
<?php }?>

评论后还是无法显示下载地址?清理缓存-点我试试
热度:1759° 评分:8.7 发布时间: 2018年2月24日

本文标签:

版权声明:若无特殊注明,本文皆为《小洋vier》原创,转载请保留文章出处。

本文链接:emlg侧边栏微语美化教程 - https://www.wuisou.com/post-997.html

发表评论

电子邮件地址不会被公开。 必填项已用*标注