<?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>《给 WordPress 最新文章添加 NEW 图标》的评论</title>
	<atom:link href="http://wange.im/add-new-ico-for-recent-posts-in-wordpress.html/feed" rel="self" type="application/rss+xml" />
	<link>http://wange.im/add-new-ico-for-recent-posts-in-wordpress.html</link>
	<description>My Life, My Studio...</description>
	<lastBuildDate>Thu, 17 May 2012 09:37:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>作者：wordpress文章根据时间显示new图标 &#124; 最菜鸟</title>
		<link>http://wange.im/add-new-ico-for-recent-posts-in-wordpress.html/comment-page-1#comment-134817</link>
		<dc:creator>wordpress文章根据时间显示new图标 &#124; 最菜鸟</dc:creator>
		<pubDate>Sun, 13 May 2012 11:41:24 +0000</pubDate>
		<guid isPermaLink="false">http://wange.im/?p=2809#comment-134817</guid>
		<description>[...] wordpress文章根据时间显示new图标&#160;今天在WordPress中文论坛看到有网友发一帖子，【详情点这里】,关于可以让wordpress文章根据时间显示new图标的方法，于是我根据这个点子，自己也做了，大家可以到【分享部落】那里看看，就是那个显示最近更新那个，方法是大同小异。&#160;下面的方法来自：【万戈博客】，大家可以按如下方法制作，话不多说，看下文。&#160;&#160;方法一：12345678910111213141516&lt;?phpfunction add_title_icon&#040;$title&#041;&#123;    global $post;    $post_date=$post-&gt;post_date;    $current_time=current_time&#040;&#039;timestamp&#039;&#041;;    $diff=&#040;$current_time-strtotime&#040;$post_date&#041;&#041;/3600;   $title_icon_new=get_bloginfo&#040;&#039;template_directory&#039;&#041;.&#039;/images/title_icon/new.gif&#039;;    if&#040;$diff&lt;24&#041;    &#123;    $title=&#039;&lt;img src=&quot;&#039;.$title_icon_new.&#039;&quot; /&gt;&#039;.$title;    &#125;    return $title;&#125;add_filter&#040;&#039;the_title&#039;,&#039;add_title_icon&#039;,999&#041;;?&gt;把以上代码插入在主题文件夹的 functions.php 里就行了。方法二：123456&lt;?php    $t1=$post-&gt;post_date;    $t2=date&#040;&quot;Y-m-d H:i:s&quot;&#041;;    $diff=&#040;strtotime&#040;$t2&#041;-strtotime&#040;$t1&#041;&#041;/3600;    if&#040;$diff&lt;24&#041;&#123;echo &#039;&lt;img src=&quot;&#039;.get_bloginfo&#040;&#039;template_directory&#039;&#041;.&#039;/images/new.gif&quot; /&gt;&#039;;&#125;?&gt;把这段代码加到需要的地方就行，比如 single.php 中的 &lt;?php the_title(”); ?&gt; 前。     杂谈         haigeer 2012-05-13 19:41:13 发布   评论(0) 关注(2)      document.getElementById(&quot;bdshell_js&quot;).src = &quot;http://bdimg.share.baidu.com/static/js/shell_v2.js?t=&quot; + new Date().getHours();  上一条&#160;&#160;&#124; 互联网&#124; 返回列表      var __SELF__ = &#039;{#__SELF__#}&#039;;// 选择评论function change_com_cn(val){ $(&#039;#comment&#039;).val(val);}     发表评论点击这里取消回复。  昵称： [...]</description>
		<content:encoded><![CDATA[<p>[...] wordpress文章根据时间显示new图标&nbsp;今天在WordPress中文论坛看到有网友发一帖子，【详情点这里】,关于可以让wordpress文章根据时间显示new图标的方法，于是我根据这个点子，自己也做了，大家可以到【分享部落】那里看看，就是那个显示最近更新那个，方法是大同小异。&nbsp;下面的方法来自：【万戈博客】，大家可以按如下方法制作，话不多说，看下文。&nbsp;&nbsp;方法一：12345678910111213141516&lt;?phpfunction add_title_icon&#040;$title&#041;&#123;    global $post;    $post_date=$post-&gt;post_date;    $current_time=current_time&#040;&#039;timestamp&#039;&#041;;    $diff=&#040;$current_time-strtotime&#040;$post_date&#041;&#041;/3600;   $title_icon_new=get_bloginfo&#040;&#039;template_directory&#039;&#041;.&#039;/images/title_icon/new.gif&#039;;    if&#040;$diff&lt;24&#041;    &#123;    $title=&#039;&lt;img src=&quot;&#039;.$title_icon_new.&#039;&quot; /&gt;&#039;.$title;    &#125;    return $title;&#125;add_filter&#040;&#039;the_title&#039;,&#039;add_title_icon&#039;,999&#041;;?&gt;把以上代码插入在主题文件夹的 functions.php 里就行了。方法二：123456&lt;?php    $t1=$post-&gt;post_date;    $t2=date&#040;&quot;Y-m-d H:i:s&quot;&#041;;    $diff=&#040;strtotime&#040;$t2&#041;-strtotime&#040;$t1&#041;&#041;/3600;    if&#040;$diff&lt;24&#041;&#123;echo &#039;&lt;img src=&quot;&#039;.get_bloginfo&#040;&#039;template_directory&#039;&#041;.&#039;/images/new.gif&quot; /&gt;&#039;;&#125;?&gt;把这段代码加到需要的地方就行，比如 single.php 中的 &lt;?php the_title(”); ?&gt; 前。     杂谈         haigeer 2012-05-13 19:41:13 发布   评论(0) 关注(2)      document.getElementById(&quot;bdshell_js&quot;).src = &quot;<a href="http://bdimg.share.baidu.com/static/js/shell_v2.js?t=&#038;quot" rel="nofollow">http://bdimg.share.baidu.com/static/js/shell_v2.js?t=&#038;quot</a>; + new Date().getHours();  上一条&nbsp;&nbsp;| 互联网| 返回列表      var __SELF__ = &#039;{#__SELF__#}&#039;;// 选择评论function change_com_cn(val){ $(&#039;#comment&#039;).val(val);}     发表评论点击这里取消回复。  昵称： [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：wordpress笔记之首页NEW提示 &#124; i 水手</title>
		<link>http://wange.im/add-new-ico-for-recent-posts-in-wordpress.html/comment-page-1#comment-128139</link>
		<dc:creator>wordpress笔记之首页NEW提示 &#124; i 水手</dc:creator>
		<pubDate>Sun, 18 Sep 2011 15:44:19 +0000</pubDate>
		<guid isPermaLink="false">http://wange.im/?p=2809#comment-128139</guid>
		<description>[...] 整个过程实现起来并不难，方法来自万戈，他提供了两种方法，但是我感觉他的方法一不适合我，我只需要在首页显示，所以选用了方法二，具体实现new提示的过程如下。 [...]</description>
		<content:encoded><![CDATA[<p>[...] 整个过程实现起来并不难，方法来自万戈，他提供了两种方法，但是我感觉他的方法一不适合我，我只需要在首页显示，所以选用了方法二，具体实现new提示的过程如下。 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：给 WordPress 最新文章添加 NEW 图标 &#124; 迷失乐园</title>
		<link>http://wange.im/add-new-ico-for-recent-posts-in-wordpress.html/comment-page-1#comment-115308</link>
		<dc:creator>给 WordPress 最新文章添加 NEW 图标 &#124; 迷失乐园</dc:creator>
		<pubDate>Thu, 26 May 2011 15:30:33 +0000</pubDate>
		<guid isPermaLink="false">http://wange.im/?p=2809#comment-115308</guid>
		<description>[...] RSS现在的位置: 首页 ＞wordpress技巧＞正文      给 WordPress 最新文章添加 NEW 图标  Erico  2011年05月26日  wordpress技巧  沙发尚在   0次被围观    最近给皮肤添加一些新功能和界面的细节改进,其中是给新发布的日志突出来就是添加new图标,搜索分享自万戈的一篇文章，给WordPress 的最新文章添加 New 小图标。 [...]</description>
		<content:encoded><![CDATA[<p>[...] RSS现在的位置: 首页 ＞wordpress技巧＞正文      给 WordPress 最新文章添加 NEW 图标  Erico  2011年05月26日  wordpress技巧  沙发尚在   0次被围观    最近给皮肤添加一些新功能和界面的细节改进,其中是给新发布的日志突出来就是添加new图标,搜索分享自万戈的一篇文章，给WordPress 的最新文章添加 New 小图标。 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：给新文章添加&#8221;New!&#8221;提示</title>
		<link>http://wange.im/add-new-ico-for-recent-posts-in-wordpress.html/comment-page-1#comment-90477</link>
		<dc:creator>给新文章添加&#8221;New!&#8221;提示</dc:creator>
		<pubDate>Sat, 15 Jan 2011 02:12:41 +0000</pubDate>
		<guid isPermaLink="false">http://wange.im/?p=2809#comment-90477</guid>
		<description>[...] pro2.4的提示图片很漂亮，就习惯性的去了万戈童鞋那里，果然，没有让我失望！ 方法一： [...]</description>
		<content:encoded><![CDATA[<p>[...] pro2.4的提示图片很漂亮，就习惯性的去了万戈童鞋那里，果然，没有让我失望！ 方法一： [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：万戈</title>
		<link>http://wange.im/add-new-ico-for-recent-posts-in-wordpress.html/comment-page-1#comment-89501</link>
		<dc:creator>万戈</dc:creator>
		<pubDate>Mon, 10 Jan 2011 11:57:35 +0000</pubDate>
		<guid isPermaLink="false">http://wange.im/?p=2809#comment-89501</guid>
		<description>我这里不是用的这个方法啦，呵呵</description>
		<content:encoded><![CDATA[<p>我这里不是用的这个方法啦，呵呵</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：奚少</title>
		<link>http://wange.im/add-new-ico-for-recent-posts-in-wordpress.html/comment-page-1#comment-89428</link>
		<dc:creator>奚少</dc:creator>
		<pubDate>Mon, 10 Jan 2011 06:03:16 +0000</pubDate>
		<guid isPermaLink="false">http://wange.im/?p=2809#comment-89428</guid>
		<description>我发现已经过去24小时了，还没有消失…</description>
		<content:encoded><![CDATA[<p>我发现已经过去24小时了，还没有消失…</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：万戈</title>
		<link>http://wange.im/add-new-ico-for-recent-posts-in-wordpress.html/comment-page-1#comment-52573</link>
		<dc:creator>万戈</dc:creator>
		<pubDate>Tue, 15 Jun 2010 04:31:59 +0000</pubDate>
		<guid isPermaLink="false">http://wange.im/?p=2809#comment-52573</guid>
		<description>对我来说是的，因为每天一篇</description>
		<content:encoded><![CDATA[<p>对我来说是的，因为每天一篇</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：iamlukas</title>
		<link>http://wange.im/add-new-ico-for-recent-posts-in-wordpress.html/comment-page-1#comment-52561</link>
		<dc:creator>iamlukas</dc:creator>
		<pubDate>Tue, 15 Jun 2010 04:05:35 +0000</pubDate>
		<guid isPermaLink="false">http://wange.im/?p=2809#comment-52561</guid>
		<description>效果不错，不过加不加都差不多，哈哈 :lol:  :lol:  :lol:  :lol:</description>
		<content:encoded><![CDATA[<p>效果不错，不过加不加都差不多，哈哈 <img src='http://wange.im/wp-includes/images/smilies/icon_lol.gif' alt=':lol:' class='wp-smiley' />   <img src='http://wange.im/wp-includes/images/smilies/icon_lol.gif' alt=':lol:' class='wp-smiley' />   <img src='http://wange.im/wp-includes/images/smilies/icon_lol.gif' alt=':lol:' class='wp-smiley' />   <img src='http://wange.im/wp-includes/images/smilies/icon_lol.gif' alt=':lol:' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：新主题Green living上线测试. &#124; 阿邙’S Blog</title>
		<link>http://wange.im/add-new-ico-for-recent-posts-in-wordpress.html/comment-page-1#comment-52441</link>
		<dc:creator>新主题Green living上线测试. &#124; 阿邙’S Blog</dc:creator>
		<pubDate>Mon, 14 Jun 2010 16:47:36 +0000</pubDate>
		<guid isPermaLink="false">http://wange.im/?p=2809#comment-52441</guid>
		<description>[...] 实现方法：万戈：《给 Wordpress 最新文章添加 NEW 图标》 [...]</description>
		<content:encoded><![CDATA[<p>[...] 实现方法：万戈：《给 WordPress 最新文章添加 NEW 图标》 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：丕子</title>
		<link>http://wange.im/add-new-ico-for-recent-posts-in-wordpress.html/comment-page-1#comment-48792</link>
		<dc:creator>丕子</dc:creator>
		<pubDate>Fri, 28 May 2010 05:50:12 +0000</pubDate>
		<guid isPermaLink="false">http://wange.im/?p=2809#comment-48792</guid>
		<description>很有用 学习</description>
		<content:encoded><![CDATA[<p>很有用 学习</p>
]]></content:encoded>
	</item>
</channel>
</rss>

