<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>评论：如何自定义WordPress2.7的评论内部结构</title>
	<atom:link href="http://kamiyeye.com/archives/866/feed" rel="self" type="application/rss+xml" />
	<link>http://kamiyeye.com/archives/866</link>
	<description></description>
	<lastBuildDate>Thu, 26 Apr 2012 17:00:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>来自：cell phone charms</title>
		<link>http://kamiyeye.com/archives/866/comment-page-1#comment-10051</link>
		<dc:creator>cell phone charms</dc:creator>
		<pubDate>Sat, 29 Oct 2011 13:35:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.kamiyeye.com/archives/866#comment-10051</guid>
		<description>My spouse and i were very thankful that Edward managed to deal with his basic research from your precious recommendations he was given utilizing your weblog. It is not at all simplistic to just pick to be offering techniques which other people could have been trying to sell. And now we do know we now have the blog owner to be grateful to because of that. Most of the explanations you&#039;ve made, the straightforward internet site navigation, the friendships you assist to create - it&#039;s all astonishing, and it&#039;s really facilitating our son in addition to the family picture that that issue is pleasurable, and that&#039;s incredibly mandatory. Thank you for all of the pieces!</description>
		<content:encoded><![CDATA[<p>My spouse and i were very thankful that Edward managed to deal with his basic research from your precious recommendations he was given utilizing your weblog. It is not at all simplistic to just pick to be offering techniques which other people could have been trying to sell. And now we do know we now have the blog owner to be grateful to because of that. Most of the explanations you've made, the straightforward internet site navigation, the friendships you assist to create - it's all astonishing, and it's really facilitating our son in addition to the family picture that that issue is pleasurable, and that's incredibly mandatory. Thank you for all of the pieces!</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：南宁顶佳</title>
		<link>http://kamiyeye.com/archives/866/comment-page-1#comment-7035</link>
		<dc:creator>南宁顶佳</dc:creator>
		<pubDate>Mon, 29 Aug 2011 12:41:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.kamiyeye.com/archives/866#comment-7035</guid>
		<description>恩，通过友链找到你的博客，于是过来访问下。文章不错。</description>
		<content:encoded><![CDATA[<p>恩，通过友链找到你的博客，于是过来访问下。文章不错。</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：XIII</title>
		<link>http://kamiyeye.com/archives/866/comment-page-1#comment-3934</link>
		<dc:creator>XIII</dc:creator>
		<pubDate>Wed, 06 Oct 2010 01:44:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.kamiyeye.com/archives/866#comment-3934</guid>
		<description>再试试看</description>
		<content:encoded><![CDATA[<p>再试试看</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：XIII</title>
		<link>http://kamiyeye.com/archives/866/comment-page-1#comment-3933</link>
		<dc:creator>XIII</dc:creator>
		<pubDate>Wed, 06 Oct 2010 01:44:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.kamiyeye.com/archives/866#comment-3933</guid>
		<description>我觉得 你这个很有意思，支持嵌套。不过 嵌套的内容没有楼号。 不错~</description>
		<content:encoded><![CDATA[<p>我觉得 你这个很有意思，支持嵌套。不过 嵌套的内容没有楼号。 不错~</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：XIII</title>
		<link>http://kamiyeye.com/archives/866/comment-page-1#comment-3932</link>
		<dc:creator>XIII</dc:creator>
		<pubDate>Wed, 06 Oct 2010 01:42:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.kamiyeye.com/archives/866#comment-3932</guid>
		<description>看来真的能套住很多层。 还不错
到底多少层呢？</description>
		<content:encoded><![CDATA[<p>看来真的能套住很多层。 还不错<br />
到底多少层呢？</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：XIII</title>
		<link>http://kamiyeye.com/archives/866/comment-page-1#comment-3931</link>
		<dc:creator>XIII</dc:creator>
		<pubDate>Wed, 06 Oct 2010 01:42:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.kamiyeye.com/archives/866#comment-3931</guid>
		<description>我就是来看看你的嵌套的</description>
		<content:encoded><![CDATA[<p>我就是来看看你的嵌套的</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：wp_list_comments结构分析 &#124; 阿邙’S Blog</title>
		<link>http://kamiyeye.com/archives/866/comment-page-1#comment-2689</link>
		<dc:creator>wp_list_comments结构分析 &#124; 阿邙’S Blog</dc:creator>
		<pubDate>Sat, 15 May 2010 08:05:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.kamiyeye.com/archives/866#comment-2689</guid>
		<description>[...] 首页关于文章归档相册左右间给我捎信干掉侧边栏首页&gt;WordPress&gt;∷wp_list_comments结构分析∷&#160;早想说说这个wp_list_comments函数了,应该是在Wordpress2.7以后加入的吧.这个函数包括了整个评论列表.可以根据后台设置允许评论嵌套,以及评论分页功能.在ZWWoOoOo刚醒来在博友那里看到他放出的:WordPress 默认评论结构图 (2.7.x, 2.8.x, 2.9.x),今天我在这里也说说这个吧.wp_list_comments是Wp2.7以后新主题中使用的函数,这个函数包括了之前的comment_text、comment_date、comment_time、comment_author_link、echo get_avatar等所有函数,使得评论留言缺省功能性能增强,例如可以在后台设置评论嵌套以及评论分页;也使得Wp整体运行速率增强.首先我们看看Wp2.7以前的评论结构代码: &lt;?php if ($comments) : ?&gt; &lt;ul&gt; &lt;?php foreach ($comments as $comment) : ?&gt; &lt;?php $isByAuthor = false; if($comment-&gt;comment_author_email == get_the_author_email()) { $isByAuthor = true; }?&gt; &lt;div&gt; &lt;li id=&quot;comment-&lt;?php comment_ID() ?&gt;&quot; &lt;?php if($isByAuthor ) { echo &#039;class=&quot;my_comment&quot;&#039;;} ?&gt;&gt; &lt;div&gt; &lt;?php echo get_avatar( $comment, $size = &#039;45&#039; ); ?&gt; &lt;cite&gt;&lt;strong&gt;&lt;?php comment_author_link() ?&gt; &lt;?php if($isByAuthor ) { echo &#039;&#039;;} ?&gt; &lt;/strong&gt;&lt;/cite&gt; &lt;/div&gt; &lt;div&gt; &lt;div&gt;&lt;?php comment_date(&#039;Y-j-n&#039;) ?&gt; &lt;?php comment_time(&#039;H:i:s&#039;) ?&gt;&lt;/div&gt; &lt;?php if ($comment-&gt;comment_approved == &#039;0&#039;) : ?&gt; &lt;p&gt;&lt;em&gt;您的留言正在等待审核.....&lt;/em&gt;&lt;/p&gt; &lt;?php endif; ?&gt; &lt;?php comment_text() ?&gt; &lt;/div&gt; &lt;/div&gt; &lt;/li&gt; &lt;?php endforeach; /* end for each comment */ ?&gt; &lt;/ul&gt; &lt;?php else : // this is displayed if there are no comments so far ?&gt; &lt;?php if (&#039;open&#039; == $post-&gt;comment_status) : ?&gt; &lt;!-- If comments are open, but there are no comments. --&gt; &lt;?php else : // comments are closed ?&gt; &lt;!-- If comments are closed. --&gt; &lt;p&gt;Comments are closed.&lt;/p&gt; &lt;?php endif; ?&gt; &lt;?php endif; ?&gt; 上面是Wp2.7以前模板的评论样式,现在这么一大段&lt;ul&gt;.......&lt;/ul&gt;之间的只用一句简单的: &lt;ol&gt; &lt;?php wp_list_comments();?&gt; &lt;/ol&gt;就替代了.那么之前的comment_text、comment_date、comment_time、comment_author_link、echo get_avatar这么多函数都没有了么? 不是的,他们只是被包括在了这个新函数wp_list_comments中.问题来了:现在函数只有wp_list_comments一个了,我们怎么去定义评论列表的样式呢?一个国外网友Chris Harrison提供了CSS部分几套配色方案:threaded-comments，基础已经打得很好了，把它拷贝到你的style.css文件中就可以了.如果需要修改，你可以参考ZWWoOoOo给出的结构图然后在css中找到相对应的项进行修改就可以了！其中一套方案如下: ol.commentlist { list-style:none; margin:0 0 1em; padding:0; text-indent:0; } ol.commentlist li { } ol.commentlist li.alt { } ol.commentlist li.bypostauthor {} ol.commentlist li.byuser {} ol.commentlist li.comment-author-admin {} ol.commentlist li.comment { border-bottom:1px dotted #666; padding:1em; } ol.commentlist li div.comment-author {} ol.commentlist li div.vcard { font:normal 16px georgia,times,serif; } ol.commentlist li div.vcard cite.fn { font-style:normal; } ol.commentlist li div.vcard cite.fn a.url {} ol.commentlist li div.vcard img.avatar { border:5px solid #ccc; float:right; margin:0 0 1em 1em; } ol.commentlist li div.vcard img.avatar-32 {} ol.commentlist li div.vcard img.photo {} ol.commentlist li div.vcard span.says {} ol.commentlist li div.commentmetadata {} ol.commentlist li div.comment-meta { font-size:9px; } ol.commentlist li div.comment-meta a { color:#ccc; } ol.commentlist li p { font-size:11px; margin:0 0 1em; } ol.commentlist li ul { font-size:11px; list-style:square; margin:0 0 1em 2em; } ol.commentlist li div.reply { font-size:11px; } ol.commentlist li div.reply a { font-weight:bold; } ol.commentlist li ul.children { list-style:none; margin:1em 0 0; text-indent:0; } ol.commentlist li ul.children li {} ol.commentlist li ul.children li.alt {} ol.commentlist li ul.children li.bypostauthor {} ol.commentlist li ul.children li.byuser {} ol.commentlist li ul.children li.comment {} ol.commentlist li ul.children li.comment-author-admin {} ol.commentlist li ul.children li.depth-2 { border-left:5px solid #555; margin:0 0 .25em .25em; } ol.commentlist li ul.children li.depth-3 { border-left:5px solid #999; margin:0 0 .25em .25em; } ol.commentlist li ul.children li.depth-4 { border-left:5px solid #bbb; margin:0 0 .25em .25em; } ol.commentlist li ul.children li.depth-5 {} ol.commentlist li ul.children li.odd {} ol.commentlist li.even { background:#fff; } ol.commentlist li.odd { background:#f6f6f6; } ol.commentlist li.parent { border-left:5px solid #111; } ol.commentlist li.pingback { border-bottom:1px dotted #666; padding:1em; } ol.commentlist li.thread-alt { } ol.commentlist li.thread-even {} ol.commentlist li.thread-odd {} 如果你的主题现在使用的还是原来的旧式函数,想换用这个新函数,那么请参考aoogo博友的文章:让您的主题支持WP2.7新留言评论功能当然了,大家爱也可以自定义这个函数,具体参看这里KAMI的:如何自定义WordPress2.7的评论内部结构 感谢Ray Chow让我想起了这个.. 相关标签: WordPress,wp_list_comments,评论样式 &#124;&#187;本博客所有文章欢迎转载，请遵循 !&#124;&#187;转载请注明来源:阿邙’S Blog &#187;wp_list_comments结构分析&#124;&#187;本文链接地址:http://amangs.com/wordpress/talk_about_wp_list_comments.html 这篇文章发表 于 2010年05月15日,星期六 79人浏览, 06:35 文章分类为WordPress. 你可以通过 RSS 2.0订阅. 也可以 发表评论, 或者进行trackback.  上一篇: 浅谈操蛋的CSS长度单位 随机图志 随机文章 热门文章          妈妈生日快乐！继续学习。利刃。贴吧再次启用2010-02-15 Long time no see！燕姿07新专辑预购也谈修改.htaccess文件进行301重定向.钉子户攻略我的Wordpress，这些一个都不能少（一） (60)我的Wordpress，这些一个都不能少（二） (41)咱也搬家到衡天小张啦~ (39)Hit FM杰伦新歌《超人不会飞》全球首播 (36)也谈修改.htaccess文件进行301重定向. (33)如何获得腾讯微博邀请码？ (22)干掉腾讯微博短地址提醒 (19)浅谈操蛋的CSS长度单位 (19) 本篇文章有12 条评论 zwwooooo    说：2010年五月 15日于14:30总结的不错 回复 阿邙    说：2010年五月 15日于15:48呵呵 集合你给的图 很实用 . 回复 Ray Chow    说：2010年五月 15日于13:06就是说这是一个新定义的函数，替代了之前的一大串  ？那我自己也可以定义咯 回复 阿邙    说：2010年五月 15日于15:48你说对了,当然可以.. 你可以参看这里:如何自定义WordPress2.7的评论内部结构 回复 17妹    说：2010年五月 15日于11:15很复杂的东西。。 回复 阿邙    说：2010年五月 15日于15:39其实仔细看 没那么复杂的,. 回复 羽中    说：2010年五月 15日于09:41可以向下兼容的吧，以前那套代码应该还是可以用的 回复 阿邙    说：2010年五月 15日于09:43是的 当然可以. 回复 边角一尘    说：2010年五月 15日于09:36貌似沙发 回复 厉董    说：2010年五月 15日于09:12说实话，我根本看不懂，呵呵 回复 西门    说：2010年五月 15日于08:18PHP就看不懂了，CSS还是看得懂的，我一直都觉得你右侧的榜单推荐不规则圆形很帅！ 回复 阿邙    说：2010年五月 15日于08:35那个你可以参看这里:http://amangs.com/wordpress/beautiful-dd_roundies.html 回复留下评论 点击这里取消回复称呼 (*)Mail (*,不会被公开)站点地址﻿/**/                     &lt;&lt;勾选这里推荐你的最新日志！最新评论近期热评随机文章阿邙：快被拿走玩了.不过那得人都没回复,倒是自...90后的贼：现在这玩意也没有多少人要了吧，我还有好几...阿邙：放那里就烂掉了.. 嘿嘿阿邙：呵呵 集合你给的图 很实用 .阿邙：让蜘蛛抓走吧.. 总会被拿走的..阿邙：你说对了,当然可以.. 你可以参看这里:...阿邙：是啊 太多了...阿邙：呵呵 利用了一个插件 ,内容还需要简单的...阿邙：其实仔细看 没那么复杂的,.阿邙：我的快拿走完了,就是没人回复.. 都是溺...我的Wordpress，这些一个都不能少（一） (60)我的Wordpress，这些一个都不能少（二） (41)咱也搬家到衡天小张啦~ (39)Hit FM杰伦新歌《超人不会飞》全球首播 (36)也谈修改.htaccess文件进行301重定向. (33)如何获得腾讯微博邀请码？ (22)干掉腾讯微博短地址提醒 (19)浅谈操蛋的CSS长度单位 (19)DD_roundies支持所有浏览器的圆角边框 (14)解决WP在Godaddy主机评论回复邮件通知功能 (13)继续学习。2008南阳焰火晚会80后的我们......呜拉巴哈让爱跳动的26个字母失业中……祭飞下地狱藏第6套人民币有500币值以及以前1、2、3、4、5套人民币回顾榜单推荐点击评论加入榜单唠叨几句看来真的是老了. 刚不小心把wp-content文件夹删了... 哎呀.. 老糊涂了..&amp;nbsp唠叨于2010-05-13 17:44&amp;nbsp回复博客搬家中..&amp;nbsp唠叨于2010-05-12 01:32&amp;nbsp回复文章分类Code (5)WordPress (10)乱七杂八 (6)今日事 (157)他山石 (43)术业攻 (5)眼耳口 (22)知识库 (8)最新文章wp_list_comments结构分析 浅谈操蛋的CSS长度单位 咱也搬家到衡天小张啦~ 我的Wordpress，这些一个都不能少（二） 我的Wordpress，这些一个都不能少（一） 也谈修改.htaccess文件进行301重定向. DD_roundies支持所有浏览器的圆角边框 用CSS实现文字自动截断 干掉腾讯微博短地址提醒 Hit FM杰伦新歌《超人不会飞》全球首播 标签云 90后cnCSSjavascriptmp3musicmvsohuWordPress专辑东串西逛主打他山之石北京南阳周杰伦孙燕姿彼此心情接机文章方法浏览器潜规则爱电脑男人精华经典腾讯腾讯微博评论逆光邀请码阿邙WP-Cumulus by Roy Tanck requires Flash Player 9 or better.左邻右里够酷℃羽毛の家互联风尚创意星空老七博客可可美食闲云野鹤链链更健康soluo博客歪歪八卦网友链联盟中国红酒网中国博客联盟 © 2006-2012 &#124; 阿邙’S Blog &#124;Bm&#124;站点地图  &#124; Imagination (function(){ var corecss = document.createElement(&#039;link&#039;); var themecss = document.createElement(&#039;link&#039;); var corecssurl = &quot;http://amangs.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter/styles/shCore.css?ver=2.1.364b&quot;; if ( corecss.setAttribute ) { corecss.setAttribute( &quot;rel&quot;, &quot;stylesheet&quot; ); corecss.setAttribute( &quot;type&quot;, &quot;text/css&quot; ); corecss.setAttribute( &quot;href&quot;, corecssurl ); } else { corecss.rel = &quot;stylesheet&quot;; corecss.href = corecssurl; } document.getElementsByTagName(&quot;head&quot;)[0].appendChild(corecss); var themecssurl = &quot;http://amangs.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter/styles/shThemeRDark.css?ver=2.1.364b&quot;; if ( themecss.setAttribute ) { themecss.setAttribute( &quot;rel&quot;, &quot;stylesheet&quot; ); themecss.setAttribute( &quot;type&quot;, &quot;text/css&quot; ); themecss.setAttribute( &quot;href&quot;, themecssurl ); } else { themecss.rel = &quot;stylesheet&quot;; themecss.href = themecssurl; } document.getElementsByTagName(&quot;head&quot;)[0].appendChild(themecss); })(); SyntaxHighlighter.config.clipboardSwf = &#039;http://amangs.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter/scripts/clipboard.swf&#039;; SyntaxHighlighter.config.strings.expandSource = &#039;show source&#039;; SyntaxHighlighter.config.strings.viewSource = &#039;查看源代码&#039;; SyntaxHighlighter.config.strings.copyToClipboard = &#039;复制到剪贴板&#039;; SyntaxHighlighter.config.strings.copyToClipboardConfirmation = &#039;代码现在在你的剪贴板&#039;; SyntaxHighlighter.config.strings.print = &#039;打印&#039;; SyntaxHighlighter.config.strings.help = &#039;帮助&#039;; SyntaxHighlighter.config.strings.alert = &#039;SyntaxHighlighternn&#039;; SyntaxHighlighter.config.strings.noBrush = &#039;无法找到Brush：&#039;; SyntaxHighlighter.config.strings.brushNotHtmlScript = &#039;Brush不能设置 html-script选项&#039;; SyntaxHighlighter.defaults[&#039;auto-links&#039;] = false; SyntaxHighlighter.defaults[&#039;smart-tabs&#039;] = false; SyntaxHighlighter.all(); [...]</description>
		<content:encoded><![CDATA[<p>[...] 首页关于文章归档相册左右间给我捎信干掉侧边栏首页&gt;WordPress&gt;∷wp_list_comments结构分析∷&nbsp;早想说说这个wp_list_comments函数了,应该是在Wordpress2.7以后加入的吧.这个函数包括了整个评论列表.可以根据后台设置允许评论嵌套,以及评论分页功能.在ZWWoOoOo刚醒来在博友那里看到他放出的:WordPress 默认评论结构图 (2.7.x, 2.8.x, 2.9.x),今天我在这里也说说这个吧.wp_list_comments是Wp2.7以后新主题中使用的函数,这个函数包括了之前的comment_text、comment_date、comment_time、comment_author_link、echo get_avatar等所有函数,使得评论留言缺省功能性能增强,例如可以在后台设置评论嵌套以及评论分页;也使得Wp整体运行速率增强.首先我们看看Wp2.7以前的评论结构代码: &lt;?php if ($comments) : ?&gt; &lt;ul&gt; &lt;?php foreach ($comments as $comment) : ?&gt; &lt;?php $isByAuthor = false; if($comment-&gt;comment_author_email == get_the_author_email()) { $isByAuthor = true; }?&gt; &lt;div&gt; &lt;li id=&quot;comment-&lt;?php comment_ID() ?&gt;&quot; &lt;?php if($isByAuthor ) { echo &#39;class=&quot;my_comment&quot;&#39;;} ?&gt;&gt; &lt;div&gt; &lt;?php echo get_avatar( $comment, $size = &#39;45&#39; ); ?&gt; &lt;cite&gt;&lt;strong&gt;&lt;?php comment_author_link() ?&gt; &lt;?php if($isByAuthor ) { echo &#39;&#39;;} ?&gt; &lt;/strong&gt;&lt;/cite&gt; &lt;/div&gt; &lt;div&gt; &lt;div&gt;&lt;?php comment_date(&#39;Y-j-n&#39;) ?&gt; &lt;?php comment_time(&#39;H:i:s&#39;) ?&gt;&lt;/div&gt; &lt;?php if ($comment-&gt;comment_approved == &#39;0&#39;) : ?&gt; &lt;p&gt;&lt;em&gt;您的留言正在等待审核.....&lt;/em&gt;&lt;/p&gt; &lt;?php endif; ?&gt; &lt;?php comment_text() ?&gt; &lt;/div&gt; &lt;/div&gt; &lt;/li&gt; &lt;?php endforeach; /* end for each comment */ ?&gt; &lt;/ul&gt; &lt;?php else : // this is displayed if there are no comments so far ?&gt; &lt;?php if (&#39;open&#39; == $post-&gt;comment_status) : ?&gt; &lt;!-- If comments are open, but there are no comments. --&gt; &lt;?php else : // comments are closed ?&gt; &lt;!-- If comments are closed. --&gt; &lt;p&gt;Comments are closed.&lt;/p&gt; &lt;?php endif; ?&gt; &lt;?php endif; ?&gt; 上面是Wp2.7以前模板的评论样式,现在这么一大段&lt;ul&gt;.......&lt;/ul&gt;之间的只用一句简单的: &lt;ol&gt; &lt;?php wp_list_comments();?&gt; &lt;/ol&gt;就替代了.那么之前的comment_text、comment_date、comment_time、comment_author_link、echo get_avatar这么多函数都没有了么? 不是的,他们只是被包括在了这个新函数wp_list_comments中.问题来了:现在函数只有wp_list_comments一个了,我们怎么去定义评论列表的样式呢?一个国外网友Chris Harrison提供了CSS部分几套配色方案:threaded-comments，基础已经打得很好了，把它拷贝到你的style.css文件中就可以了.如果需要修改，你可以参考ZWWoOoOo给出的结构图然后在css中找到相对应的项进行修改就可以了！其中一套方案如下: ol.commentlist { list-style:none; margin:0 0 1em; padding:0; text-indent:0; } ol.commentlist li { } ol.commentlist li.alt { } ol.commentlist li.bypostauthor {} ol.commentlist li.byuser {} ol.commentlist li.comment-author-admin {} ol.commentlist li.comment { border-bottom:1px dotted #666; padding:1em; } ol.commentlist li div.comment-author {} ol.commentlist li div.vcard { font:normal 16px georgia,times,serif; } ol.commentlist li div.vcard cite.fn { font-style:normal; } ol.commentlist li div.vcard cite.fn a.url {} ol.commentlist li div.vcard img.avatar { border:5px solid #ccc; float:right; margin:0 0 1em 1em; } ol.commentlist li div.vcard img.avatar-32 {} ol.commentlist li div.vcard img.photo {} ol.commentlist li div.vcard span.says {} ol.commentlist li div.commentmetadata {} ol.commentlist li div.comment-meta { font-size:9px; } ol.commentlist li div.comment-meta a { color:#ccc; } ol.commentlist li p { font-size:11px; margin:0 0 1em; } ol.commentlist li ul { font-size:11px; list-style:square; margin:0 0 1em 2em; } ol.commentlist li div.reply { font-size:11px; } ol.commentlist li div.reply a { font-weight:bold; } ol.commentlist li ul.children { list-style:none; margin:1em 0 0; text-indent:0; } ol.commentlist li ul.children li {} ol.commentlist li ul.children li.alt {} ol.commentlist li ul.children li.bypostauthor {} ol.commentlist li ul.children li.byuser {} ol.commentlist li ul.children li.comment {} ol.commentlist li ul.children li.comment-author-admin {} ol.commentlist li ul.children li.depth-2 { border-left:5px solid #555; margin:0 0 .25em .25em; } ol.commentlist li ul.children li.depth-3 { border-left:5px solid #999; margin:0 0 .25em .25em; } ol.commentlist li ul.children li.depth-4 { border-left:5px solid #bbb; margin:0 0 .25em .25em; } ol.commentlist li ul.children li.depth-5 {} ol.commentlist li ul.children li.odd {} ol.commentlist li.even { background:#fff; } ol.commentlist li.odd { background:#f6f6f6; } ol.commentlist li.parent { border-left:5px solid #111; } ol.commentlist li.pingback { border-bottom:1px dotted #666; padding:1em; } ol.commentlist li.thread-alt { } ol.commentlist li.thread-even {} ol.commentlist li.thread-odd {} 如果你的主题现在使用的还是原来的旧式函数,想换用这个新函数,那么请参考aoogo博友的文章:让您的主题支持WP2.7新留言评论功能当然了,大家爱也可以自定义这个函数,具体参看这里KAMI的:如何自定义WordPress2.7的评论内部结构 感谢Ray Chow让我想起了这个.. 相关标签: WordPress,wp_list_comments,评论样式 |&raquo;本博客所有文章欢迎转载，请遵循 !|&raquo;转载请注明来源:阿邙’S Blog &raquo;wp_list_comments结构分析|&raquo;本文链接地址:http://amangs.com/wordpress/talk_about_wp_list_comments.html 这篇文章发表 于 2010年05月15日,星期六 79人浏览, 06:35 文章分类为WordPress. 你可以通过 RSS 2.0订阅. 也可以 发表评论, 或者进行trackback.  上一篇: 浅谈操蛋的CSS长度单位 随机图志 随机文章 热门文章          妈妈生日快乐！继续学习。利刃。贴吧再次启用2010-02-15 Long time no see！燕姿07新专辑预购也谈修改.htaccess文件进行301重定向.钉子户攻略我的Wordpress，这些一个都不能少（一） (60)我的Wordpress，这些一个都不能少（二） (41)咱也搬家到衡天小张啦~ (39)Hit FM杰伦新歌《超人不会飞》全球首播 (36)也谈修改.htaccess文件进行301重定向. (33)如何获得腾讯微博邀请码？ (22)干掉腾讯微博短地址提醒 (19)浅谈操蛋的CSS长度单位 (19) 本篇文章有12 条评论 zwwooooo    说：2010年五月 15日于14:30总结的不错 回复 阿邙    说：2010年五月 15日于15:48呵呵 集合你给的图 很实用 . 回复 Ray Chow    说：2010年五月 15日于13:06就是说这是一个新定义的函数，替代了之前的一大串  ？那我自己也可以定义咯 回复 阿邙    说：2010年五月 15日于15:48你说对了,当然可以.. 你可以参看这里:如何自定义WordPress2.7的评论内部结构 回复 17妹    说：2010年五月 15日于11:15很复杂的东西。。 回复 阿邙    说：2010年五月 15日于15:39其实仔细看 没那么复杂的,. 回复 羽中    说：2010年五月 15日于09:41可以向下兼容的吧，以前那套代码应该还是可以用的 回复 阿邙    说：2010年五月 15日于09:43是的 当然可以. 回复 边角一尘    说：2010年五月 15日于09:36貌似沙发 回复 厉董    说：2010年五月 15日于09:12说实话，我根本看不懂，呵呵 回复 西门    说：2010年五月 15日于08:18PHP就看不懂了，CSS还是看得懂的，我一直都觉得你右侧的榜单推荐不规则圆形很帅！ 回复 阿邙    说：2010年五月 15日于08:35那个你可以参看这里:http://amangs.com/wordpress/beautiful-dd_roundies.html 回复留下评论 点击这里取消回复称呼 (*)Mail (*,不会被公开)站点地址﻿/**/                     &lt;&lt;勾选这里推荐你的最新日志！最新评论近期热评随机文章阿邙：快被拿走玩了.不过那得人都没回复,倒是自...90后的贼：现在这玩意也没有多少人要了吧，我还有好几...阿邙：放那里就烂掉了.. 嘿嘿阿邙：呵呵 集合你给的图 很实用 .阿邙：让蜘蛛抓走吧.. 总会被拿走的..阿邙：你说对了,当然可以.. 你可以参看这里:...阿邙：是啊 太多了...阿邙：呵呵 利用了一个插件 ,内容还需要简单的...阿邙：其实仔细看 没那么复杂的,.阿邙：我的快拿走完了,就是没人回复.. 都是溺...我的Wordpress，这些一个都不能少（一） (60)我的Wordpress，这些一个都不能少（二） (41)咱也搬家到衡天小张啦~ (39)Hit FM杰伦新歌《超人不会飞》全球首播 (36)也谈修改.htaccess文件进行301重定向. (33)如何获得腾讯微博邀请码？ (22)干掉腾讯微博短地址提醒 (19)浅谈操蛋的CSS长度单位 (19)DD_roundies支持所有浏览器的圆角边框 (14)解决WP在Godaddy主机评论回复邮件通知功能 (13)继续学习。2008南阳焰火晚会80后的我们......呜拉巴哈让爱跳动的26个字母失业中……祭飞下地狱藏第6套人民币有500币值以及以前1、2、3、4、5套人民币回顾榜单推荐点击评论加入榜单唠叨几句看来真的是老了. 刚不小心把wp-content文件夹删了... 哎呀.. 老糊涂了..&amp;nbsp唠叨于2010-05-13 17:44&amp;nbsp回复博客搬家中..&amp;nbsp唠叨于2010-05-12 01:32&amp;nbsp回复文章分类Code (5)WordPress (10)乱七杂八 (6)今日事 (157)他山石 (43)术业攻 (5)眼耳口 (22)知识库 (8)最新文章wp_list_comments结构分析 浅谈操蛋的CSS长度单位 咱也搬家到衡天小张啦~ 我的Wordpress，这些一个都不能少（二） 我的Wordpress，这些一个都不能少（一） 也谈修改.htaccess文件进行301重定向. DD_roundies支持所有浏览器的圆角边框 用CSS实现文字自动截断 干掉腾讯微博短地址提醒 Hit FM杰伦新歌《超人不会飞》全球首播 标签云 90后cnCSSjavascriptmp3musicmvsohuWordPress专辑东串西逛主打他山之石北京南阳周杰伦孙燕姿彼此心情接机文章方法浏览器潜规则爱电脑男人精华经典腾讯腾讯微博评论逆光邀请码阿邙WP-Cumulus by Roy Tanck requires Flash Player 9 or better.左邻右里够酷℃羽毛の家互联风尚创意星空老七博客可可美食闲云野鹤链链更健康soluo博客歪歪八卦网友链联盟中国红酒网中国博客联盟 © 2006-2012 | 阿邙’S Blog |Bm|站点地图  | Imagination (function(){ var corecss = document.createElement(&#39;link&#39;); var themecss = document.createElement(&#39;link&#39;); var corecssurl = &quot;http://amangs.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter/styles/shCore.css?ver=2.1.364b&quot;; if ( corecss.setAttribute ) { corecss.setAttribute( &quot;rel&quot;, &quot;stylesheet&quot; ); corecss.setAttribute( &quot;type&quot;, &quot;text/css&quot; ); corecss.setAttribute( &quot;href&quot;, corecssurl ); } else { corecss.rel = &quot;stylesheet&quot;; corecss.href = corecssurl; } document.getElementsByTagName(&quot;head&quot;)[0].appendChild(corecss); var themecssurl = &quot;http://amangs.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter/styles/shThemeRDark.css?ver=2.1.364b&quot;; if ( themecss.setAttribute ) { themecss.setAttribute( &quot;rel&quot;, &quot;stylesheet&quot; ); themecss.setAttribute( &quot;type&quot;, &quot;text/css&quot; ); themecss.setAttribute( &quot;href&quot;, themecssurl ); } else { themecss.rel = &quot;stylesheet&quot;; themecss.href = themecssurl; } document.getElementsByTagName(&quot;head&quot;)[0].appendChild(themecss); })(); SyntaxHighlighter.config.clipboardSwf = &#39;http://amangs.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter/scripts/clipboard.swf&#39;; SyntaxHighlighter.config.strings.expandSource = &#39;show source&#39;; SyntaxHighlighter.config.strings.viewSource = &#39;查看源代码&#39;; SyntaxHighlighter.config.strings.copyToClipboard = &#39;复制到剪贴板&#39;; SyntaxHighlighter.config.strings.copyToClipboardConfirmation = &#39;代码现在在你的剪贴板&#39;; SyntaxHighlighter.config.strings.print = &#39;打印&#39;; SyntaxHighlighter.config.strings.help = &#39;帮助&#39;; SyntaxHighlighter.config.strings.alert = &#39;SyntaxHighlighternn&#39;; SyntaxHighlighter.config.strings.noBrush = &#39;无法找到Brush：&#39;; SyntaxHighlighter.config.strings.brushNotHtmlScript = &#39;Brush不能设置 html-script选项&#39;; SyntaxHighlighter.defaults[&#39;auto-links&#39;] = false; SyntaxHighlighter.defaults[&#39;smart-tabs&#39;] = false; SyntaxHighlighter.all(); [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：风之幻龙</title>
		<link>http://kamiyeye.com/archives/866/comment-page-1#comment-725</link>
		<dc:creator>风之幻龙</dc:creator>
		<pubDate>Wed, 10 Jun 2009 14:55:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.kamiyeye.com/archives/866#comment-725</guid>
		<description>很不错的指南，对我这种E文不行的很有帮助，呵呵。
Win7blog主题的评论部分做的很漂亮，很好的一个参考例子，感谢～</description>
		<content:encoded><![CDATA[<p>很不错的指南，对我这种E文不行的很有帮助，呵呵。<br />
Win7blog主题的评论部分做的很漂亮，很好的一个参考例子，感谢～</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：浆糊</title>
		<link>http://kamiyeye.com/archives/866/comment-page-1#comment-601</link>
		<dc:creator>浆糊</dc:creator>
		<pubDate>Wed, 29 Apr 2009 12:50:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.kamiyeye.com/archives/866#comment-601</guid>
		<description>整个评论都可以自定义了，定义其中的头像、颜色还会是难事吗？</description>
		<content:encoded><![CDATA[<p>整个评论都可以自定义了，定义其中的头像、颜色还会是难事吗？</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：浆糊</title>
		<link>http://kamiyeye.com/archives/866/comment-page-1#comment-600</link>
		<dc:creator>浆糊</dc:creator>
		<pubDate>Wed, 29 Apr 2009 12:49:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.kamiyeye.com/archives/866#comment-600</guid>
		<description>在我的另一篇文章中有提到</description>
		<content:encoded><![CDATA[<p>在我的另一篇文章中有提到</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：狂舞网络</title>
		<link>http://kamiyeye.com/archives/866/comment-page-1#comment-599</link>
		<dc:creator>狂舞网络</dc:creator>
		<pubDate>Wed, 29 Apr 2009 12:45:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.kamiyeye.com/archives/866#comment-599</guid>
		<description>我想定义评论者头像，以及评论显示样色。
这个对我来说好像没多大的作用哦。</description>
		<content:encoded><![CDATA[<p>我想定义评论者头像，以及评论显示样色。<br />
这个对我来说好像没多大的作用哦。</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：胖头鱼</title>
		<link>http://kamiyeye.com/archives/866/comment-page-1#comment-598</link>
		<dc:creator>胖头鱼</dc:creator>
		<pubDate>Mon, 27 Apr 2009 08:17:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.kamiyeye.com/archives/866#comment-598</guid>
		<description>倒序搞定了，几楼的函数是哪个呢？就是取得楼层的函数</description>
		<content:encoded><![CDATA[<p>倒序搞定了，几楼的函数是哪个呢？就是取得楼层的函数</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：胖头鱼</title>
		<link>http://kamiyeye.com/archives/866/comment-page-1#comment-597</link>
		<dc:creator>胖头鱼</dc:creator>
		<pubDate>Mon, 27 Apr 2009 06:32:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.kamiyeye.com/archives/866#comment-597</guid>
		<description>你这个倒序是怎么实现的？我在后台设置了，好像不行。我用了ajax留言插件了。能发个邮件给我指导一下么？</description>
		<content:encoded><![CDATA[<p>你这个倒序是怎么实现的？我在后台设置了，好像不行。我用了ajax留言插件了。能发个邮件给我指导一下么？</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：胖头鱼</title>
		<link>http://kamiyeye.com/archives/866/comment-page-1#comment-596</link>
		<dc:creator>胖头鱼</dc:creator>
		<pubDate>Mon, 27 Apr 2009 06:09:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.kamiyeye.com/archives/866#comment-596</guid>
		<description>不太明白</description>
		<content:encoded><![CDATA[<p>不太明白</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：网店导购站</title>
		<link>http://kamiyeye.com/archives/866/comment-page-1#comment-352</link>
		<dc:creator>网店导购站</dc:creator>
		<pubDate>Wed, 07 Jan 2009 11:39:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.kamiyeye.com/archives/866#comment-352</guid>
		<description>不错的分析。。。顶一把</description>
		<content:encoded><![CDATA[<p>不错的分析。。。顶一把</p>
]]></content:encoded>
	</item>
</channel>
</rss>

