<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>邪罗刹的菠萝阁 &#187; theme</title>
	<atom:link href="http://www.rainmoe.com/tag/theme/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rainmoe.com</link>
	<description>One code, one world ...</description>
	<lastBuildDate>Thu, 29 Dec 2011 14:04:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>主题发布：EvilGreen v1.00 （目前小邪在用的主题）</title>
		<link>http://www.rainmoe.com/2011/04/08/evilgreen-published/</link>
		<comments>http://www.rainmoe.com/2011/04/08/evilgreen-published/#comments</comments>
		<pubDate>Fri, 08 Apr 2011 02:19:37 +0000</pubDate>
		<dc:creator>小邪</dc:creator>
				<category><![CDATA[奇客 [Geek]]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://www.evlos.org/?p=2206</guid>
		<description><![CDATA[　　嘿嘿，之前答应过大家，到小邪生日的这一天就发布这个主题。今天是 4 月 8 日，这就是小邪真实的生日日期喔，呵呵，那么喜欢小邪主题的童鞋请通过文中的传送门传送到 Google Code 下载。



一. WordPress 主题 - EvilGreen 发布：

<span class="readmore"><a href="http://www.rainmoe.com/2011/04/08/evilgreen-published/" title="主题发布：EvilGreen v1.00 （目前小邪在用的主题）">阅读全文——共1755字</a></span>]]></description>
			<content:encoded><![CDATA[<p>　　嘿嘿，之前答应过大家，到小邪生日的这一天就发布这个主题。今天是 4 月 8 日，这就是小邪真实的生日日期喔，呵呵，那么喜欢小邪主题的童鞋请通过文中的传送门传送到 Google Code 下载。</p>
<p><img src="http://www.rainmoe.com/wp-content/uploads/2011/04/Cap0006970.png" alt="" title="" width="600" height="471" class="alignnone size-full wp-image-2211" /></p>
<p><span id="more-2206"></span><strong>一. WordPress 主题 - EvilGreen 发布：</strong></p>
<p>　　小邪现在发布新作品都会同时在 <幽灵域>，这是一个小邪的网络名片兼导航站兼个人WIKI兼作品发布页，嘿嘿。因为每次更新主题按理说小邪都会用新博文的形式发布，这样子的话大家要找最新的版本得翻小邪的文章会很麻烦，所以请直接到发布页去查看即可。╮(╯▽╰)╭，URL 链接地址不怎么友好，很多冒号神马的，因为 Nginx 的 Url Rewrite 好麻烦啊，请将就一下咯 o(*￣▽￣*)ゞ。</p>
<p>　　发布页 - <a target="_blank" href="http://imevlos.com/wiki/doku.php?id=cn:evlos:work:evilgreen">http://imevlos.com/wiki/doku.php?id=cn:evlos:work:evilgreen</a></p>
<p>　　主题名称：EvilGreen [邪恶绿]<br />
　　主题版本：1.0.0<br />
　　作者：Evlos [小邪]<br />
　　建议WP版本：3.0 以上<br />
　　演示：目前是本站 [以后有变动请关注发布页]</p>
<p>　　亮点：<br />
　　1. WP Gravatar Mini Cache、Show Useragent、Some Chinese Please!、SyntaxHighlighter Evolved、WP-PageNavi、WP-PostViews（请自行按照插件说明补充输出函数）、W3 Total Cache 以及 WP Kit CN，这些插件主题都完美支持喔。<br />
　　2. 关于浏览器支持，Firefox、Chrome、Opera、Safari、IE7、IE8、IE9 都支持，但是 IE6 杯具。<br />
　　3. 主题无后台设置，因为个人不大想在 WP 的循环上面多挂什么东西，效率优先。<br />
　　4. 主题语言的话，中英文基本都没问题。</p>
<p>　　缺陷：<br />
　　1. 因为是第一个版本，肯定不能适合所有人，请见谅，有意见请反馈给小邪。<br />
　　2. 小邪目前学业比较繁重，如果没有及时回复请别介意喔。<br />
　　3. 目前不支持多级菜单，因为小邪从来没有用到这个功能，所以没有写，以后会逐渐修正。<br />
　　4. 因为之前这个主题是小邪的私人不发布主题，所以很多地方都只是为小邪量身定做的，不适合大家的地方请淡定。</p>
<p><img src="http://www.rainmoe.com/wp-content/uploads/2011/04/Cap0006973.png" alt="" title="" width="600" height="304" class="alignnone size-full wp-image-2212" /></p>
<p>　　注意：（Updated @ 2011.04.09 0:43 - time in Netherlands）<br />
　　1. 主题内的 comments.php 以及 mytheme_comment(); 使用自  <a target="_blank" href="http://zww.me/">Zww</a> 大师的代码。<br />
　　2. 表情部分 JS 使用自  <a target="_blank" href="http://kan.willin.org/">Willin</a> 大师的代码。<br />
　　3. 引用了部分某 SEO 框架的代码，因为已经过了几乎一年了，完全想不起来是哪个了，面壁。<br />
　　4. 由于所在时区不同，无法及时通知引用代码所有者，如果有版权问题请留言，小邪会第一时间处理。</p>
<p>　　版权：（Updated @ 2011.04.10 7:58 - time in Netherlands）<br />
　　1. 本主题作品遵循 Attribution-NonCommercial-ShareAlike 2.5 Generic (CC BY-NC-SA 2.5) 协议。<br />
　　2. 您可以自由：复制、发行、展览、表演、放映、广播或通过信息网络传播本作品；创作演绎作品。<br />
　　3. 惟须遵守下列条件：<br />
　　*. 署名 — 您必须按照作者或者许可人指定的方式对作品进行署名。<br />
　　*. 非商业性使用 — 您不得将本作品用于商业目的。<br />
　　*. 相同方式共享 — 如果您改变、转换本作品或者以本作品为基础进行创作，您只能采用与本协议相同的许可协议发布基于本作品的演绎作品。</p>
<p>　　下载传送门：<br />
　　- <a target="_blank" href="http://code.google.com/p/evlosbox/downloads/detail?name=evilgreen.rar&#038;can=2&#038;q=">http://code.google.com/p/evlosbox/downloads/detail?name=evilgreen.rar&#038;can=2&#038;q=</a></p>
<p><strong>二. 尾记：</strong></p>
<p>　　就算放假了也还是好多事情啊，To Do list 上面都已经翻了好几页了。希望小邪挺住。今天的文章就不说太多东西了，之前发现主题上面有太多为小邪自己量身定做的代码，但是基本上不支持大众，而且对各个插件会有兼容性冲突，花了好长时间来去除，已经蛮迟了呢。<br />
　　那么小邪就乖乖去睡觉咯 (～﹃～)~zZ，有事请烧纸，啊，不，请留言 (￣▽￣")。</p>
<p>　　P.s. 最近可能会换到虚拟主机上面，因为 IPad 花了好大的预算，所以每年 120 美元的 VPS 预算已经耗尽 ╮(╯▽╰)╭，VPS 近两天到期。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rainmoe.com/2011/04/08/evilgreen-published/feed/</wfw:commentRss>
		<slash:comments>189</slash:comments>
		</item>
		<item>
		<title>新的原创WordPress主题EvilGreen上线</title>
		<link>http://www.rainmoe.com/2010/12/14/evilgreen/</link>
		<comments>http://www.rainmoe.com/2010/12/14/evilgreen/#comments</comments>
		<pubDate>Tue, 14 Dec 2010 01:30:22 +0000</pubDate>
		<dc:creator>小邪</dc:creator>
				<category><![CDATA[作品 [Work]]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://www.evlos.org/?p=2151</guid>
		<description><![CDATA[> 小邪这几天半失踪的状态是因为把剩余的时间都花在做这个主题以及完善牛奶蛋、幽灵域这两个程序鸟。

> 现在成功搞定了 EvilGreen 主题，这个 WordPress主题 属于私人主题，暂时就不共享鸟 (*/ω＼*)。



<span class="readmore"><a href="http://www.rainmoe.com/2010/12/14/evilgreen/" title="新的原创WordPress主题EvilGreen上线">阅读全文——共1769字</a></span>]]></description>
			<content:encoded><![CDATA[<p>> 小邪这几天半失踪的状态是因为把剩余的时间都花在做这个主题以及完善<a target='_blank' rel='nofollow' href='http://nnd.im/'>牛奶蛋</a>、<a target='_blank' rel='nofollow' href='http://imevlos.com/'>幽灵域</a>这两个程序鸟。<br />
> 现在成功搞定了 EvilGreen 主题，这个 WordPress主题 属于私人主题，暂时就不共享鸟 (*/ω＼*)。</p>
<p><img src="http://www.rainmoe.com/wp-content/uploads/2010/12/Cap0003197.png" alt="" title="" width="600" height="367" class="alignnone size-full wp-image-2152" /></p>
<p><span id="more-2151"></span><strong>一. 主题预览图：</strong></p>
<p>> 这个是首页的预览图，小邪只把第一个文章的图片显示出来，这样子既不显得乱，也很容易阅读查看。</p>
<p><img src="http://www.rainmoe.com/wp-content/uploads/2010/12/Cap0003197a.png" alt="" title="" width="600" height="764" class="alignnone size-full wp-image-2154" /></p>
<p>> 嘿嘿，这地方就直接拿<a target='_blank' rel='nofollow' href='http://zww.me/'>ZWW</a>主题牛人的部分评论代码了，这两天累惨了，实在木有力气去写这个了。</p>
<p><img src="http://www.rainmoe.com/wp-content/uploads/2010/12/Cap0003201.png" alt="" title="" width="600" height="162" class="alignnone size-full wp-image-2157" /></p>
<p><strong>二. 一点小经验：</strong></p>
<pre class="brush: php; auto-links: false; html-script: false; title: ; notranslate">
&lt;?php $ev_count=0; ?&gt; &lt;!-- 首先在循环外面初始化一个变量 --&gt;
&lt;?php if (have_posts()) : while (have_posts()) : the_post(); ?&gt;
&lt;!-- 这是文章的循环 --&gt;
&lt;?php if ($ev_count++&lt;&gt;0) echo ' ev_hidden'; else echo ' ev_show'; ?&gt;
&lt;!-- 在合适的地方输出某个class名称来隐藏图片 --&gt;

.ev_hidden img{display:none;}.ev_hidden img{display:none;}
&lt;!-- 然后用如上的CSS代码来控制这个效果就OK鸟 --&gt;
</pre>
<pre class="brush: php; auto-links: false; html-script: false; title: ; notranslate">
&lt;!-- 此代码是ZWW的可以在点击回复按键之后自动输入@用户名的代码 --&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
jQuery(document).ready(function($){$('.reply').click(function(){
var atid='&quot;#'+$(this).parent().attr(&quot;id&quot;)+'&quot;';
var atname=$(this).prevAll().find('cite:first').text();
$(&quot;#comment&quot;).attr(&quot;value&quot;,&quot;&lt;a href=&quot;+atid+&quot; rel=&quot;+
'&quot;nofollow&quot;'+&quot;&gt;@&quot;+atname+&quot; &lt;/a&gt;, &quot;).focus()});
$('.cancel-comment-reply a').click(
function(){$(&quot;#comment&quot;).attr(&quot;value&quot;,'')})})
&lt;/script&gt;
&lt;!-- ╮(╯▽╰)╭，之前放在header里面没反应，不知道咋了，后来加到comments.php就好了 --&gt;
</pre>
<p><strong>三. 杯具的W3C验证：</strong></p>
<p>> 木有神马想法鸟，直接无视它好了，太蛋疼了。Σ(っ;°д°;)っ JS和HTML结合用，就在标签处报错。</p>
<p><img src="http://www.rainmoe.com/wp-content/uploads/2010/12/Cap0003198.png" alt="" title="" width="600" height="263" class="alignnone size-full wp-image-2153" /></p>
<p><strong>四. 重写了<a target='_blank' rel='nofollow' href='http://nnd.im/'>牛奶蛋</a>的图片浏览界面：</strong></p>
<p>> 图片下面的那个箭头是以图片的左右边为范围，然后随机显示位置的，o(*￣▽￣*)ゞ，感觉蛮好玩的。</p>
<p><img src="http://www.rainmoe.com/wp-content/uploads/2010/12/Cap0003200.png" alt="" title="" width="600" height="145" class="alignnone size-full wp-image-2155" /></p>
<p><img src="http://www.rainmoe.com/wp-content/uploads/2010/12/Cap0003199.png" alt="" title="" width="600" height="406" class="alignnone size-full wp-image-2156" /></p>
<p><strong>五. 基本完成了<a target='_blank' rel='nofollow' href='http://imevlos.com/'>幽灵域</a>程序：</strong></p>
<p>> <a target='_blank' rel='nofollow' href='http://imevlos.com/'>注册和登录系统</a>已经可以正常运行了，现在正在在空闲时间啃RSA非对称加密算法，尽快做好SSO。</p>
<p><img src="http://www.rainmoe.com/wp-content/uploads/2010/12/Cap0003204.png" alt="" title="" width="600" height="428" class="alignnone size-full wp-image-2159" /></p>
<p><strong>六. 用JQUERY控制CSS：</strong></p>
<p><img src="http://www.rainmoe.com/wp-content/uploads/2010/12/Cap0003202.png" alt="" title="" width="600" height="198" class="alignnone size-full wp-image-2158" /></p>
<p>> 点击 “One code, one world ...” 这段字，主题就会自动变成单栏喔，动画木有时间做，就算咯。</p>
<pre class="brush: jscript; auto-links: false; html-script: false; title: ; notranslate">
jQuery(document).ready(function($){
	$(&quot;#blogdescription&quot;).click(function(){
		$(&quot;#sidebar&quot;).css(&quot;display&quot;,&quot;none&quot;);
		$(&quot;#wrapper&quot;).css(&quot;width&quot;,&quot;620px&quot;);
		$(&quot;#mainbox&quot;).css(&quot;margin&quot;,&quot;0&quot;);
		$(&quot;#menu .page_item&quot;).css(&quot;display&quot;,&quot;none&quot;);
		$(&quot;#footnote&quot;).css(&quot;width&quot;,&quot;650px&quot;);
	});
});
</pre>
<p><strong>七. 尾记：</strong></p>
<p>> ╮(╯▽╰)╭，小邪要 [闪人](*￣▽￣)(￣▽:;.…::;.:.:::;..::;.:...，祝大家玩得愉快喔 o(*￣▽￣*)ゞ。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rainmoe.com/2010/12/14/evilgreen/feed/</wfw:commentRss>
		<slash:comments>217</slash:comments>
		</item>
		<item>
		<title>关于主题配色的头部与内部颜色呼应效果</title>
		<link>http://www.rainmoe.com/2010/10/11/colors-of-header-and-content/</link>
		<comments>http://www.rainmoe.com/2010/10/11/colors-of-header-and-content/#comments</comments>
		<pubDate>Mon, 11 Oct 2010 03:05:13 +0000</pubDate>
		<dc:creator>小邪</dc:creator>
				<category><![CDATA[探索 [Explore]]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[lnmp]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://www.evlos.org/?p=2067</guid>
		<description><![CDATA[> 嘿嘿，话说此文首先是主题配色，感觉有眼前一亮的效果。然后下面有5张照片，关于秋意的荷兰小城。

> 哎，最近不给力啊，Freeotfe不支持Linux，小邪在WinXP下面总是感觉懒散，只有在Linux下有激情。



<span class="readmore"><a href="http://www.rainmoe.com/2010/10/11/colors-of-header-and-content/" title="关于主题配色的头部与内部颜色呼应效果">阅读全文——共1071字</a></span>]]></description>
			<content:encoded><![CDATA[<p>> 嘿嘿，话说此文首先是主题配色，感觉有眼前一亮的效果。然后下面有5张照片，关于秋意的荷兰小城。<br />
> 哎，最近不给力啊，Freeotfe不支持Linux，小邪在WinXP下面总是感觉懒散，只有在Linux下有激情。</p>
<p><img src="http://www.rainmoe.com/wp-content/uploads/2010/10/Cap0001763.png" alt="" title="" width="600" height="290" class="alignnone size-full wp-image-2074" /></p>
<p><span id="more-2067"></span><strong>一. 头部与内部颜色呼应：</strong></p>
<p>> 话说，大家应该发现鸟，小邪灰常坏地把 <a target='_blank' rel='nofollow' href='http://zww.me'>Zww怪蜀黍 </a>的 Zbench 主题蹂躏得面目全飞鸟，(￣y▽￣)╭。<br />
> 嘿嘿，o(￣︶￣)n，欢迎大家提各种建议，虽然最近小邪一直遇到各种杯具，不过还是灰常坚挺滴。</p>
<p>> 首先看这张图，配色很平淡，因为小邪喜欢追求简洁与效率，所以经常使用十分灰色的配色方案呢。</p>
<p><img src="http://www.rainmoe.com/wp-content/uploads/2010/10/Cap0001788.png" alt="" title="Cap0001788" width="600" height="419" class="alignnone size-full wp-image-2075" /></p>
<p>> 再看这张，只是加了一条 3PX Solid #5D6977 的线条，感觉就不一样了呢，有一种呼应的舒服感觉。</p>
<p><img src="http://www.rainmoe.com/wp-content/uploads/2010/10/Cap0001789.png" alt="" title="Cap0001789" width="600" height="419" class="alignnone size-full wp-image-2076" /></p>
<p><strong>二. LNMP 0.5：</strong></p>
<p>> 小邪今天很鸡冻地发现 lnmp.org 上面的 LNMP一键安装包 发布鸟，o(*￣▽￣*)ゞ，所以特地来报告下。</p>
<pre class="brush: jscript; auto-links: false; html-script: false; title: ; notranslate">
LNMP 0.5 更新记录 -
*) 升级Nginx到0.7.67、MySQL到5.1.48、PHP升级到5.2.14、PHPMyAdmin升级到3.3.7
*) 为安全将Nginx日志移动到/home/wwwlogs/下面；
*) 更改32位64位判别方式；
*) 增加系统时间调整，防止时间错误造成编译出错；
*) 优化eAccelerator安装程序；
*) 增加eAccelerator安装程序；
</pre>
<p>> 下载版（23.05KB） - <a target='_blank' rel='nofollow' href='http://soft.vpser.net/lnmp/lnmp0.5.tar.gz'>http://soft.vpser.net/lnmp/lnmp0.5.tar.gz</a><br />
> 完整版（44.19MB） - <a target='_blank' rel='nofollow' href='http://soft.vpser.net/lnmp/lnmp0.5-full.tar.gz'>http://soft.vpser.net/lnmp/lnmp0.5-full.tar.gz</a></p>
<p><img src="http://www.rainmoe.com/wp-content/uploads/2010/10/Cap0001762.png" alt="" title="" width="600" height="280" class="alignnone size-full wp-image-2073" /></p>
<p><strong>三. 秋意的荷兰小城：</strong></p>
<p>> 这次拍了一些秋季快到时的荷兰的小城风景，╮(╯▽╰)╭，嘿嘿，其实不是在城中啦，大概在郊外附近。</p>
<p><img src="http://www.rainmoe.com/wp-content/uploads/2010/10/IMAG0348.jpg" alt="" title="" width="600" height="400" class="alignnone size-full wp-image-2071" /></p>
<p>> 活泼的外国小盆友在快乐滴奔跑，o(*￣▽￣*)ゞ，话说远处那只狗蛮好玩的，一直围着它主人转圈。</p>
<p><img src="http://www.rainmoe.com/wp-content/uploads/2010/10/IMAG0347.jpg" alt="" title="" width="600" height="400" class="alignnone size-full wp-image-2070" /></p>
<p>> 回宿舍的时候必经的一个公园，风景超漂亮的，嘿嘿。满地的落叶，哎，手机的镜头不给力啊，灰尘 - -。</p>
<p><img src="http://www.rainmoe.com/wp-content/uploads/2010/10/IMAG0352.jpg" alt="" title="" width="600" height="400" class="alignnone size-full wp-image-2068" /></p>
<p>> 公园里的一个很茂盛的树，应该是什么常青树之类的东东，等某位生物学牛人过来玩的时候认认看。</p>
<p><img src="http://www.rainmoe.com/wp-content/uploads/2010/10/IMAG0349.jpg" alt="" title="" width="600" height="400" class="alignnone size-full wp-image-2072" /></p>
<p>> 从童鞋家里出来的时候，发现了一个感觉相当古老，而且做工很不错的车，可惜车盲小邪认不出来。</p>
<p><img src="http://www.rainmoe.com/wp-content/uploads/2010/10/IMAG0344.jpg" alt="" title="" width="600" height="400" class="alignnone size-full wp-image-2069" /></p>
<p><strong>四. Ubuntu 10.10 更新：</strong></p>
<p><img src="http://www.rainmoe.com/wp-content/uploads/2010/10/Cap0001790.png" alt="" title="Cap0001790" width="600" height="237" class="alignnone size-full wp-image-2077" /></p>
<p>> 久违的强力淫荡传送门 - <a target='_blank' rel='nofollow' href='http://www.ubuntu.com/desktop/get-ubuntu/download'>http://www.ubuntu.com/desktop/get-ubuntu/download</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rainmoe.com/2010/10/11/colors-of-header-and-content/feed/</wfw:commentRss>
		<slash:comments>182</slash:comments>
		</item>
		<item>
		<title>成功把Ajax提交评论效果添加到Zbench</title>
		<link>http://www.rainmoe.com/2010/07/22/add-ajax-comment-to-zbench/</link>
		<comments>http://www.rainmoe.com/2010/07/22/add-ajax-comment-to-zbench/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 18:05:25 +0000</pubDate>
		<dc:creator>小邪</dc:creator>
				<category><![CDATA[代码 [Code]]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[comment]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[zbench]]></category>

		<guid isPermaLink="false">http://www.evlos.org/?p=1966</guid>
		<description><![CDATA[> 话说小邪碰巧在 5d6d 子论坛看到个很牛的 Ajax 评论提交效果，显示灰常好，与一般提交几乎一样呢。

> 所以立马开始动手折腾。不过具体折腾内容小邪只能透露一部分额，不然影响原作者的销售就不好鸟。



<span class="readmore"><a href="http://www.rainmoe.com/2010/07/22/add-ajax-comment-to-zbench/" title="成功把Ajax提交评论效果添加到Zbench">阅读全文——共1746字</a></span>]]></description>
			<content:encoded><![CDATA[<p>> 话说小邪碰巧在 5d6d 子论坛看到个很牛的 Ajax 评论提交效果，显示灰常好，与一般提交几乎一样呢。<br />
> 所以立马开始动手折腾。不过具体折腾内容小邪只能透露一部分额，不然影响原作者的销售就不好鸟。</p>
<p><img src='http://www.rainmoe.com/wp-content/uploads/old/Cap0000535.png' /></p>
<p><span id="more-1966"></span><strong>一. 部分 Zbench 的 CSS 修正：</strong></p>
<p>> 上次的修改还是木有达到小邪心中的完美样式，所以咱们继续补充，添加 Wp-pagenavi 的 CSS 代码。</p>
<pre class="brush: css; auto-links: false; html-script: false; title: ; notranslate">
.wp-pagenavi .page{padding:0 4px;}
.wp-pagenavi .pages{padding-right:5px}
.wp-pagenavi .current{padding:0 4px;}
.wp-pagenavi .nextpostslink{padding:0 4px;}
.wp-pagenavi .larger{}
.wp-pagenavi .last{padding:0 5px;}
//补上 Wp-pagenavi 插件的 CSS

.post .entry img{position:relative;left:-2px;}
//文章中图片整体向左偏移 2px

#footer-inside #back-to-top{position:absolute;top:5px;right:10px;font-size:12px;border:none;color:#AAA;}
//TOP按键向右偏移 20px
</pre>
<p><strong>二. Ajax 效果预览：</strong></p>
<p>> 标题下方的图片是进行 AJAX 提交之后的效果图，看起来和无 AJAX 提交的时候的效果几乎一摸一样。<br />
> 下面则是点击提交按键之后的效果，嘎嘎，小邪太鸡冻了。蛋定，蛋定蛋定，春哥保佑，阿门嘎嘎。</p>
<p><img src='http://www.rainmoe.com/wp-content/uploads/old/Cap0000534.png' /></p>
<p><strong>三. 添加 Ajax 效果的部分步骤：</strong></p>
<p>> 小邪只能透露一部分的修改过程，需要的童鞋请到 <a target='_blank' rel='nofollow' href='http://zww.me/'>Zww主题大湿</a> 的淘宝店去看看，那里有提供服务。<br />
> 额，虽然那里的效果可能有一点儿不同，不过也是很好滴，下面提供Zww的淘宝店传送门 -</p>
<p>> <a target='_blank' rel='nofollow' href='http://item.taobao.com/auction/item_detail-0db1-f7c8975a70ef482efd2d90754d09a9a5.jhtml'>http://item.taobao.com/auction/item_detail-0db1-f7c8975a70ef482efd2d90754d09a9a5.jhtml</a></p>
<pre class="brush: css; auto-links: false; html-script: false; title: ; notranslate">
#commentbox_reload{background:#F2F2F2;display:none;padding-left:10px;border:1px solid #ccc;line-height:40px;margin:10px auto;}
//首先我们增加一个载入提示框的样式
</pre>
<pre class="brush: php; auto-links: false; html-script: false; title: ; notranslate">
&lt;div id=&quot;commentbox_reload_con&quot;&gt;&lt;/div&gt;
//然后用上面的 div 把整个评论列表范围框住以实现 jQuery 的局部刷新
</pre>
<pre class="brush: php; auto-links: false; html-script: false; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot; src=&quot;http://tool.evlos.org/file/jquery-1.2.6.min.js&quot;&gt;&lt;/script&gt;
//载入 jQuery 库，使用 1.0 版本以上的皆可以实现
//再载入包含局部刷新代码的 js 文件，为保护原作者成果这里并不列举

&lt;div id=&quot;commentbox_reload&quot;&gt;&lt;/div&gt;
//最后在适当地方加入载入提示框的 div 即可
</pre>
<p><strong>四. Willin 回复邮件通知 Evlos 样式修改版：</strong></p>
<p>> 嘿嘿，因为木有提供具体的 Ajax 代码，作为补偿。小邪把自己的评论回复邮件通知样式送给大家。</p>
<p><img src='http://www.rainmoe.com/wp-content/uploads/old/Cap0000537.png' /></p>
<p>> <a target='_blank' rel='nofollow' href='http://code.google.com/p/evlosbox/downloads/detail?name=cmn_cssed.zip&#038;can=2&#038;q='>http://code.google.com/p/evlosbox/downloads/detail?name=cmn_cssed.zip&#038;can=2&#038;q=</a></p>
<p><strong>五. 附言：</strong></p>
<p>> 参考文章 -<br />
> Comment Mail Notify - <a target='_blank' rel='nofollow' href='http://kan.willin.org/?p=1295'>http://kan.willin.org/?p=1295</a></p>
<p>> 话说某天看到 Lazy_R 在推上说道 -<br />
> “作为一个懒人，我躺在完全没收拾的沙发上，身下压着衣服撑子。我懒得翻身把撑子抽出来。<br />
> 不过我还不是丧心病狂嘛，我还知道把这个发到twitter上，说明我还是有感觉的 …”</p>
<p>> 嘿嘿，当时小邪就 Orz 了。(*￣▽￣)y ~~</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rainmoe.com/2010/07/22/add-ajax-comment-to-zbench/feed/</wfw:commentRss>
		<slash:comments>132</slash:comments>
		</item>
		<item>
		<title>Zbench主题的代码使用调整手记</title>
		<link>http://www.rainmoe.com/2010/07/20/covered-with-zbench/</link>
		<comments>http://www.rainmoe.com/2010/07/20/covered-with-zbench/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 14:48:42 +0000</pubDate>
		<dc:creator>小邪</dc:creator>
				<category><![CDATA[代码 [Code]]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[zbench]]></category>

		<guid isPermaLink="false">http://www.evlos.org/?p=1965</guid>
		<description><![CDATA[> 菠萝阁使用了好长时间的 Sandevlos 主题，早就觉得看腻了，小邪想是时候来个大变样了，嘎嘎。

> 现在成功换上了 Zww主题帝 的强力主题 - Zbench，并且进行了蛮多的调整，以下是调整手记。



<span class="readmore"><a href="http://www.rainmoe.com/2010/07/20/covered-with-zbench/" title="Zbench主题的代码使用调整手记">阅读全文——共2690字</a></span>]]></description>
			<content:encoded><![CDATA[<p>> 菠萝阁使用了好长时间的 Sandevlos 主题，早就觉得看腻了，小邪想是时候来个大变样了，嘎嘎。<br />
> 现在成功换上了 <a target='_blank' rel='nofollow' href='http://zww.me/'>Zww主题帝</a> 的强力主题 - Zbench，并且进行了蛮多的调整，以下是调整手记。</p>
<p><img src='http://www.rainmoe.com/wp-content/uploads/old/Cap0000505.png' /></p>
<p><span id="more-1965"></span><strong>一. 使主题兼容侧边栏的插件挂件：</strong></p>
<pre class="brush: css; auto-links: false; html-script: false; title: ; notranslate">
#multicollinks li{line-height:10px}
/* 上面的代码来降低侧边栏友情链接的行高 */

#sidebar h4{text-shadow:1px 1px 1px #aaa;color:#445566;font-family:Georgia,&quot;Times New Roman&quot;,Times,serif;font-size:16px;margin:0;padding:0 5px;line-height:30px;border-bottom:1px solid #fff;}
/* 因为 Wp-recentcomments 侧栏的标题是 h3，而下面两个挂件都是 h4，所以为了统一效果就加上 h4 */

li.widget {list-style:none}
/* 去除侧栏挂件前面的列表符号 */
</pre>
<p><strong>二. 使主题兼容 Wp-syntax 代码高亮插件：</strong></p>
<pre class="brush: css; auto-links: false; html-script: false; title: ; notranslate">
.post .entry pre{font-size:12px;width:95%;line-height:16px;overflow:auto;font-family:&quot;Courier New&quot;, FixedSys;color:#555;background:#fafafa;border-top:1px solid #ccc;border-bottom:1px solid #ccc;border-left:15px solid #ccc;border-right:1px solid #ccc;padding:0 5px 16px;margin:0 0 20px;}

.post .entry table{background:#fff;border:1px solid #ccc;border-width:2px;border-collapse:collapse;margin:5px 0 10px;}

.post .entry th,.post .entry td{border:1px solid #ccc;padding:3px 10px;text-align:left;vertical-align:top;}
/* 分别删除上面三处代码，否则会与 wp-syntax 插件冲突 */

.wp_syntax{width:500px;}
.wp_syntax div, .wp_syntax td{overflow:hidden;max-width: 565px;word-break: break-all;word-wrap: break-word;}
.wp_syntax pre {word-wrap:break-word;overflow:hidden;}
/* 对 wp-syntax 插件样式进行适当调整 */
</pre>
<p><strong>三. 写完文章才发现 “三” 木有了，可能是被鬼吃掉了 ..(((m -__-)m</strong></p>
<p><strong>四. 搜索框 与 TOP按键 的CSS样式调整：</strong></p>
<pre class="brush: css; auto-links: false; html-script: false; title: ; notranslate">
#search{box-shadow:2px 2px 5px #777;-moz-box-shadow:2px 2px 5px #777;-webkit-box-shadow:2px 2px 5px #777;position:absolute;background:#565657;right:50%;margin-right:-450px;bottom:-14px;width:230px;height:26px;overflow:hidden;border:1px solid #999;}
/* 修改成下面，去除搜索框阴影 */

#search{position:absolute;background:#565657;right:50%;margin-right:-450px;bottom:-14px;width:230px;height:26px;overflow:hidden;border:1px solid #999;}
</pre>
<pre class="brush: css; auto-links: false; html-script: false; title: ; notranslate">
#footer-inside #back-to-top{position:absolute;top:5px;right:150px;color:#f2f2f2;font-size:14px;}
#footer-inside #back-to-top a{border:none;color:#f2f2f2;}
/* 替换为下面这样，已修改右下角 top 按键的样式 */

#footer-inside #back-to-top{position:absolute;top:5px;right:150px;color:#f2f2f2;font-size:12px;}
#footer-inside #back-to-top a{border:none;color:#AAA;}
#footer-inside #back-to-top {border:none;color:#AAA;}
</pre>
<p><strong>五. 部分 PHP 代码调整：</strong></p>
<pre class="brush: php; auto-links: false; html-script: false; title: ; notranslate">
&lt;?php wp_list_pages('title_li=&amp;depth=2'); ?&gt;
//修改成下面这样，隐藏 ID 为 1949 的页面

&lt;?php wp_list_pages('title_li=&amp;depth=2&amp;exclude=1949'); ?&gt;
</pre>
<pre class="brush: php; auto-links: false; html-script: false; title: ; notranslate">
&lt;li &lt;?php if(is_home()) {?&gt;class=&quot;current_page_item&quot;&lt;?php } ?&gt;&gt;&lt;a href=&quot;&lt;?php echo get_option('home'); ?&gt;/&quot; title=&quot;HomePage&quot;&gt;菠萝阁 [Index]&lt;/a&gt;&lt;/li&gt;
//修改导航栏中的 “Home” 为 “菠萝阁 [Index]”

&lt;li &lt;?php if(is_home()) {?&gt;class=&quot;current_page_item&quot;&lt;?php } ?&gt;&gt;&lt;a href=&quot;&lt;?php echo get_option('home'); ?&gt;/&quot; title=&quot;HomePage&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
</pre>
<pre class="brush: php; auto-links: false; html-script: false; title: ; notranslate">
return '&lt;img alt=&quot;&quot; src=&quot;'.$ava_img_url.'&quot; width=&quot;'.$size.'&quot; height=&quot;'.$size.'&quot; /&gt;';
//修改小邪的 MiniGravatar 插件代码中如上的，改成下面这样，增加 class=&quot;avatar&quot;

return '&lt;img alt=&quot;&quot; src=&quot;'.$ava_img_url.'&quot; class=&quot;avatar&quot; width=&quot;'.$size.'&quot; height=&quot;'.$size.'&quot; /&gt;';
</pre>
<pre class="brush: php; auto-links: false; html-script: false; title: ; notranslate">
&lt;?php include(TEMPLATEPATH . '/smiley.php'); ?&gt;
//comments.php中如上代码，修改为如下
//使用 wp-smiles 插件来显示表情，因为原生的一但表情太多则会被挤到第二行去鸟

&lt;?php cs_print_smilies(); ?&gt;
</pre>
<p><strong>六. 回复时自动添加 @用户名：</strong></p>
<pre class="brush: php; auto-links: false; html-script: false; title: ; notranslate">
&lt;?php wp_head(); ?&gt;&lt;/head&gt;
//在 header.php 中如上代码的下方加入如下代码，载入 1.2.6 jQuery库与 main.js

&lt;script type=&quot;text/javascript&quot; src=&quot;http://tool.evlos.org/file/jquery-1.2.6.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;&lt;?php bloginfo('template_directory'); ?&gt;/main.js&quot;&gt;&lt;/script&gt;
</pre>
<pre class="brush: jscript; auto-links: false; html-script: false; title: ; notranslate">
//以下为 main.js 的代码
jQuery(document).ready(function($){	//Begin jQuery
	$('.reply').click(function() {
	var atid = '&quot;#' + $(this).parent().attr(&quot;id&quot;) + '&quot;';
	var atname = $(this).prevAll().find('cite:first').text();
	//下面那行进行了部分调整，增加了 nofollow 以防止內链影响 SEO
	$(&quot;#comment&quot;).attr(&quot;value&quot;,&quot;&lt;a href=&quot; + atid + &quot; rel=&quot; + '&quot;nofollow&quot;' + &quot;&gt;@&quot; + atname + &quot; &lt;/a&gt;, &lt;br /&gt;\n&quot;).focus();
});
	$('.cancel-comment-reply a').click(function() {	//点击取消回复评论清空评论框的内容
	$(&quot;#comment&quot;).attr(&quot;value&quot;,'');
});
})	//End jQuery
</pre>
<p><strong>七. 个人觉得 include 应少用为好：</strong></p>
<pre class="brush: php; auto-links: false; html-script: false; title: ; notranslate">
&lt;?php include (TEMPLATEPATH . '/searchform.php'); ?&gt;
//替换为 searchform.php 的内容，因为个人认为 include 应该尽量少用为好

&lt;form id=&quot;searchform&quot; method=&quot;get&quot; action=&quot;&lt;?php bloginfo('home'); ?&gt;/&quot;&gt;
&lt;input type=&quot;text&quot; value=&quot;Search: type, hit enter&quot; onfocus=&quot;if (this.value == 'Search: type, hit enter') {this.value = '';}&quot; onblur=&quot;if (this.value == '') {this.value = 'Search: type, hit enter';}&quot; size=&quot;35&quot; maxlength=&quot;50&quot; name=&quot;s&quot; id=&quot;s&quot; /&gt;
&lt;input type=&quot;submit&quot; id=&quot;searchsubmit&quot; value=&quot;&quot; /&gt;
&lt;/form&gt;
</pre>
<p><strong>八. 对表情的位置进行 CSS 修正：</strong></p>
<pre class="brush: css; auto-links: false; html-script: false; title: ; notranslate">
.comment-text .wp-smiley{position:relative;bottom:-5px;margin-top:-5px;}
//增加如上这行修正表情位置
</pre>
<pre class="brush: css; auto-links: false; html-script: false; title: ; notranslate">
ol.commentlist li div.comment-text{border-top:1px solid #fff;padding-top:10px;margin:0 0 10px;}
//将如上修改为如下来增加评论处行高

ol.commentlist li div.comment-text{line-height:15px;border-top:1px solid #fff;padding-top:10px;margin:0 0 10px;}
</pre>
<p><strong>九. 应用 Ajax 提交评论（未完成，迟一些在新文章中补上）：</strong></p>
<pre class="brush: php; auto-links: false; html-script: false; title: ; notranslate">
&lt;?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?&gt;
&lt;?php $options = get_option('zBench_options'); ?&gt;
&lt;?php wp_head(); ?&gt;&lt;/head&gt;
//head.php 里面如上修改为如下代码

&lt;?php $options = get_option('zBench_options'); ?&gt;
&lt;?php wp_head(); ?&gt;&lt;/head&gt;
&lt;?php if ( is_singular() ){ ?&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;&lt;?php bloginfo('template_directory'); ?&gt;/comments-ajax.js&quot;&gt;&lt;/script&gt;
&lt;?php } ?&gt;
</pre>
<p><strong>十. 后记：</strong></p>
<p>> 最后使用小邪的 <a target='_blank' rel='nofollow' href='http://tool.evlos.org/csstidy/'>CSS压缩工具</a> 把CSS文件压缩一下 -<br />
> 输入: 15.631KB, 输出:13.213KB, 压缩比率: 15.5% (-2418 Bytes)</p>
<p>> 当然也要把Js文件用 <a target='_blank' rel='nofollow' href='http://tool.evlos.org/jspacker/'>工具</a> 来压缩一下，干脆直接放 head.php 里面 -<br />
> Compression ratio: 558/350 = 0.627</p>
<p>> 以下修改的参考文章 -</p>
<p>> 1. 用 jQuery 实现点击回复之后显示@用户名的效果 - <a target='_blank' rel='nofollow' href='http://zww.me/archives/24817'>http://zww.me/archives/24817</a><br />
> 2. WordPress主题发布: zBench - <a target='_blank' rel='nofollow' href='http://zww.me/archives/25131'>http://zww.me/archives/25131</a><br />
> 3. WordPress 內置嵌套評論專用 Ajax comments - <a target='_blank' rel='nofollow' href='http://kan.willin.org/?p=1271'>http://kan.willin.org/?p=1271</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rainmoe.com/2010/07/20/covered-with-zbench/feed/</wfw:commentRss>
		<slash:comments>103</slash:comments>
		</item>
		<item>
		<title>WP修改主题Sandevlos_V1.00Beta共享</title>
		<link>http://www.rainmoe.com/2010/07/18/wptheme-sandevlos/</link>
		<comments>http://www.rainmoe.com/2010/07/18/wptheme-sandevlos/#comments</comments>
		<pubDate>Sat, 17 Jul 2010 21:35:43 +0000</pubDate>
		<dc:creator>小邪</dc:creator>
				<category><![CDATA[作品 [Work]]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[wptheme]]></category>

		<guid isPermaLink="false">http://www.evlos.org/?p=1962</guid>
		<description><![CDATA[> \(^o^)/，这个是小邪一直以来在使用的WP主题，修改自 Sandfish 主题，喜欢的盆友就拿去玩玩喔。

> 有盆友说找不到小邪的直接跳转到留言位置的链接，那小邪放在这里，点一下直接到底，嘿嘿。



<span class="readmore"><a href="http://www.rainmoe.com/2010/07/18/wptheme-sandevlos/" title="WP修改主题Sandevlos_V1.00Beta共享">阅读全文——共1173字</a></span>]]></description>
			<content:encoded><![CDATA[<p>> \(^o^)/，这个是小邪一直以来在使用的WP主题，修改自 Sandfish 主题，喜欢的盆友就拿去玩玩喔。<br />
> 有盆友说找不到小邪的直接跳转到留言位置的链接，那小邪放在<a target='_blank' rel='nofollow' href='#respond'>这里</a>，点一下直接到底，嘿嘿。</p>
<p><img src='http://www.rainmoe.com/wp-content/uploads/old/Cap0000498.png' /></p>
<p><span id="more-1962"></span><strong>一. 下载地址：</strong></p>
<p>> <a target='_blank' rel='nofollow' href='http://code.google.com/p/evlosbox/downloads/detail?name=SandevlosV1.zip&#038;can=2&#038;q='>http://code.google.com/p/evlosbox/downloads/detail?name=SandevlosV1.zip</a></p>
<p><strong>二. 关于版权：</strong></p>
<p>> Sandevlos 由 Sandfish 修改而来，所以在 CSS 中的版权是这样写的，小邪觉得应该木有问题。<br />
> 嘎嘎，O(∩_∩)O，如果原作者有任何问题，请立马和小邪说，小邪会以最快的速度修正过来喔。</p>
<pre class="brush: php; auto-links: false; html-script: false; title: ; notranslate">
/*
Theme Name: SandEvlos
Theme URI: http://www.evlos.org/work/
Description: SandEvlos is created from Sandfish, you can find me at http://www.evlos.org/, also can find origin author at http://www.happinesz.cn/.
Tags: white, fixed width
Version: 1.0 Beta
Author: Evlos
Author URI: http://www.evlos.org/
*/
</pre>
<p><strong>三. 如何安装：</strong></p>
<p>> 和一般的主题安装方法一样，放到 Wp-content 的 themes 目录里，然后在后台启用本主题就好。<br />
> 建议使用 WP-RecentComments 侧边栏插件，主题的 CSS 对此进行了适当调整，使显示正常。</p>
<p><img src='http://www.rainmoe.com/wp-content/uploads/old/Cap0000499.png' /></p>
<p>> 这个是留言的显示界面，额，建议最好配合 WordPress Thread Comment 插件，会更完美一些。<br />
> 建议启用 Custom Smilies 表情插件，小邪有对表情图片进行 CSS 调整，显示效果很融洽喔。</p>
<p><img src='http://www.rainmoe.com/wp-content/uploads/old/Cap0000500.png' /></p>
<p>> 主题兼容 WP-Syntax 插件，显示超长行代码的时候，不会因为显示的问题而挤出滚动条鸟。<br />
> 强烈建议使用 WP-PageNavi 翻页条插件，因为主题木有这个插件就木有办法翻页了╮(╯▽╰)╭。</p>
<p>> 对了喔，要做些插件设置，请在 Pagenavi 插件后台请去掉 “Use pagenavi-css.css” 的勾。<br />
> 还有，在 Custom Smilies 插件后台设置请去掉 “使用名为 comment_form 的 action” 处的勾。</p>
<p><strong>四. WP Thread Comment 插件设置：</strong></p>
<p>> 请去掉 “在style.css中加载CSS” 处的勾，然后修改评论的 HTML 以配合主题的整体效果。</p>
<pre class="brush: php; auto-links: false; html-script: false; title: ; notranslate">
//编辑评论的HTML
&lt;div class=&quot;comment-childs&lt;?php echo $deep%2 ? ' chalt' : ''; ?&gt;&quot; id=&quot;comment-[ID]&quot;&gt;&lt;div class=&quot;bgrro&quot;&gt;&lt;div class=&quot;bgrro1&quot;&gt;&lt;div class=&quot;userpic&quot;&gt;&lt;?php echo get_avatar($comment-&gt;comment_author_email, 24); ?&gt;&lt;/div&gt;&lt;p&gt;[author] 回复：[moderation]&lt;br /&gt;&lt;small class=&quot;commentmetadata&quot;&gt;[date] at [time]&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;bgrrro&quot;&gt;[content]&lt;/div&gt;&lt;/div&gt;
</pre>
<p><strong>五. 附言：</strong></p>
<p>> 最近小邪爱吃辣，感觉很开胃喔，酸辣鱼灰常好吃呐。然后，吃完就在 Twitter 上面乱转。<br />
> 看到 @Thruth 说道：“每个爱吃辣的人上辈子都是肛裂的天使。”，然后，然后就木有然后了。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rainmoe.com/2010/07/18/wptheme-sandevlos/feed/</wfw:commentRss>
		<slash:comments>55</slash:comments>
		</item>
		<item>
		<title>给最近文章的Li列表添加了图标</title>
		<link>http://www.rainmoe.com/2009/11/24/add-icon-to-recent-articles-list/</link>
		<comments>http://www.rainmoe.com/2009/11/24/add-icon-to-recent-articles-list/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 16:53:54 +0000</pubDate>
		<dc:creator>小邪</dc:creator>
				<category><![CDATA[代码 [Code]]]></category>
		<category><![CDATA[li]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://www.evlos.org/?p=1101</guid>
		<description><![CDATA[> O(∩_∩)O 话说最近一直觉得这个最近文章的侧边栏列表太淡薄，然后就看着很不顺眼。

> 今天终于发现原因所在，原来是缺少了列表图标，图标一放上去就完美了。



<span class="readmore"><a href="http://www.rainmoe.com/2009/11/24/add-icon-to-recent-articles-list/" title="给最近文章的Li列表添加了图标">阅读全文——共878字</a></span>]]></description>
			<content:encoded><![CDATA[<p>> O(∩_∩)O 话说最近一直觉得这个最近文章的侧边栏列表太淡薄，然后就看着很不顺眼。<br />
> 今天终于发现原因所在，原来是缺少了列表图标，图标一放上去就完美了。</p>
<p><img src="http://www.rainmoe.com/wp-content/uploads/old/lisign.jpg" /></p>
<p>> P.s. 好想看下雪啊，我浙江这边最近也只是上半部分下过雪，我在下半部分来着，期待中。</p>
<p>> 看源代码就知道设计者提供了叫 Widget_recent_entrie 的类选择器。<br />
> 这个Elegantbox的设计者真是考虑周到，虽然CSS文件里没有写，但是在模板里都有标记。<br />
> 我觉得这个习惯很好，就算原本没有在CSS里用到，但还是提供这个，方便我们修改。</p>
<p><span id="more-1101"></span>
<pre class="brush: php; auto-links: false; html-script: false; title: ; notranslate">
&lt;li class=&quot;widget widget_recent_entries&quot;&gt;
&lt;h3&gt;最近文章&lt;/h3&gt;
&lt;/li&gt;
</pre>
<p>> 所以在CSS文件中加入以下代码即可，0 表示水平靠左，50% 表示垂直居中。<br />
> Url的相对路径是相对CSS文件的，那么放在 images 的 src 文件夹中就该这样写。<br />
> 左边留 15px 的填充来放置图标，因为我的图标是 12px 的。</p>
<pre class="brush: css; auto-links: false; html-script: false; title: ; notranslate">
#sidebar .widget_recent_entries li {
	background:url(images/src/li.png) no-repeat 0 50%;
	padding-left:15px;
}
</pre>
<p>> 本文送给CSS初学者，高手勿笑，呵呵。<br />
> 我相信多多帮助初学者，然后大家可以共同进步。</p>
<p><strong>Idea</strong>：<br />
> 我对于网页的审美观里包括一个概念，平衡。<br />
> 因为我的最近评论和组织俩个挂件都在左边有个相对较大的图标，而整个列表都是字。<br />
> 那么左边的重量就比右边大一些，结果就造成了不平衡。<br />
> 那么在下面就应该有一个元素来把上面的重量托起来，才会平衡。所以才加上图标。<br />
> 而在我的侧边栏这里，只能托，而不能在下面的右边增加元素，试图让左右重量相等。<br />
> 因为从整体上看，如果不托起而增重，并不能平衡，而会让整个列表显得歪歪斜斜，那就不好了。<br />
> 平衡，真是一个很微妙的东西。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rainmoe.com/2009/11/24/add-icon-to-recent-articles-list/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>无插件为萄葡MM实现读者墙</title>
		<link>http://www.rainmoe.com/2009/11/17/no-plugins-create-reader-wall/</link>
		<comments>http://www.rainmoe.com/2009/11/17/no-plugins-create-reader-wall/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 13:23:35 +0000</pubDate>
		<dc:creator>小邪</dc:creator>
				<category><![CDATA[代码 [Code]]]></category>
		<category><![CDATA[reader]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[wall]]></category>

		<guid isPermaLink="false">http://www.evlos.org/?p=935</guid>
		<description><![CDATA[> \(^o^)/ 刚才萄葡MM找我想实现读者墙，因为她的博客模版是不支持侧边栏的。

> 所以要用代码实现，且样式需要和我上次写的《在Li标签里实现图上字下排列的文章》中一样。



<span class="readmore"><a href="http://www.rainmoe.com/2009/11/17/no-plugins-create-reader-wall/" title="无插件为萄葡MM实现读者墙">阅读全文——共279字</a></span>]]></description>
			<content:encoded><![CDATA[<p>> \(^o^)/ 刚才萄葡MM找我想实现读者墙，因为她的博客模版是不支持侧边栏的。<br />
> 所以要用代码实现，且样式需要和我上次写的《<a target="_blank" href="http://www.evlos.org/2009/11/15/show-members-list-through-li/">在Li标签里实现图上字下排列的文章</a>》中一样。</p>
<p><img src="http://www.rainmoe.com/wp-content/uploads/old/taopu-reader-wall1.jpg" /></p>
<p>> 里面读者墙的函数代码，是来自万戈童鞋的《<a rel="nofollow" target="_blank" href="http://www.life-studio.cn/readerwall-on-sidebar-without-plugins.html?replytocom=13937">WordPress 免插件版侧边栏读者墙</a>》文章。<br />
> 因为萄葡MM的模板代码很有个性，所以函数代码不能放在 function.php 里的。</p>
<p>> P.s. 嘿嘿，我就喜欢有挑战性的东西，话说做这个的时候，自己的技术也有了突破了 O(∩_∩)O 。</p>
<p><span id="more-935"></span>
<pre class="brush: php; auto-links: false; html-script: false; title: ; notranslate">
&lt;?php
$identity=&quot;comment_author&quot;;
$passwordpost = &quot; AND post_password=''&quot;;
$userexclude = &quot; AND user_id='' and comment_author != ''&quot;;
$approved = &quot; AND comment_approved='1'&quot;;
$shownumber = 15;
$counts = $wpdb-&gt;get_results(&quot;SELECT COUNT(&quot; . $identity . &quot;) AS cnt, comment_author,
 comment_author_url,comment_author_email
FROM (SELECT * FROM $wpdb-&gt;comments LEFT OUTER JOIN $wpdb-&gt;posts ON
($wpdb-&gt;posts.ID=$wpdb-&gt;comments.comment_post_ID) WHERE
MONTH(comment_date)=MONTH(now()) and YEAR(comment_date)=YEAR(now())&quot; .
$userexclude . $passwordpost . $approved . &quot;) AS tempcmt GROUP BY &quot;
. $identity . &quot; ORDER BY cnt DESC LIMIT &quot; . $shownumber);
?&gt;
</pre>
<p>> 首先把以上函数代码插入 sidebar.php 中的如下代码的下面。</p>
<pre class="brush: php; auto-links: false; html-script: false; title: ; notranslate">
&lt;?php /* Please do not remove this line */ global $opt; ?&gt;
</pre>
<pre class="brush: php; auto-links: false; html-script: false; title: ; notranslate">
&lt;div class=&quot;sfbox&quot;&gt;&lt;h2&gt;Featured Post&lt;/h2&gt;&lt;div class=&quot;sfpost&quot;&gt;
  &lt;?php $my_query = new WP_Query('cat='.$opt['side_feature'].'&amp;showposts='
.$opt['side_feature_num'].'&amp;orderby=rand');
        while ( $my_query-&gt;have_posts() ) : $my_query-&gt;the_post(); ?&gt;
  &lt;div class=&quot;introIMG&quot;&gt;&lt;?php echo get_the_image_link
(array('f_img','lead_img'),'thumbnail','/fdefault.gif'); ?&gt;&lt;/div&gt;
  &lt;?php endwhile; ?&gt;
  &lt;/div&gt;
  &lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;&lt;/div&gt;
	&lt;?php endif; ?&gt;
</pre>
<p>> 然后在以上代码的下面插入以下调用代码。嘿嘿，貌似有点绕口。</p>
<pre class="brush: php; auto-links: false; html-script: false; title: ; notranslate">
&lt;!-- Begin --&gt;
&lt;div class=&quot;sidebarbox&quot;&gt;&lt;h2&gt;Reader Wall&lt;/h2&gt;&lt;div class=&quot;sidebarbox&quot;&gt;
&lt;ul class=&quot;ffox_most_active&quot;&gt;
&lt;?php if ( $counts ) : foreach ($counts as $count) :
echo  '&lt;li&gt;' . '&lt;a rel=&quot;nofollow&quot; href=&quot;'. $count-&gt;comment_author_url
. '&quot; title=&quot;用户：' . $count-&gt;comment_author . ' (发表了'. $count-&gt;cnt
. '条评论)&quot;&gt;&lt;div class=&quot;avatar&quot;&gt;' .get_avatar($count-&gt;comment_author_email,32)
.'&lt;/div&gt;&lt;p&gt; '. $count-&gt;comment_author .'&lt;/p&gt;&lt;/a&gt;&lt;/li&gt;';
endforeach; endif;
?&gt;
&lt;/ul&gt;
  &lt;/div&gt;
  &lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;&lt;/div&gt;
&lt;!-- End --&gt;
</pre>
<p>> 然后在 style.css 文件底部插入如下的读者墙的CSS代码。</p>
<pre class="brush: css; auto-links: false; html-script: false; title: ; notranslate">
/* ReaderWall */
.sidebarbox .sidebarbox .ffox_most_active li {
padding-left:0; width: 55px; float: left; background: none;
list-style: none; overflow: hidden; border-bottom: none;
}
.sidebarbox .sidebarbox .ffox_most_active img.avatar {
width: 32px; height: 32px; border: solid 1px #d4e7f2;
padding: 1px;
}
.sidebarbox .sidebarbox .ffox_most_active p {
padding-top: 1px; float: left; width: 37px; height: 13px;
line-height: 12px; text-align: center; white-space: nowrap;
overflow: hidden;
}
</pre>
<p>> 完成啦 O(∩_∩)O哈哈</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rainmoe.com/2009/11/17/no-plugins-create-reader-wall/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>iNove的简单缓存头像法</title>
		<link>http://www.rainmoe.com/2009/10/26/inove-gravatar-simple/</link>
		<comments>http://www.rainmoe.com/2009/10/26/inove-gravatar-simple/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 14:35:55 +0000</pubDate>
		<dc:creator>小邪</dc:creator>
				<category><![CDATA[代码 [Code]]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[comment]]></category>
		<category><![CDATA[inove]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://www.evlos.org/?p=637</guid>
		<description><![CDATA[我发现我的方法和whisperer童鞋的方法是不同的

但是还是有蛮多人按照他的方法

虽然他的方法使用的代码非常容易理解和阅读

<span class="readmore"><a href="http://www.rainmoe.com/2009/10/26/inove-gravatar-simple/" title="iNove的简单缓存头像法">阅读全文——共245字</a></span>]]></description>
			<content:encoded><![CDATA[<p>我发现我的方法和whisperer童鞋的方法是不同的<br />
但是还是有蛮多人按照他的方法<br />
虽然他的方法使用的代码非常容易理解和阅读<br />
但是貌似有些过长鸟 </p>
<p>打开模板目录里的主题支持函数 (functions.php)文件 </p>
<pre class="brush: php; auto-links: false; html-script: false; title: ; notranslate">
&lt;div class=&quot;pic&quot;&gt;
&lt;?php if (function_exists('get_avatar') &amp;&amp; get_option('show_avatars'))
{ echo get_avatar($comment, 32); } ?&gt;
&lt;/div&gt;
</pre>
<p>然后按照如下改动即可 <span id="more-637"></span></p>
<pre class="brush: php; auto-links: false; html-script: false; title: ; notranslate">
&lt;div class=&quot;pic&quot;&gt;
&lt;img src=&quot;你的缓存头像目录/cache/avatar/
&lt;?php echo md5(strtolower($comment-&gt;comment_author_email)); ?&gt;&quot; alt=&quot;&quot; /&gt;
&lt;/div&gt;
</pre>
<p>嘿嘿 搞定鸟 </p>
]]></content:encoded>
			<wfw:commentRss>http://www.rainmoe.com/2009/10/26/inove-gravatar-simple/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>给ElegantBox缓存评论头像</title>
		<link>http://www.rainmoe.com/2009/10/26/elegantbox-gravatar/</link>
		<comments>http://www.rainmoe.com/2009/10/26/elegantbox-gravatar/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 14:27:50 +0000</pubDate>
		<dc:creator>小邪</dc:creator>
				<category><![CDATA[代码 [Code]]]></category>
		<category><![CDATA[box]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[comment]]></category>
		<category><![CDATA[elegant]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://www.evlos.org/?p=636</guid>
		<description><![CDATA[打开主题目录里的主题支持函数 (functions.php)文件

然后开始看代码 



<span class="readmore"><a href="http://www.rainmoe.com/2009/10/26/elegantbox-gravatar/" title="给ElegantBox缓存评论头像">阅读全文——共99字</a></span>]]></description>
			<content:encoded><![CDATA[<p>打开主题目录里的主题支持函数 (functions.php)文件<br />
然后开始看代码 </p>
<pre class="brush: php; auto-links: false; html-script: false; title: ; notranslate">
&lt;?php
// WordPress 2.5 or higher
if (function_exists('get_avatar') &amp;&amp; get_option('show_avatars')) {
	echo '&lt;div class=&quot;userpic&quot;&gt;'; echo get_avatar($comment, 24); echo '&lt;/div&gt;';
// WordPress 2.3.3 or lower
	} else if (function_exists('gravatar')) {
		echo '&lt;div class=&quot;userpic&quot;&gt;&lt;img class=&quot;avatar&quot; src=&quot;';
		gravatar(&quot;G&quot;, 24); echo '&quot; alt=&quot;avatar&quot; /&gt;&lt;/div&gt;';
	}
?&gt;
</pre>
<p>这里和iNove完全不一样<br />
所以要做如下修改 <span id="more-636"></span></p>
<pre class="brush: php; auto-links: false; html-script: false; title: ; notranslate">
&lt;?php
// WordPress 2.5 or higher
if (function_exists('get_avatar') &amp;&amp; get_option('show_avatars')) {
	echo '&lt;div class=&quot;userpic&quot;&gt;
	&lt;img src=&quot;你的头像缓存目录/cache/avatar/'.
	md5(strtolower($comment-&gt;comment_author_email)) .'&quot; alt=&quot;&quot;
	height=&quot;24&quot; width=&quot;24&quot; /&gt;&lt;/div&gt;';
// WordPress 2.3.3 or lower
	} else if (function_exists('gravatar')) {
		echo '&lt;div class=&quot;userpic&quot;&gt;&lt;img class=&quot;avatar&quot; src=&quot;';
		gravatar(&quot;G&quot;, 24); echo '&quot; alt=&quot;avatar&quot; /&gt;&lt;/div&gt;';
	}
?&gt;
</pre>
<p>这里不能像我修改recent-comments插件似地<br />
在这里是无法使用$mail的<br />
所以我们用$comment->comment_author_email<br />
完工鸟 ~~<br />
　</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rainmoe.com/2009/10/26/elegantbox-gravatar/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using memcached (Feed is rejected)
Page Caching using memcached
Database Caching 1/45 queries in 0.028 seconds using memcached
Object Caching 614/718 objects using memcached

Served from: www.rainmoe.com @ 2012-02-09 16:59:55 -->
