<?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>Fri, 27 Aug 2010 16:17:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<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>shunfly</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&#123;

<span class="readmore"><a href="http://www.shunfly.com/web/20091227171.html" title="Wordpress高亮管理员的留言信息">阅读全文——共145字</a></span>]]></description>
			<content:encoded><![CDATA[<p>在Style.css中添加如下CSS样式代码：</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">.admincomment<span style="color: #00AA00;">&#123;</span>
      <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#0000EE</span><span style="color: #00AA00;">;</span>
      <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#333</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>在Function.php的function mytheme_comment($comment, $args, $depth)函数中修改如下代码<br />
将</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">   <span style="color: #000000; font-weight: bold;">&lt;?php</span> comment_text<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>修改为</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;div class=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">comment_author_email</span><span style="color: #339933;">==</span> get_the_author_email<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'admincomment'</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;  
     <span style="color: #000000; font-weight: bold;">&lt;?php</span> comment_text<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> 
&lt;/div&gt;</pre></div></div>

<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>shunfly</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;〉网上搜寻答案。

这是一个反复的理论到实践再到结合理论的过程。

<span class="readmore"><a href="http://www.shunfly.com/web/2009121462.html" title="WP学习">阅读全文——共170字</a></span>]]></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>
