<?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; WordPress</title>
	<atom:link href="http://www.shunfly.com/tag/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://www.shunfly.com</link>
	<description>Find,Face,Fight,Fix,Fun</description>
	<lastBuildDate>Thu, 22 Dec 2011 09:30:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>WordPress高亮管理员的留言信息</title>
		<link>http://www.shunfly.com/web/20091227171.html</link>
		<comments>http://www.shunfly.com/web/20091227171.html#comments</comments>
		<pubDate>Sun, 27 Dec 2009 08:39:42 +0000</pubDate>
		<dc:creator>大笨蛋</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.shunfly.com/?p=171</guid>
		<description><![CDATA[在Style.css中添加如下CSS样式代码： .admincomment{ color:#0000EE; border:1px solid #333; } 在Function.php的function mytheme_comment($comment, $args, $depth)函数中修改如下代码 将 修改... ]]></description>
			<content:encoded><![CDATA[<p>在Style.css中添加如下CSS样式代码：</p>
<pre lang='css'>
.admincomment{
      color:#0000EE;
      border:1px solid #333;
}
</pre>
<p>在Function.php的function mytheme_comment($comment, $args, $depth)函数中修改如下代码<br />
将</p>
<pre lang='php'>
   <?php comment_text() ?>
</pre>
<p>修改为</p>
<pre lang='php'>
<div class="<?php if($comment->comment_author_email== get_the_author_email()) echo 'admincomment'; ?>">
     <?php comment_text() ?>
</div>
</pre>
<ul>
<li>
                主要就是修改comment_text() 的输出样式，通过Email判断是否为管理员，输出管理员的样式即可。
        </li>
<li>
                Email判断的一个不足之处在于不利于访客知道管理员Email后仿照管理员样式留言。可以尝试用ID的方式判断。
        </li>
<li>
                不同主题修改地方不一样。
        </li>
</ul>
<ul>参考链接：</p>
<li>
               <a href="http://www.ihiro.org/highlight-the-administrators-reply-message"><font color=#000099> WordPress:高亮管理员的留言信息 By ihiro</font></a>
        </li>
<li>
                <a href="http://plugins.trac.wordpress.org/wiki/AuthorHighlight"><font color=#000099> AuthorHighlight Plugin代码</font></a>
        </li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.shunfly.com/web/20091227171.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>WP学习</title>
		<link>http://www.shunfly.com/web/2009121462.html</link>
		<comments>http://www.shunfly.com/web/2009121462.html#comments</comments>
		<pubDate>Mon, 14 Dec 2009 14:04:57 +0000</pubDate>
		<dc:creator>大笨蛋</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.shunfly.com/?p=62</guid>
		<description><![CDATA[WordPress之于我，即我之于未知。 但，但凡陌生的事物，其学习过程总是很相似。网上搜索&#8211;〉自己阅读相关HELP&#8212;〉动手试验&#8212;〉网上搜寻答案。 这是一个反复的理论到实践再到结合... ]]></description>
			<content:encoded><![CDATA[<p>WordPress之于我，即我之于未知。</p>
<p>但，但凡陌生的事物，其学习过程总是很相似。网上搜索&#8211;〉自己阅读相关HELP&#8212;〉动手试验&#8212;〉网上搜寻答案。</p>
<p>这是一个反复的理论到实践再到结合理论的过程。</p>
<p>安装WordPress,选择主题，修改主题，学习CSS，安装插件。</p>
<p>DIY是件很快乐的事情。学习是件很快乐的事情。</p>
<p>PS：祈祷祝福某的父亲好起来。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shunfly.com/web/2009121462.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

