<?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>regelog</title>
	<atom:link href="http://www.0yen-coding.com/d/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.0yen-coding.com/d</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sun, 26 Jun 2011 11:20:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>引越しします。</title>
		<link>http://www.0yen-coding.com/d/2011/06/%e5%bc%95%e8%b6%8a%e3%81%97%e3%81%97%e3%81%be%e3%81%99%e3%80%82/</link>
		<comments>http://www.0yen-coding.com/d/2011/06/%e5%bc%95%e8%b6%8a%e3%81%97%e3%81%97%e3%81%be%e3%81%99%e3%80%82/#comments</comments>
		<pubDate>Sun, 26 Jun 2011 11:20:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[未分類]]></category>

		<guid isPermaLink="false">http://www.0yen-coding.com/d/?p=1394</guid>
		<description><![CDATA[いろいろとリセットしたいので引越しします。
引越し先はこちら。
http://blog.0yen-coding.com/]]></description>
			<content:encoded><![CDATA[<p>いろいろとリセットしたいので引越しします。<br />
引越し先はこちら。<br />
<a href="http://blog.0yen-coding.com/">http://blog.0yen-coding.com/</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.0yen-coding.com/d/2011/06/%e5%bc%95%e8%b6%8a%e3%81%97%e3%81%97%e3%81%be%e3%81%99%e3%80%82/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jquery.TypingText.js</title>
		<link>http://www.0yen-coding.com/d/2011/06/jquery-typingtext-js/</link>
		<comments>http://www.0yen-coding.com/d/2011/06/jquery-typingtext-js/#comments</comments>
		<pubDate>Thu, 23 Jun 2011 15:38:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery Plugin]]></category>

		<guid isPermaLink="false">http://www.0yen-coding.com/d/?p=1380</guid>
		<description><![CDATA[文字をタイピングしている感じのエフェクトを実現します。


HTML



&#60;ul id="target"&#62;
	&#60;li&#62;ここの文字がキーボードでタイプしている感じになります。文字制限なし。&#60;/li&#62;
	&#60;li&#62;jquery製プラグインなので、導入が簡単。&#60;/li&#62;
	&#60;li&#62;テキストの表示するスピードを変更できます。数字を変えるだけ。とても簡単。&#60;/li&#62;
&#60;/ul&#62;

&#60;div id="outputArea"&#62;文字が表示される場所。&#60;/div&#62;







JS

$('#target').TypingText({
	outputArea : $('#outputArea'),// output text
	delay : 3500,
	speed : 35
});






demo
demo

]]></description>
			<content:encoded><![CDATA[<p>文字をタイピングしている感じのエフェクトを実現します。</p>

<span id="more-1380"></span>
<h2>HTML
</h2>


<blockquote><code class="prettyprint">&lt;ul id="target"&gt;
	&lt;li&gt;ここの文字がキーボードでタイプしている感じになります。文字制限なし。&lt;/li&gt;
	&lt;li&gt;jquery製プラグインなので、導入が簡単。&lt;/li&gt;
	&lt;li&gt;テキストの表示するスピードを変更できます。数字を変えるだけ。とても簡単。&lt;/li&gt;
&lt;/ul&gt;

&lt;div id="outputArea"&gt;文字が表示される場所。&lt;/div&gt;
</code>
</blockquote>





<h2>JS</h2>

<blockquote><code class="prettyprint">$('#target').TypingText({
	outputArea : $('#outputArea'),// output text
	delay : 3500,
	speed : 35
});
</code>
</blockquote>



<h2>
demo</h2>
<p><a href="http://www.0yen-coding.com/d/lab/js/jquery.TypingText/" target="_blank">demo</a>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.0yen-coding.com/d/2011/06/jquery-typingtext-js/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jsのtouchとclickイベントの分岐</title>
		<link>http://www.0yen-coding.com/d/2011/06/js%e3%81%aetouch%e3%81%a8click%e3%82%a4%e3%83%99%e3%83%b3%e3%83%88%e3%81%ae%e5%88%86%e5%b2%90/</link>
		<comments>http://www.0yen-coding.com/d/2011/06/js%e3%81%aetouch%e3%81%a8click%e3%82%a4%e3%83%99%e3%83%b3%e3%83%88%e3%81%ae%e5%88%86%e5%b2%90/#comments</comments>
		<pubDate>Sun, 19 Jun 2011 06:22:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iPhone/iPad]]></category>

		<guid isPermaLink="false">http://www.0yen-coding.com/d/?p=1373</guid>
		<description><![CDATA[あまりいいやり方が見つからない。



	jsの&#8217;touch&#8217;と&#8217;click&#8217;イベントの分岐




	
event.typeで&#8217;touch&#8217;と&#8217;click&#8217;の分岐はしたくない。ソースの可読性、メンテナンス性が落ちるから。
	
いいやり方が見つからないので、結局userAgent（iphone、ipad）で分岐した。

	↑なので、iphone、ipad以外のtouchデバイスには対応していない。	

↑だからと言って実行したい関数の中で分岐子なければならないのだろうか。。
	
検索して見つからないってことは分岐する事自体必要ない？？




要模索ですね。]]></description>
			<content:encoded><![CDATA[<p>あまりいいやり方が見つからない。</p>
<span id="more-1373"></span>
<ul>

	<li><a href="http://www.0yen-coding.com/d/lab/js/touch_click_event/" target="_blank">jsの&#8217;touch&#8217;と&#8217;click&#8217;イベントの分岐</a></li>
</ul>


<ul>
	<li>
event.typeで&#8217;touch&#8217;と&#8217;click&#8217;の分岐はしたくない。ソースの可読性、メンテナンス性が落ちるから。</li>
	<li>
いいやり方が見つからないので、結局userAgent（iphone、ipad）で分岐した。</li>

	<li>↑なので、iphone、ipad以外のtouchデバイスには対応していない。	</li>
<li>
↑だからと言って実行したい関数の中で分岐子なければならないのだろうか。。</li>
	<li>
検索して見つからないってことは分岐する事自体必要ない？？</li>


</ul>
<p>
要模索ですね。</p>]]></content:encoded>
			<wfw:commentRss>http://www.0yen-coding.com/d/2011/06/js%e3%81%aetouch%e3%81%a8click%e3%82%a4%e3%83%99%e3%83%b3%e3%83%88%e3%81%ae%e5%88%86%e5%b2%90/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>アーカイブ一覧、カテゴリ一覧を全て表示させる。WordPressプラグイン。</title>
		<link>http://www.0yen-coding.com/d/2011/06/%e3%82%a2%e3%83%bc%e3%82%ab%e3%82%a4%e3%83%96%e4%b8%80%e8%a6%a7%e3%80%81%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e4%b8%80%e8%a6%a7%e3%82%92%e5%85%a8%e3%81%a6%e8%a1%a8%e7%a4%ba%e3%81%95%e3%81%9b%e3%82%8b/</link>
		<comments>http://www.0yen-coding.com/d/2011/06/%e3%82%a2%e3%83%bc%e3%82%ab%e3%82%a4%e3%83%96%e4%b8%80%e8%a6%a7%e3%80%81%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e4%b8%80%e8%a6%a7%e3%82%92%e5%85%a8%e3%81%a6%e8%a1%a8%e7%a4%ba%e3%81%95%e3%81%9b%e3%82%8b/#comments</comments>
		<pubDate>Sat, 18 Jun 2011 18:31:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.0yen-coding.com/d/?p=1368</guid>
		<description><![CDATA[すばらしいプラグインです。




	Custom Query String Reloaded for Wordpress 2.3 with tag support @ MoshuBlog


WP2.9にて動作確認済み。]]></description>
			<content:encoded><![CDATA[<p>すばらしいプラグインです。</p>
<span id="more-1368"></span>


<ul>
	<li><a href="http://moshublog.com/2007/10/30/custom-query-string-reloaded-for-wordpress-23-with-tag-support/" target="_blank">Custom Query String Reloaded for Wordpress 2.3 with tag support @ MoshuBlog</a></li>
</ul>

<p>WP2.9にて動作確認済み。</p>]]></content:encoded>
			<wfw:commentRss>http://www.0yen-coding.com/d/2011/06/%e3%82%a2%e3%83%bc%e3%82%ab%e3%82%a4%e3%83%96%e4%b8%80%e8%a6%a7%e3%80%81%e3%82%ab%e3%83%86%e3%82%b4%e3%83%aa%e4%b8%80%e8%a6%a7%e3%82%92%e5%85%a8%e3%81%a6%e8%a1%a8%e7%a4%ba%e3%81%95%e3%81%9b%e3%82%8b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WodPressのRSSを取得するポイント。</title>
		<link>http://www.0yen-coding.com/d/2011/06/wodpress%e3%81%aerss%e3%82%92%e5%8f%96%e5%be%97%e3%81%99%e3%82%8b%e3%83%86%e3%82%b9%e3%83%88%e3%80%82/</link>
		<comments>http://www.0yen-coding.com/d/2011/06/wodpress%e3%81%aerss%e3%82%92%e5%8f%96%e5%be%97%e3%81%99%e3%82%8b%e3%83%86%e3%82%b9%e3%83%88%e3%80%82/#comments</comments>
		<pubDate>Sat, 18 Jun 2011 15:54:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.0yen-coding.com/d/?p=1351</guid>
		<description><![CDATA[
	WodPressのRSSを取得するテスト


ポイント


	（今回は）SimpleXMLElementを使った。
	pubDateの日付形式が長いので、形式変換する必要があった。（これは簡単に変換できる。）
	RSSの出力設定はWPの管理画面側で変更可能（WP ver 2.9）（WPすばらしい！）。



背景、経緯。
トップページに新着情報を出したいという要望が案外多くて、
実装側は案外面倒だなぁと思っていたが、
RSS取ってくればよいと気づいた。
wordpressのテーマに、トップページを組み込まなくても実現できる!ということに気づいた。

wordpressの可能性はまだ広がると思わされる。
すばらしいことです。無料で使えるし。]]></description>
			<content:encoded><![CDATA[<ul>
	<li><a href="http://www.0yen-coding.com/d/lab/php/getRSS/" target="_blank">WodPressのRSSを取得するテスト</a></li>
</ul>
<span id="more-1351"></span>
<h2>ポイント</h2>

<ul>
	<li>（今回は）SimpleXMLElementを使った。</li>
	<li>pubDateの日付形式が長いので、形式変換する必要があった。（これは簡単に変換できる。）</li>
	<li>RSSの出力設定はWPの管理画面側で変更可能（WP ver 2.9）（WPすばらしい！）。
</li>
</ul>

<h2>背景、経緯。</h2>
トップページに新着情報を出したいという要望が案外多くて、<br />
実装側は案外面倒だなぁと思っていたが、
RSS取ってくればよいと気づいた。<br /><br />
wordpressのテーマに、トップページを組み込まなくても実現できる!ということに気づいた。<br /><br />

wordpressの可能性はまだ広がると思わされる。<br />
すばらしいことです。無料で使えるし。]]></content:encoded>
			<wfw:commentRss>http://www.0yen-coding.com/d/2011/06/wodpress%e3%81%aerss%e3%82%92%e5%8f%96%e5%be%97%e3%81%99%e3%82%8b%e3%83%86%e3%82%b9%e3%83%88%e3%80%82/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>正規表現で行末に「★」を入れる。他。</title>
		<link>http://www.0yen-coding.com/d/2011/06/%e6%ad%a3%e8%a6%8f%e8%a1%a8%e7%8f%be%e3%81%a7%e8%a1%8c%e6%9c%ab%e3%81%ab%e3%80%8c%e2%98%85%e3%80%8d%e3%82%92%e5%85%a5%e3%82%8c%e3%82%8b%e3%80%82/</link>
		<comments>http://www.0yen-coding.com/d/2011/06/%e6%ad%a3%e8%a6%8f%e8%a1%a8%e7%8f%be%e3%81%a7%e8%a1%8c%e6%9c%ab%e3%81%ab%e3%80%8c%e2%98%85%e3%80%8d%e3%82%92%e5%85%a5%e3%82%8c%e3%82%8b%e3%80%82/#comments</comments>
		<pubDate>Sat, 18 Jun 2011 08:41:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.0yen-coding.com/d/?p=1341</guid>
		<description><![CDATA[jsの正規表現のメモです。


val = val.replace( /$/g, '★' );



「g」のオプションをつけた時と、つけない時では結果は同じでした。




	js正規表現


emeditorで、よく正規表現を使いますが、
emeditor上での「$」の挙動と違うんですね。
]]></description>
			<content:encoded><![CDATA[<p>jsの正規表現のメモです。</p>
<span id="more-1341"></span>

<blockquote><code class="prettyprint">val = val.replace( /$/g, '★' );
</code>
</blockquote>

<p>「g」のオプションをつけた時と、つけない時では結果は同じでした。</p>



<ul>
	<li><a href="http://www.0yen-coding.com/d/lab/js/CRtest/" target="_blank">js正規表現</a></li>
</ul>

emeditorで、よく正規表現を使いますが、<br />
emeditor上での「$」の挙動と違うんですね。
]]></content:encoded>
			<wfw:commentRss>http://www.0yen-coding.com/d/2011/06/%e6%ad%a3%e8%a6%8f%e8%a1%a8%e7%8f%be%e3%81%a7%e8%a1%8c%e6%9c%ab%e3%81%ab%e3%80%8c%e2%98%85%e3%80%8d%e3%82%92%e5%85%a5%e3%82%8c%e3%82%8b%e3%80%82/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PATH FINDERショートカットキー。</title>
		<link>http://www.0yen-coding.com/d/2011/06/path-finder%e3%82%b7%e3%83%a7%e3%83%bc%e3%83%88%e3%82%ab%e3%83%83%e3%83%88%e3%82%ad%e3%83%bc%e3%80%82/</link>
		<comments>http://www.0yen-coding.com/d/2011/06/path-finder%e3%82%b7%e3%83%a7%e3%83%bc%e3%83%88%e3%82%ab%e3%83%83%e3%83%88%e3%82%ad%e3%83%bc%e3%80%82/#comments</comments>
		<pubDate>Fri, 17 Jun 2011 17:13:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[path finder]]></category>
		<category><![CDATA[ツール]]></category>

		<guid isPermaLink="false">http://www.0yen-coding.com/d/?p=1330</guid>
		<description><![CDATA[

偶然見つけた、便利ショートカットキー。

alt + alt



つまり、altを2回押す。

するとランチャーが出現！


リアルタイム検索で欲しいアプリが一瞬で起動できる！
地味に結構使ってます。]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.0yen-coding.com/d/wp-content/uploads/スクリーンショット（2011-06-18-2.10.59）.png"><img src="http://www.0yen-coding.com/d/wp-content/uploads/スクリーンショット（2011-06-18-2.10.59）.png" alt="" title="スクリーンショット（2011-06-18 2.10.59）" width="509" height="335" class="alignnone size-full wp-image-1331" /></a></p>
<span id="more-1330"></span>
<p>偶然見つけた、便利ショートカットキー。</p>

<blockquote><code class="prettyprint">alt + alt
</code>
</blockquote>

つまり、altを2回押す。<br /><br />

<p>するとランチャーが出現！</p>
<a href="http://www.0yen-coding.com/d/wp-content/uploads/スクリーンショット（2011-06-18-2.10.59）.png"><img src="http://www.0yen-coding.com/d/wp-content/uploads/スクリーンショット（2011-06-18-2.10.59）.png" alt="" title="スクリーンショット（2011-06-18 2.10.59）" width="509" height="335" class="alignnone size-full wp-image-1331" /></a>

<p>リアルタイム検索で欲しいアプリが一瞬で起動できる！<br />
地味に結構使ってます。</p>]]></content:encoded>
			<wfw:commentRss>http://www.0yen-coding.com/d/2011/06/path-finder%e3%82%b7%e3%83%a7%e3%83%bc%e3%83%88%e3%82%ab%e3%83%83%e3%83%88%e3%82%ad%e3%83%bc%e3%80%82/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>奇数行は左。偶数行は右。に分ける軽量スクリプト。</title>
		<link>http://www.0yen-coding.com/d/2011/06/%e5%a5%87%e6%95%b0%e8%a1%8c%e3%81%af%e5%b7%a6%e3%80%82%e5%81%b6%e6%95%b0%e8%a1%8c%e3%81%af%e5%8f%b3%e3%80%82%e3%81%ab%e5%88%86%e3%81%91%e3%82%8b%e8%bb%bd%e9%87%8f%e3%82%b9%e3%82%af%e3%83%aa%e3%83%97/</link>
		<comments>http://www.0yen-coding.com/d/2011/06/%e5%a5%87%e6%95%b0%e8%a1%8c%e3%81%af%e5%b7%a6%e3%80%82%e5%81%b6%e6%95%b0%e8%a1%8c%e3%81%af%e5%8f%b3%e3%80%82%e3%81%ab%e5%88%86%e3%81%91%e3%82%8b%e8%bb%bd%e9%87%8f%e3%82%b9%e3%82%af%e3%83%aa%e3%83%97/#comments</comments>
		<pubDate>Wed, 15 Jun 2011 16:39:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.0yen-coding.com/d/?p=1316</guid>
		<description><![CDATA[もうちょっと工夫が必要欲しいところ。＞自分。






奇数行は左。偶数行は右。






	だいたい年に一回は使いたくなるスクリプト。

	出番は少ないですが、あると便利なはず。
	
気が向けばtableタグだけじゃなくて、任意のタグで囲めるようにするかも。


]]></description>
			<content:encoded><![CDATA[<p>もうちょっと工夫が必要欲しいところ。＞自分。</p>

<span id="more-1316"></span>

<a href="http://www.0yen-coding.com/d/wp-content/uploads/スクリーンショット（2011-06-16-1.33.50）.png"><img src="http://www.0yen-coding.com/d/wp-content/uploads/スクリーンショット（2011-06-16-1.33.50）.png" alt="" title="スクリーンショット（2011-06-16 1.33.50）" width="328" height="186" class="alignnone size-full wp-image-1315" /></a>


<blockquote><code class="prettyprint"><strong><a href="http://www.0yen-coding.com/d/lab/js/evenOddSorter/" target="_blank">奇数行は左。偶数行は右。</a></strong>
</code>
</blockquote>



<ul>
	<li>だいたい年に一回は使いたくなるスクリプト。
</li>
	<li>出番は少ないですが、あると便利なはず。
</li>	<li>
気が向けばtableタグだけじゃなくて、任意のタグで囲めるようにするかも。</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.0yen-coding.com/d/2011/06/%e5%a5%87%e6%95%b0%e8%a1%8c%e3%81%af%e5%b7%a6%e3%80%82%e5%81%b6%e6%95%b0%e8%a1%8c%e3%81%af%e5%8f%b3%e3%80%82%e3%81%ab%e5%88%86%e3%81%91%e3%82%8b%e8%bb%bd%e9%87%8f%e3%82%b9%e3%82%af%e3%83%aa%e3%83%97/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[WordPress]calenderの「前の月」「次の月」のリンクを上にする方法。</title>
		<link>http://www.0yen-coding.com/d/2011/06/wordpresscalender%e3%81%ae%e3%80%8c%e5%89%8d%e3%81%ae%e6%9c%88%e3%80%8d%e3%80%8c%e6%ac%a1%e3%81%ae%e6%9c%88%e3%80%8d%e3%81%ae%e3%83%aa%e3%83%b3%e3%82%af%e3%82%92%e4%b8%8a%e3%81%ab%e3%81%99%e3%82%8b/</link>
		<comments>http://www.0yen-coding.com/d/2011/06/wordpresscalender%e3%81%ae%e3%80%8c%e5%89%8d%e3%81%ae%e6%9c%88%e3%80%8d%e3%80%8c%e6%ac%a1%e3%81%ae%e6%9c%88%e3%80%8d%e3%81%ae%e3%83%aa%e3%83%b3%e3%82%af%e3%82%92%e4%b8%8a%e3%81%ab%e3%81%99%e3%82%8b/#comments</comments>
		<pubDate>Sun, 12 Jun 2011 06:10:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.0yen-coding.com/d/?p=1246</guid>
		<description><![CDATA[

デモ




#wp-calendar caption a {
	font-size:77%;
	padding:0 6px;
}





&#171; 6月2012年2月月火水木金土日&#160;1234567891011121314151617181920212223242526272829&#160;


デフォルトの表示

「前の月」「次の月」のリンクが一番下にある。



	2012年2月
	
	
		月
		火
		水
		木
		金
		土
		日
	
	

	
	
		&#171; 6月
		&#160;
		&#160;
	
	

	
	
		&#160;12345
	
	
		6789101112
	
	
		13141516171819
	
	
		20212223242526
	
	
		272829
		&#160;
	
	
	




PHPコード

function new﻿﻿Calendar()
{
	ob_start();
	get_calendar();
	$output = ob_get_contents();
	ob_end_clean();
	
	$output = str_replace( array("\r\n","\r","\n", "\t"), '', $output );
	
	if( preg_match_all( '@&#60;tfoot&#62;' . '.*?' . '&#60;/tfoot&#62;@im', $output, $matches ) )
	{
		preg_match_all( '@&#60;a' . '.*?' . '&#60;/a&#62;@im', $matches[0][0], $matches );
		
		if( $matches[0][0] != '' ) $output = str_replace( '&#60;caption&#62;', '&#60;caption&#62;' . $matches[0][0], $output );
		if( $matches[0][1] != '' ) $output = str_replace( [...]]]></description>
			<content:encoded><![CDATA[<span id="more-1246"></span>

<h2>デモ</h2>


<style type="text/css">

#wp-calendar caption a {
	font-size:77%;
	padding:0 6px;
}

</style>


<blockquote style="border:1px #333 solid; background:#eee; padding:10px; margin:5px 0 10px 0;">
<table id="wp-calendar" summary="カレンダー"><caption><a href="http://www.0yen-coding.com/d/2011/06/" title="2011年6月の投稿を表示">&laquo; 6月</a>2012年2月</caption><thead><tr><th abbr="月曜日" scope="col" title="月曜日">月</th><th abbr="火曜日" scope="col" title="火曜日">火</th><th abbr="水曜日" scope="col" title="水曜日">水</th><th abbr="木曜日" scope="col" title="木曜日">木</th><th abbr="金曜日" scope="col" title="金曜日">金</th><th abbr="土曜日" scope="col" title="土曜日">土</th><th abbr="日曜日" scope="col" title="日曜日">日</th></tr></thead><tbody><tr><td colspan="2" class="pad">&nbsp;</td><td>1</td><td>2</td><td>3</td><td>4</td><td id="today">5</td></tr><tr><td>6</td><td>7</td><td>8</td><td>9</td><td>10</td><td>11</td><td>12</td></tr><tr><td>13</td><td>14</td><td>15</td><td>16</td><td>17</td><td>18</td><td>19</td></tr><tr><td>20</td><td>21</td><td>22</td><td>23</td><td>24</td><td>25</td><td>26</td></tr><tr><td>27</td><td>28</td><td>29</td><td class="pad" colspan="4">&nbsp;</td></tr></tbody></table>
</blockquote>

<h2>デフォルトの表示</h2>

<p>「前の月」「次の月」のリンクが一番下にある。</p>

<blockquote style="border:1px #333 solid; background:#eee; padding:10px; margin:5px 0 10px 0;">
<table id="wp-calendar" summary="カレンダー">
	<caption>2012年2月</caption>
	<thead>
	<tr>
		<th abbr="月曜日" scope="col" title="月曜日">月</th>
		<th abbr="火曜日" scope="col" title="火曜日">火</th>
		<th abbr="水曜日" scope="col" title="水曜日">水</th>
		<th abbr="木曜日" scope="col" title="木曜日">木</th>
		<th abbr="金曜日" scope="col" title="金曜日">金</th>
		<th abbr="土曜日" scope="col" title="土曜日">土</th>
		<th abbr="日曜日" scope="col" title="日曜日">日</th>
	</tr>
	</thead>

	<tfoot>
	<tr>
		<td abbr="6月" colspan="3" id="prev"><a href="http://www.0yen-coding.com/d/2011/06/" title="2011年6月の投稿を表示">&laquo; 6月</a></td>
		<td class="pad">&nbsp;</td>
		<td colspan="3" id="next" class="pad">&nbsp;</td>
	</tr>
	</tfoot>

	<tbody>
	<tr>
		<td colspan="2" class="pad">&nbsp;</td><td>1</td><td>2</td><td>3</td><td>4</td><td id="today">5</td>
	</tr>
	<tr>
		<td>6</td><td>7</td><td>8</td><td>9</td><td>10</td><td>11</td><td>12</td>
	</tr>
	<tr>
		<td>13</td><td>14</td><td>15</td><td>16</td><td>17</td><td>18</td><td>19</td>
	</tr>
	<tr>
		<td>20</td><td>21</td><td>22</td><td>23</td><td>24</td><td>25</td><td>26</td>
	</tr>
	<tr>
		<td>27</td><td>28</td><td>29</td>
		<td class="pad" colspan="4">&nbsp;</td>
	</tr>
	</tbody>
	</table>

</blockquote>


<h2>PHPコード</h2>

<blockquote><code class="prettyprint">function new﻿﻿Calendar()
{
	ob_start();
	get_calendar();
	$output = ob_get_contents();
	ob_end_clean();
	
	$output = str_replace( array("\r\n","\r","\n", "\t"), '', $output );
	
	if( preg_match_all( '@&lt;tfoot&gt;' . '.*?' . '&lt;/tfoot&gt;@im', $output, $matches ) )
	{
		preg_match_all( '@&lt;a' . '.*?' . '&lt;/a&gt;@im', $matches[0][0], $matches );
		
		if( $matches[0][0] != '' ) $output = str_replace( '&lt;caption&gt;', '&lt;caption&gt;' . $matches[0][0], $output );
		if( $matches[0][1] != '' ) $output = str_replace( '&lt;/caption&gt;', $matches[0][1] . '&lt;/caption&gt;' , $output );
	}

	$output = preg_replace( '@&lt;tfoot&gt;' . '.*?' . '&lt;/tfoot&gt;@im', '', $output );
	
	return $output;
}// func

</code>
</blockquote>

↑のコードを<br />
<blockquote><code class="prettyprint">/wp-content/themes/(ココは人によって違う)/functions.php
</code>
</blockquote>
にコピペする。<br />
（functions.phpに書くと、どのページからでも実行できるようになるらしい。）
<br /><br />
出力したいところ（sidebar.phpなど）で↓を実行する。
<blockquote><code class="prettyprint">echo newCalendar();
</code>
</blockquote>

うまく実行出来ると、カレンダーが表示されます。




<h2 style="margin-top:10px;">動作環境</h2>
WordPress 2.9.2<br />
でのみ動作確認済み。

<h2 style="margin-top:10px;">※注意点</h2>
<blockquote><code class="prettyprint">get_calendar();
</code>
</blockquote>

Wordpress自体のバージョンアップにより、↑が返す値が変わると、動作しなくなる可能性大です。
なので、あまり使わない方がいいと思います。
バージョンアップなんかしない！という場合のみ、ご利用ください。

<h2 style="margin-top:35px;">inspired by</h2>
<ul>
	<li>
<a href="http://wpxtreme.jp/event-calendar-with-wordpress" target="_blank">WordPressでイベントカレンダー  |  wpxtreme</a></li>
</ul>


]]></content:encoded>
			<wfw:commentRss>http://www.0yen-coding.com/d/2011/06/wordpresscalender%e3%81%ae%e3%80%8c%e5%89%8d%e3%81%ae%e6%9c%88%e3%80%8d%e3%80%8c%e6%ac%a1%e3%81%ae%e6%9c%88%e3%80%8d%e3%81%ae%e3%83%aa%e3%83%b3%e3%82%af%e3%82%92%e4%b8%8a%e3%81%ab%e3%81%99%e3%82%8b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>たまごかけご飯を作ってみた。</title>
		<link>http://www.0yen-coding.com/d/2011/06/%e3%81%9f%e3%81%be%e3%81%94%e3%81%8b%e3%81%91%e3%81%94%e9%a3%af%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e3%81%bf%e3%81%9f%e3%80%82/</link>
		<comments>http://www.0yen-coding.com/d/2011/06/%e3%81%9f%e3%81%be%e3%81%94%e3%81%8b%e3%81%91%e3%81%94%e9%a3%af%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e3%81%bf%e3%81%9f%e3%80%82/#comments</comments>
		<pubDate>Sat, 11 Jun 2011 18:35:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[未分類]]></category>

		<guid isPermaLink="false">http://www.0yen-coding.com/d/?p=1244</guid>
		<description><![CDATA[音がでます。
ゴノレゴ？っぽい声が雰囲気にマッチしててよいですね。


bp_init(190,190,"2-2-3-2-NO_NAME");


]]></description>
			<content:encoded><![CDATA[音がでます。
ゴノレゴ？っぽい声が雰囲気にマッチしててよいですね。
<span id="more-1244"></span>
<script type="text/javascript" src="http://www.ajinomoto.co.jp/aji/egg/generator/bp/js/neobp_b.js"></script>
<script type="text/javascript" >bp_init(190,190,"2-2-3-2-NO_NAME");</script>
<noscript><a href="http://www.ajinomoto.co.jp/aji/egg/generator/" target="_blank"><img src="http://www.ajinomoto.co.jp/aji/egg/generator/bp/neobp_b.png" alt="NEO TAMAGO KAKE GOHAN" title="NEO TAMAGO KAKE GOHAN" width="190" height="190" border="0" /></a></noscript>

]]></content:encoded>
			<wfw:commentRss>http://www.0yen-coding.com/d/2011/06/%e3%81%9f%e3%81%be%e3%81%94%e3%81%8b%e3%81%91%e3%81%94%e9%a3%af%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e3%81%bf%e3%81%9f%e3%80%82/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

