<?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>WordPress Note &#187; Newマーク</title>
	<atom:link href="http://www.df-cue.com/wp/tag/new-mark/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.df-cue.com/wp</link>
	<description>WordPressのプラグイン・カスタマイズ覚え書きノート</description>
	<lastBuildDate>Sat, 27 Feb 2010 03:38:44 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>新着記事にNewマークを表示させる</title>
		<link>http://www.df-cue.com/wp/2009/11/30/newmark/</link>
		<comments>http://www.df-cue.com/wp/2009/11/30/newmark/#comments</comments>
		<pubDate>Mon, 30 Nov 2009 10:29:03 +0000</pubDate>
		<dc:creator>ナカグマ</dc:creator>
				<category><![CDATA[カスタマイズ]]></category>
		<category><![CDATA[Newマーク]]></category>
		<category><![CDATA[新着アイコン]]></category>

		<guid isPermaLink="false">http://www.df-cue.com/wp/?p=613</guid>
		<description><![CDATA[				
				プラグインが見つからないのが不思議なくらいですが、新着記事にNewマークを表示させる方法です。
				（指定した日数がたてば、自然に消えます）
				サイドバーの新着エントリーなどでも使えて便利です [...]]]></description>
			<content:encoded><![CDATA[				<p><img src="http://www.df-cue.com/wp/wp-content/uploads/2009/11/newmark.gif" alt="newmark" title="newmark" width="310" height="90" class="alignright size-full wp-image-622" /></p>
				<p>プラグインが見つからないのが不思議なくらいですが、新着記事にNewマークを表示させる方法です。<br />
				（指定した日数がたてば、自然に消えます）<br />
				サイドバーの新着エントリーなどでも使えて便利です。</p>
				<p>参考サイト様より、そのまま拝借させていただきました。ありがとうございます。</p>
				<p><span id="more-613"></span></p>
				<dl>
				<dt>参考サイト</dt>
				<dd>
				<p><a title="CentLize - 新着アイコンを表示させる" href="http://centlize.jp/archives/25">CentLize &#8211; 新着アイコンを表示させる</a></p>
				</dd>
				</dl>
				<p>以下のソースで、投稿から３日間新着アイコンを表示します。</p>
				<pre class="brush: php;">&lt;h2&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot; title=&quot;&lt;?php the_title(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;?php
$days=3;
$today=date('U'); $entry=get_the_time('U');
$diff1=date('U',($today - $entry))/86400;
if ($days &gt; $diff1) {
echo '&lt;img src=&quot;http://www.*****.com/images/icon_new.gif&quot; alt=&quot;New&quot; /&gt;';
}
?&gt;&lt;/h2&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.df-cue.com/wp/2009/11/30/newmark/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
