<?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/"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>あり &#187; Plugin</title>
	<atom:link href="http://blog.4sure.jp/yokoshima/category/%e9%96%8b%e7%99%ba/wordpress/plugin-wordpress-%e9%96%8b%e7%99%ba/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.4sure.jp/yokoshima</link>
	<description>日常を語る普通の人のブログ</description>
	<lastBuildDate>Tue, 24 Aug 2010 11:49:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.4sure.jp/yokoshima/category/%e9%96%8b%e7%99%ba/wordpress/plugin-wordpress-%e9%96%8b%e7%99%ba/feed/" />
		<item>
		<title>Akismet</title>
		<link>http://blog.4sure.jp/yokoshima/2009/07/22/akismet/</link>
		<comments>http://blog.4sure.jp/yokoshima/2009/07/22/akismet/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 15:49:46 +0000</pubDate>
		<dc:creator>yokoshima</dc:creator>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Akismet]]></category>
		<category><![CDATA[Spam]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.4sure.jp/yokoshima/?p=708</guid>
		<description><![CDATA[今日現場から家に帰るまでの60分くらいで、スパムTBが10件くらい来ていました。
ちょっと調子に乗られてるなと思ったので、AkismetというWordpressでは結構有名なプラグインを入れました。
使用するにはWordpress.comに登録してAPI Keyを取得する必要があります。
明日どうなってるか。別ブログで試していますが、今のところ完璧にガードしてます。




]]></description>
			<content:encoded><![CDATA[<p>今日現場から家に帰るまでの60分くらいで、スパムTBが10件くらい来ていました。<br />
ちょっと調子に乗られてるなと思ったので、<a href="http://wordpress.org/extend/plugins/akismet/">Akismet</a>というWordpressでは結構有名なプラグインを入れました。</p>
<p>使用するには<a href="http://wordpress.com/">Wordpress.com</a>に登録してAPI Keyを取得する必要があります。</p>
<p>明日どうなってるか。別ブログで試していますが、今のところ完璧にガードしてます。
<p><script type="text/javascript"><!--
google_ad_client = "pub-3467153506120319";
/* 468x60, 作成済み 09/05/08 */
google_ad_slot = "8443402396";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.4sure.jp/yokoshima/2009/07/22/akismet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.4sure.jp/yokoshima/2009/07/22/akismet/" />
	</item>
		<item>
		<title>WordPressプラグインの作成（4）</title>
		<link>http://blog.4sure.jp/yokoshima/2009/07/03/wordpress%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%81%ae%e4%bd%9c%e6%88%90%ef%bc%884%ef%bc%89/</link>
		<comments>http://blog.4sure.jp/yokoshima/2009/07/03/wordpress%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%81%ae%e4%bd%9c%e6%88%90%ef%bc%884%ef%bc%89/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 07:00:46 +0000</pubDate>
		<dc:creator>yokoshima</dc:creator>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[My CSS Editor]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.4sure.jp/yokoshima/?p=547</guid>
		<description><![CDATA[WordPressプラグインの作成（３）の続きです。
せっかく作成したPluginなので、WordpressのPluginディレクトリに公開したいと思います。
WordPress.orgのプラグインディレクトリに自作プラグインを登録する方法に詳しく書かれているのでそのままやってみます。
WordPress.orgのアカウントを取得する
http://wordpress.org/support/register.phpからアカウントを取得します。
ユーザ名、emailが必須なのでそれを入力します。
Wordpress.comのアカウントと同じなのかと思ったら違うものなので注意。
プラグインの登録申請を出す
http://wordpress.org/extend/plugins/add/
プラグイン名、プラグイン説明を記入して待ちます。
今回は、２日位で返事が来ました。
SVNからチェックアウト
SVNクライアントならEclipseのPluginでもいいとは思いますが、SubversionのクライアントはTortoiseSVNが一番操作性がいいです。
登録申請の返事に記載のある、Subversionのリポジトリをローカルの作業フォルダにチェックアウトします。
チェックアウトすると「trunk」「branches」「tags」フォルダがチェックアウトされるので（ちょうどちょっと前に書いた記事が役に立った）
readme.txtの準備
これが一番大変でした。
英語部分は翻訳サイトのやつでもとりあえず大丈夫だとは思いますが、Donate linkでPayPalを色々調べていたら時間がかかってしまいました。
Wordpress.orgリポジトリにコミット
readme.txtとプラグインのファイル（my-css-editor.php）をtrunkに保存してコミットします。
コミットの際にWordpress.orgアカウントが必要になってきます。
タグ付け
現在のバージョン名でタグ付をします。今回は0.2なので、tags/フォルダを選択状態でTortoiseSVNのBranch/Tagを選び、先URLを「tags/0.2」にしてOKを押します。
確認
タグ付してからしばらくすると
http://wordpress.org/extend/plugins/browse/updated/
に表示されていました。
URLは「http://wordpress.org/extend/plugins/my-css-editor/」です。
なんだか嬉しい。英語は大丈夫だろうか。
次は更新時の方法を記載したいと思います。




]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.4sure.jp/yokoshima/2009/06/30/wordpressプラグインの作成（３）/">WordPressプラグインの作成（３）</a>の続きです。</p>
<p>せっかく作成したPluginなので、WordpressのPluginディレクトリに公開したいと思います。<br />
<a href="http://wordpressgogo.com/development/wordpress-plugin-directory.html">WordPress.orgのプラグインディレクトリに自作プラグインを登録する方法</a>に詳しく書かれているのでそのままやってみます。</p>
<h4>WordPress.orgのアカウントを取得する</h4>
<p><a href="http://wordpress.org/support/register.php">http://wordpress.org/support/register.php</a>からアカウントを取得します。<br />
ユーザ名、emailが必須なのでそれを入力します。<br />
Wordpress.comのアカウントと同じなのかと思ったら違うものなので注意。</p>
<h4>プラグインの登録申請を出す</h4>
<p><a href="http://wordpress.org/extend/plugins/add/">http://wordpress.org/extend/plugins/add/</a></p>
<p>プラグイン名、プラグイン説明を記入して待ちます。<br />
今回は、２日位で返事が来ました。</p>
<h4>SVNからチェックアウト</h4>
<p>SVNクライアントならEclipseのPluginでもいいとは思いますが、SubversionのクライアントはTortoiseSVNが一番操作性がいいです。<br />
登録申請の返事に記載のある、Subversionのリポジトリをローカルの作業フォルダにチェックアウトします。<br />
チェックアウトすると「trunk」「branches」「tags」フォルダがチェックアウトされるので（ちょうど<a href="http://blog.4sure.jp/yokoshima/2009/07/01/subversionリポジトリこれだけやっとけ/">ちょっと前に書いた記事</a>が役に立った）</p>
<h4>readme.txtの準備</h4>
<p>これが一番大変でした。<br />
英語部分は翻訳サイトのやつでもとりあえず大丈夫だとは思いますが、Donate linkで<a href="http://blog.4sure.jp/yokoshima/2009/07/03/paypal寄付は今出来ない/">PayPalを色々調べていた</a>ら時間がかかってしまいました。</p>
<h4>Wordpress.orgリポジトリにコミット</h4>
<p>readme.txtとプラグインのファイル（my-css-editor.php）をtrunkに保存してコミットします。<br />
コミットの際にWordpress.orgアカウントが必要になってきます。</p>
<h4>タグ付け</h4>
<p>現在のバージョン名でタグ付をします。今回は0.2なので、tags/フォルダを選択状態でTortoiseSVNのBranch/Tagを選び、先URLを「tags/0.2」にしてOKを押します。</p>
<h4>確認</h4>
<p>タグ付してからしばらくすると<br />
<a href="http://wordpress.org/extend/plugins/browse/updated/">http://wordpress.org/extend/plugins/browse/updated/</a></p>
<p>に表示されていました。<br />
URLは「<a href="http://wordpress.org/extend/plugins/my-css-editor/">http://wordpress.org/extend/plugins/my-css-editor/</a>」です。<br />
なんだか嬉しい。英語は大丈夫だろうか。<br />
次は更新時の方法を記載したいと思います。
<p><script type="text/javascript"><!--
google_ad_client = "pub-3467153506120319";
/* 468x60, 作成済み 09/05/08 */
google_ad_slot = "8443402396";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.4sure.jp/yokoshima/2009/07/03/wordpress%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%81%ae%e4%bd%9c%e6%88%90%ef%bc%884%ef%bc%89/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.4sure.jp/yokoshima/2009/07/03/wordpress%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%81%ae%e4%bd%9c%e6%88%90%ef%bc%884%ef%bc%89/" />
	</item>
		<item>
		<title>WordPressプラグインの作成（３）</title>
		<link>http://blog.4sure.jp/yokoshima/2009/06/30/wordpress%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%81%ae%e4%bd%9c%e6%88%90%ef%bc%88%ef%bc%93%ef%bc%89/</link>
		<comments>http://blog.4sure.jp/yokoshima/2009/06/30/wordpress%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%81%ae%e4%bd%9c%e6%88%90%ef%bc%88%ef%bc%93%ef%bc%89/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 13:46:25 +0000</pubDate>
		<dc:creator>yokoshima</dc:creator>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.4sure.jp/yokoshima/?p=525</guid>
		<description><![CDATA[WordPressプラグインの作成（２）の続きです。
前回は管理画面で表示できるまでが出来ましたが、その設定値はどこに保存するか？というのが問題です。
Creating Options Pagesを見ると、すごく簡単そう。
WordPress MUでも、ブログ毎に設定が保存されるようなので、これが使えそうです。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
function wp_head&#40;&#41; &#123;		
	echo &#34;\n&#60;!-- My CSS Editor $this-&#62;version --&#62;\n&#34;;
	if&#40; get_option&#40;$this-&#62;option_name&#41; &#41;&#123;
		echo '&#60;style type=&#34;text/css&#34;&#62;';
		echo '&#60;--';
		echo get_option&#40;$this-&#62;option_name&#41;;
		echo '--&#62;';
		echo '&#60;/style&#62;';
	&#125;
&#125;
&#160;
function edit_setting&#40;&#41; &#123;
	if &#40; isset&#40;$_POST&#91;'action'&#93;&#41; &#38;&#38; $_POST&#91;'action'&#93; == 'update' &#41;&#123;
		update_option&#40;$this-&#62;option_name, $_POST&#91;'css_value'&#93;&#41;;
		echo '&#60;div id=&#34;message&#34; class=&#34;updated fade&#34;&#62;&#60;p&#62;&#60;strong&#62;Your Style Sheet was preserved. &#60;/strong&#62;&#60;/p&#62;&#60;/div&#62;';
	&#125;elseif&#40;isset&#40;$_POST&#91;'action'&#93;&#41; &#38;&#38; $_POST&#91;'action'&#93; == 'delete'&#41;&#123;
		delete_option&#40;$this-&#62;option_name&#41;;
		echo '&#60;div id=&#34;message&#34; class=&#34;updated fade&#34;&#62;&#60;p&#62;&#60;strong&#62;Your Style Sheet setting was deleted. &#60;/strong&#62;&#60;/p&#62;&#60;/div&#62;';
	&#125;
	echo '&#60;div class=&#34;wrap&#34;&#62;';
	echo [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.4sure.jp/yokoshima/2009/06/27/wordpressプラグインの作成（２）/">WordPressプラグインの作成（２）</a>の続きです。</p>
<p>前回は管理画面で表示できるまでが出来ましたが、その設定値はどこに保存するか？というのが問題です。</p>
<p><a href="http://wpdocs.sourceforge.jp/Creating_Options_Pages">Creating Options Pages</a>を見ると、すごく簡単そう。<br />
WordPress MUでも、ブログ毎に設定が保存されるようなので、これが使えそうです。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> wp_head<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>		
	<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&lt;!-- My CSS Editor <span style="color: #006699; font-weight: bold;">$this-&gt;version</span> --&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">option_name</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;style type=&quot;text/css&quot;&gt;'</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;--'</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">echo</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">option_name</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'--&gt;'</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;/style&gt;'</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> edit_setting<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'action'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'action'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'update'</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		update_option<span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">option_name</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'css_value'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;div id=&quot;message&quot; class=&quot;updated fade&quot;&gt;&lt;p&gt;&lt;strong&gt;Your Style Sheet was preserved. &lt;/strong&gt;&lt;/p&gt;&lt;/div&gt;'</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #b1b100;">elseif</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'action'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'action'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'delete'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		delete_option<span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">option_name</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;div id=&quot;message&quot; class=&quot;updated fade&quot;&gt;&lt;p&gt;&lt;strong&gt;Your Style Sheet setting was deleted. &lt;/strong&gt;&lt;/p&gt;&lt;/div&gt;'</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;div class=&quot;wrap&quot;&gt;'</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;h2&gt;Edit of your Style Sheet&lt;/h2&gt;'</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;form&gt;option_name}\&quot;&quot;,  '</span> action<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;'.<span style="color: #006699; font-weight: bold;">$_SERVER</span>['REQUEST_URI'].'&quot;</span> method<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;post&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #0000ff;">';
	wp_nonce_field('</span>update<span style="color: #339933;">-</span>options<span style="color: #0000ff;">');
	echo '</span><span style="color: #339933;">&lt;</span>table <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;form-table&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #0000ff;">';
&nbsp;
	echo '</span><span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>Your Style Sheet setting can be made by editing the text area<span style="color: #339933;">.</span> <span style="color: #339933;">&lt;</span>br <span style="color: #339933;">/&gt;</span><span style="color: #0000ff;">';
	echo '</span>The setting can be deleted with the delete button<span style="color: #339933;">.</span> <span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;</span><span style="color: #0000ff;">';
	echo '</span><span style="color: #339933;">&lt;</span>tr valign<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;top&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #0000ff;">';
	echo '</span><span style="color: #339933;">&lt;</span>th scope<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;row&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">option_name</span><span style="color: #339933;">&lt;/</span>th<span style="color: #339933;">&gt;</span><span style="color: #0000ff;">';
	echo '</span><span style="color: #339933;">&lt;</span>td<span style="color: #339933;">&gt;</span><span style="color: #0000ff;">';
	echo '</span><span style="color: #339933;">&lt;</span>textarea name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;css_value&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #0000ff;">';
&nbsp;
	if($settings = get_option($this-&gt;option_name)){
		echo $settings;
	}else{
		;
	}
&nbsp;
	echo '</span><span style="color: #339933;">&lt;/</span>textarea<span style="color: #339933;">&gt;</span><span style="color: #0000ff;">';
&nbsp;
	echo '</span><span style="color: #339933;">&lt;/</span>td<span style="color: #339933;">&gt;</span><span style="color: #0000ff;">';
	echo '</span><span style="color: #339933;">&lt;/</span>tr<span style="color: #339933;">&gt;</span><span style="color: #0000ff;">';
	echo '</span><span style="color: #339933;">&lt;/</span>table<span style="color: #339933;">&gt;</span><span style="color: #0000ff;">';
	echo &quot;function delete_setting(){alert('</span>delete?<span style="color: #0000ff;">');document.getElementById('</span>action<span style="color: #0000ff;">').value='</span>delete<span style="color: #0000ff;">';document.getElementById('</span><span style="color: #009900;">&#123;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">option_name</span><span style="color: #009900;">&#125;</span><span style="color: #0000ff;">').submit();}&quot;;
	echo '</span><span style="color: #0000ff;">';
	echo '</span><span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;</span><span style="color: #0000ff;">';
	echo '</span><span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;</span><span style="color: #0000ff;">';
	echo '</span><span style="color: #339933;">&lt;/</span>form<span style="color: #339933;">&gt;</span><span style="color: #0000ff;">';
	echo '</span><span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span><span style="color: #0000ff;">';
}</span></pre></td></tr></table></div>

<p>コード書いてもちょっと見難いのですが、<br />
名前を「My CSS Editor」に変更しました。<br />
wp_head()関数では、$this-&gt;option_nameでオプションを取得して表示させています。（option_nameというインスタンス変数にオプション名を持たせています）<br />
edit_setting()関数では、つまりは、actionというhiddenの値で、updateとdeleteを切り替えています。<br />
メッセージはプラグインを公開するためにとりあえず英語にしました。<br />
あとは、国際化とWordpress.comに公開することです。
<p><script type="text/javascript"><!--
google_ad_client = "pub-3467153506120319";
/* 468x60, 作成済み 09/05/08 */
google_ad_slot = "8443402396";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.4sure.jp/yokoshima/2009/06/30/wordpress%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%81%ae%e4%bd%9c%e6%88%90%ef%bc%88%ef%bc%93%ef%bc%89/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.4sure.jp/yokoshima/2009/06/30/wordpress%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%81%ae%e4%bd%9c%e6%88%90%ef%bc%88%ef%bc%93%ef%bc%89/" />
	</item>
		<item>
		<title>WordPress MUでiframeを使う</title>
		<link>http://blog.4sure.jp/yokoshima/2009/06/30/wordpress-mu%e3%81%a7iframe%e3%82%92%e4%bd%bf%e3%81%86/</link>
		<comments>http://blog.4sure.jp/yokoshima/2009/06/30/wordpress-mu%e3%81%a7iframe%e3%82%92%e4%bd%bf%e3%81%86/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 15:11:40 +0000</pubDate>
		<dc:creator>yokoshima</dc:creator>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Embed Iframe]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.4sure.jp/yokoshima/?p=520</guid>
		<description><![CDATA[以前から書いていますが、このブログはWordPress MUというツールで作成しています。
先ほど、GoogleMapを張り付けたいので、そのまま記事に貼り付けようとしたのですが、なんだかiframeの部分が削られてしまいます。
色々調べて、「ユーザー」-（自分の名前）から、「ビジュアルリッチエディタを使用しない」にはチェックしてみたのですが、依然iframeが消えてしまいます。
しょうがないので、Embed Iframeというプラグインをインストールしてみた。
いちいち書き換えないといけないけど動作は良好です。
ちなみに、以下の感じで書きます。
[iframe url width height]
そのまんまですが、urlやwidth等にクオーテーションをつけるとおかしくなるのでつけないで書きます。
他のPluginはAPI Keyがいるそうなので、これで我慢するしかないですね。




]]></description>
			<content:encoded><![CDATA[<p>以前から書いていますが、このブログはWordPress MUというツールで作成しています。<br />
先ほど、GoogleMapを張り付けたいので、そのまま記事に貼り付けようとしたのですが、なんだかiframeの部分が削られてしまいます。</p>
<p>色々調べて、「ユーザー」-（自分の名前）から、「ビジュアルリッチエディタを使用しない」にはチェックしてみたのですが、依然iframeが消えてしまいます。</p>
<p>しょうがないので、<a href="http://wordpress.org/extend/plugins/embed-iframe/">Embed Iframe</a>というプラグインをインストールしてみた。<br />
いちいち書き換えないといけないけど動作は良好です。<br />
ちなみに、以下の感じで書きます。</p>
<p><code>[</code><code>iframe url width height</code><code>]</code></p>
<p>そのまんまですが、urlやwidth等にクオーテーションをつけるとおかしくなるのでつけないで書きます。<br />
他のPluginはAPI Keyがいるそうなので、これで我慢するしかないですね。
<p><script type="text/javascript"><!--
google_ad_client = "pub-3467153506120319";
/* 468x60, 作成済み 09/05/08 */
google_ad_slot = "8443402396";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.4sure.jp/yokoshima/2009/06/30/wordpress-mu%e3%81%a7iframe%e3%82%92%e4%bd%bf%e3%81%86/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.4sure.jp/yokoshima/2009/06/30/wordpress-mu%e3%81%a7iframe%e3%82%92%e4%bd%bf%e3%81%86/" />
	</item>
		<item>
		<title>WordPressプラグインの作成（２）</title>
		<link>http://blog.4sure.jp/yokoshima/2009/06/27/wordpress%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%81%ae%e4%bd%9c%e6%88%90%ef%bc%88%ef%bc%92%ef%bc%89/</link>
		<comments>http://blog.4sure.jp/yokoshima/2009/06/27/wordpress%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%81%ae%e4%bd%9c%e6%88%90%ef%bc%88%ef%bc%92%ef%bc%89/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 06:50:24 +0000</pubDate>
		<dc:creator>yokoshima</dc:creator>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[作成]]></category>

		<guid isPermaLink="false">http://blog.4sure.jp/yokoshima/?p=487</guid>
		<description><![CDATA[WordPressプラグインの作成
の続きです。（・・・の続きが多いな～。こういうサブカテゴリ的なもののページャも欲しいです。）
前回は、とりあえずプラグインを有効化したらページのヘッダにコメントが挿入されるまでを確認しました。
今度は、そのプラグインの編集が出来る画面を管理画面に入れたいと思います。
WordPress2.7以降では、左に管理メニューが表示されており、

ダッシュボード
サイト管理
投稿
外観
プラグイン
設定

等がありますが、色々なプラグインを見ると、「設定」メニューにプラグインの設定を入れているものが多いので、ここにaddMyCSSプラグインの設定画面を作ることにします。
Adding Administration Menusを見ると以下のように記載があり
parent
サブメニューを挿入したいトップレベルメニューを提供するWordPressのコアadminファイル名。プラグインがトップレベルメニューをなしている場合は、そのプラグインファイル。
よくある例:

投稿用: add_submenu_page(&#8217;post-new.php&#8217;,&#8230;)
管理用: add_submenu_page(&#8217;edit.php&#8217;,&#8230;)
外観用: add_submenu_page(&#8217;themes.php&#8217;,&#8230;)
コメント用: add_submenu_page(&#8217;edit-comments.php&#8217;,&#8230;)
設定用: add_submenu_page(&#8217;options-general.php&#8217;,&#8230;)
プラグイン用: add_submenu_page(&#8217;plugins.php&#8217;,&#8230;)
ユーザ用: add_submenu_page(&#8217;users.php&#8217;,&#8230;)

とあるので、設定用に以下コードを追加しました。

&#60;?php
 class Add_My_CSS &#123;
&#160;
 	var $version = &#34;0.1&#34;;
&#160;
	function Add_My_CSS&#40;&#41;&#123;&#125;
&#160;
	function wp_head&#40;&#41; &#123;		
		echo &#34;\n&#60;!-- add_my_css $this-&#62;version --&#62;\n&#34;;
	&#125;
	/* 今回追加した */
	function edit_setting&#40;&#41; &#123;
		echo '&#60;div class=&#34;wrap&#34;&#62;';
		echo '&#60;p&#62;設定用のフォームが表示されるところ&#60;/p&#62;';
		echo '&#60;/div&#62;';&#125;
	/* 今回追加した */
	function amc_admin&#40;&#41; &#123;
	  if &#40;function_exists&#40;'add_options_page'&#41;&#41; &#123;
	    add_options_page&#40;'Add My CSS' /* page title */, 
	     [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.4sure.jp/yokoshima/2009/06/26/wordpressプラグインの作成/">WordPressプラグインの作成</a></p>
<p>の続きです。（・・・の続きが多いな～。こういうサブカテゴリ的なもののページャも欲しいです。）</p>
<p>前回は、とりあえずプラグインを有効化したらページのヘッダにコメントが挿入されるまでを確認しました。<br />
今度は、そのプラグインの編集が出来る画面を管理画面に入れたいと思います。</p>
<p>WordPress2.7以降では、左に管理メニューが表示されており、</p>
<ul>
<li>ダッシュボード</li>
<li>サイト管理</li>
<li>投稿</li>
<li>外観</li>
<li>プラグイン</li>
<li>設定</li>
</ul>
<div id="attachment_488" class="wp-caption alignleft" style="width: 97px"><img class="size-medium wp-image-488" src="http://blog.4sure.jp/yokoshima/files/2009/06/wordpressadminmenu-87x300.jpg" alt="WordPress管理メニュー" width="87" height="300" /><p class="wp-caption-text">WordPress管理メニュー</p></div>
<p>等がありますが、色々なプラグインを見ると、「設定」メニューにプラグインの設定を入れているものが多いので、ここにaddMyCSSプラグインの設定画面を作ることにします。<br />
<a href="http://wpdocs.sourceforge.jp/Adding_Administration_Menus">Adding Administration Menus</a>を見ると以下のように記載があり</p>
<blockquote><p>parent<br />
サブメニューを挿入したいトップレベルメニューを提供するWordPressのコアadminファイル名。プラグインがトップレベルメニューをなしている場合は、そのプラグインファイル。<br />
よくある例:</p>
<ol>
<li>投稿用: add_submenu_page(&#8217;post-new.php&#8217;,&#8230;)</li>
<li>管理用: add_submenu_page(&#8217;edit.php&#8217;,&#8230;)</li>
<li>外観用: add_submenu_page(&#8217;themes.php&#8217;,&#8230;)</li>
<li>コメント用: add_submenu_page(&#8217;edit-comments.php&#8217;,&#8230;)</li>
<li>設定用: add_submenu_page(&#8217;options-general.php&#8217;,&#8230;)</li>
<li>プラグイン用: add_submenu_page(&#8217;plugins.php&#8217;,&#8230;)</li>
<li>ユーザ用: add_submenu_page(&#8217;users.php&#8217;,&#8230;)</li>
</blockquote>
<p>とあるので、設定用に以下コードを追加しました。</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>
 <span style="color: #000000; font-weight: bold;">class</span> Add_My_CSS <span style="color: #009900;">&#123;</span>
&nbsp;
 	<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$version</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;0.1&quot;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">function</span> Add_My_CSS<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">function</span> wp_head<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>		
		<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&lt;!-- add_my_css <span style="color: #006699; font-weight: bold;">$this-&gt;version</span> --&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #666666; font-style: italic;">/* 今回追加した */</span>
	<span style="color: #000000; font-weight: bold;">function</span> edit_setting<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;div class=&quot;wrap&quot;&gt;'</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;p&gt;設定用のフォームが表示されるところ&lt;/p&gt;'</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;/div&gt;'</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span>
	<span style="color: #666666; font-style: italic;">/* 今回追加した */</span>
	<span style="color: #000000; font-weight: bold;">function</span> amc_admin<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'add_options_page'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	    add_options_page<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Add My CSS'</span> <span style="color: #666666; font-style: italic;">/* page title */</span><span style="color: #339933;">,</span> 
	                     <span style="color: #0000ff;">'Add My CSS'</span> <span style="color: #666666; font-style: italic;">/* menu title */</span><span style="color: #339933;">,</span> 
	                     <span style="color: #cc66cc;">8</span> <span style="color: #666666; font-style: italic;">/* min. user level */</span><span style="color: #339933;">,</span> 
	                     <span style="color: #990000;">basename</span><span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">__FILE__</span><span style="color: #009900;">&#41;</span> <span style="color: #666666; font-style: italic;">/* php file */</span> <span style="color: #339933;">,</span> 
	                     <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'edit_setting'</span><span style="color: #009900;">&#41;</span> <span style="color: #666666; font-style: italic;">/* function for subpanel */</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000088;">$_add_my_css</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Add_My_CSS<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'wp_head'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_add_my_css</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'wp_head'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">/* 今回追加した */</span>
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'admin_menu'</span><span style="color: #339933;">,</span>  <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_add_my_css</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'amc_admin'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>これでとりあえず、管理画面に追加は出来ました。<br />
今回気づいたのですが、ファイルをそのブログの文字コード（ここはUTF-8）に合わせて作成しておくことを忘れずに。日本語なら化けます。
<p><script type="text/javascript"><!--
google_ad_client = "pub-3467153506120319";
/* 468x60, 作成済み 09/05/08 */
google_ad_slot = "8443402396";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.4sure.jp/yokoshima/2009/06/27/wordpress%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%81%ae%e4%bd%9c%e6%88%90%ef%bc%88%ef%bc%92%ef%bc%89/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.4sure.jp/yokoshima/2009/06/27/wordpress%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%81%ae%e4%bd%9c%e6%88%90%ef%bc%88%ef%bc%92%ef%bc%89/" />
	</item>
		<item>
		<title>WordPressプラグインの作成</title>
		<link>http://blog.4sure.jp/yokoshima/2009/06/26/wordpress%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%81%ae%e4%bd%9c%e6%88%90/</link>
		<comments>http://blog.4sure.jp/yokoshima/2009/06/26/wordpress%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%81%ae%e4%bd%9c%e6%88%90/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 16:10:17 +0000</pubDate>
		<dc:creator>yokoshima</dc:creator>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Wordpres]]></category>

		<guid isPermaLink="false">http://blog.4sure.jp/yokoshima/?p=472</guid>
		<description><![CDATA[wpでスタイルシートを使用するためのplugin
で、一時的ではない自分のスタイルシートを使いたいという要望があったのですが、
それをかなえるプラグインがなさそうでしたので、作成してみることにしました。
WordPressのプラグイン作成は初めてなので、まず理解しておくことがたくさんあります。
WordPress プラグイン作成時のノウハウ – 前編にわかりやすいように記事がありましたので、それにならって作成したいと思います。
とりあえず作ればよいファイルは、wp-content/pluginsに作るディレクトリ、メイン処理のphpファイルを作ります。
今回は、自分のスタイルシートを追加したいということにして、add-my-cssという名前にしました。add-my-cssディレクトリの中にadd-my-css.phpファイルを作成します。
作成したら中身を考えますが、何も考えずに入れれるのはWordpress標準ヘッダとライセンス事項です。(ここ参照)
こんな感じで

&#60;?php
&#160;
/*
Plugin Name: Add My CSS
Plugin URI: http://blog.4sure.jp/yokoshima/
Description: My Style Sheet is inserted in the header.
Version: 0.1
Author: yokoshima
Author URI:  http://blog.4sure.jp/yokoshima/
*/
/*  Copyright 2009 yokoshima (email : k.yokoshima@4sure.co.jp:)
&#160;
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.4sure.jp/yokoshima/2009/06/24/wpでスタイルシートを使用するためのplugin/">wpでスタイルシートを使用するためのplugin</a><br />
で、一時的ではない自分のスタイルシートを使いたいという要望があったのですが、<br />
それをかなえるプラグインがなさそうでしたので、作成してみることにしました。</p>
<p>WordPressのプラグイン作成は初めてなので、まず理解しておくことがたくさんあります。</p>
<p><a href="http://zone.maple4ever.net/blog/archives/440/">WordPress プラグイン作成時のノウハウ – 前編</a>にわかりやすいように記事がありましたので、それにならって作成したいと思います。</p>
<p>とりあえず作ればよいファイルは、wp-content/pluginsに作るディレクトリ、メイン処理のphpファイルを作ります。<br />
今回は、自分のスタイルシートを追加したいということにして、add-my-cssという名前にしました。add-my-cssディレクトリの中にadd-my-css.phpファイルを作成します。</p>
<p>作成したら中身を考えますが、何も考えずに入れれるのはWordpress標準ヘッダとライセンス事項です。(<a href="http://wpdocs.sourceforge.jp/プラグインの作成">ここ</a>参照)</p>
<p>こんな感じで</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>
&nbsp;
<span style="color: #666666; font-style: italic;">/*
Plugin Name: Add My CSS
Plugin URI: http://blog.4sure.jp/yokoshima/
Description: My Style Sheet is inserted in the header.
Version: 0.1
Author: yokoshima
Author URI:  http://blog.4sure.jp/yokoshima/
*/</span>
<span style="color: #666666; font-style: italic;">/*  Copyright 2009 yokoshima (email : k.yokoshima@4sure.co.jp:)
&nbsp;
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.
&nbsp;
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
&nbsp;
    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
*/</span></pre></div></div>

<p>次に、ちょっと謎の言葉である「フック」ですが、これはWordPressがある処理を行うところを定義しておき、そのタイミングで実行させることを定義しておくものです。<br />
今回の場合、Wordpressがheaderを出力するタイミングでスタイルシート定義を出力したいので、アクションフックの「<a href="http://codex.wordpress.org/Hook_Reference/wp_head">wp_head</a>」がいいタイミングです。<br />
とりあえずは見よう見まねで、クラスの作成と、アクションフックの登録だけ記載しました。<br />
いかが現時点のソースです。<br />
ヘッダ内に&lt;!&#8211; add_my_css 0.1 &#8211;&gt;と表示されれば今回はＯＫです。</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>
&nbsp;
<span style="color: #666666; font-style: italic;">/*
Plugin Name: Add My CSS
Plugin URI: http://blog.4sure.jp/yokoshima/
Description: My Style Sheet is inserted in the header.
Version: 0.1
Author: yokoshima
Author URI:  http://blog.4sure.jp/yokoshima/
*/</span>
<span style="color: #666666; font-style: italic;">/*  Copyright 2009 yokoshima (email : k.yokoshima@4sure.co.jp:)
&nbsp;
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.
&nbsp;
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
&nbsp;
    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
*/</span>
 <span style="color: #000000; font-weight: bold;">class</span> Add_My_CSS <span style="color: #009900;">&#123;</span>
&nbsp;
        <span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$version</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;0.1&quot;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #000000; font-weight: bold;">function</span> Add_My_CSS<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span>
&nbsp;
        <span style="color: #000000; font-weight: bold;">function</span> wp_head<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&lt;!-- add_my_css <span style="color: #006699; font-weight: bold;">$this-&gt;version</span> --&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000088;">$_add_my_css</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Add_My_CSS<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'wp_head'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_add_my_css</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'wp_head'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>これで、プラグインを有効にすると、&lt;!&#8211; add_my_css 0.1 &#8211;&gt;と表示されました。<br />
結構簡単にできちゃうんじゃないかな？
<p><script type="text/javascript"><!--
google_ad_client = "pub-3467153506120319";
/* 468x60, 作成済み 09/05/08 */
google_ad_slot = "8443402396";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.4sure.jp/yokoshima/2009/06/26/wordpress%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%81%ae%e4%bd%9c%e6%88%90/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.4sure.jp/yokoshima/2009/06/26/wordpress%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%81%ae%e4%bd%9c%e6%88%90/" />
	</item>
		<item>
		<title>WPでスタイルシートを使用するためのPlugin</title>
		<link>http://blog.4sure.jp/yokoshima/2009/06/24/wp%e3%81%a7%e3%82%b9%e3%82%bf%e3%82%a4%e3%83%ab%e3%82%b7%e3%83%bc%e3%83%88%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e3%81%9f%e3%82%81%e3%81%aeplugin/</link>
		<comments>http://blog.4sure.jp/yokoshima/2009/06/24/wp%e3%81%a7%e3%82%b9%e3%82%bf%e3%82%a4%e3%83%ab%e3%82%b7%e3%83%bc%e3%83%88%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e3%81%9f%e3%82%81%e3%81%aeplugin/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 15:29:53 +0000</pubDate>
		<dc:creator>yokoshima</dc:creator>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[switch]]></category>

		<guid isPermaLink="false">http://blog.4sure.jp/yokoshima/?p=451</guid>
		<description><![CDATA[記事でTableを使用したいのがあって、Tableを入れるPluginは探せた。
Wordpressでtable編集
その後、そのTableにあてるStyleSheetを編集できるPluginがないかといろいろ探していたのですが、なかなかいいのがありません。
以下のは試してみたのですが・・・。
WordPress MU用CSS編集プラグイン
→入れてみたのですが、Chromeでは初期化が出来ないようでした。もともとのテーマのcssをそのままコピーして保存したのですが、なぜかスタイルシートが全然適用されない状態に。
phpにデータを保存しているようなので、無効化するのにちょっと苦労しました。
cssやJavaScriptをヘッダに追加するプラグイン(WordPress)
→これが一番良さそうだけどなーと思ったのですが、入れてみたあと考えたのは書きたい記事のcssは一度きりじゃなくて多少使いまわしたい感じだったのでやめました。
多分こういうのが欲しいのですけど、WordPress.comの初めての有料サービスだそうなので、誰も作らなさそう。
自作してみるかな？




]]></description>
			<content:encoded><![CDATA[<p>記事でTableを使用したいのがあって、Tableを入れるPluginは探せた。<br />
<a href="http://blog.4sure.jp/yokoshima/2009/06/23/wordpressでtable編集/">Wordpressでtable編集</a></p>
<p>その後、そのTableにあてるStyleSheetを編集できるPluginがないかといろいろ探していたのですが、なかなかいいのがありません。<br />
以下のは試してみたのですが・・・。</p>
<p><a href="http://factory.theta.ne.jp/2007/03/28/wordpress-mu用css編集プラグイン/">WordPress MU用CSS編集プラグイン</a></p>
<p>→入れてみたのですが、Chromeでは初期化が出来ないようでした。もともとのテーマのcssをそのままコピーして保存したのですが、なぜかスタイルシートが全然適用されない状態に。<br />
phpにデータを保存しているようなので、無効化するのにちょっと苦労しました。</p>
<p><a href="http://soft.fpso.jp/develop/wordpress/plugin/entry_1157.html">cssやJavaScriptをヘッダに追加するプラグイン(WordPress)</a></p>
<p>→これが一番良さそうだけどなーと思ったのですが、入れてみたあと考えたのは書きたい記事のcssは一度きりじゃなくて多少使いまわしたい感じだったのでやめました。</p>
<p>多分<a href="http://en.wordpress.com/products/custom-css/">こういうの</a>が欲しいのですけど、WordPress.comの初めての有料サービスだそうなので、誰も作らなさそう。<br />
自作してみるかな？
<p><script type="text/javascript"><!--
google_ad_client = "pub-3467153506120319";
/* 468x60, 作成済み 09/05/08 */
google_ad_slot = "8443402396";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.4sure.jp/yokoshima/2009/06/24/wp%e3%81%a7%e3%82%b9%e3%82%bf%e3%82%a4%e3%83%ab%e3%82%b7%e3%83%bc%e3%83%88%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e3%81%9f%e3%82%81%e3%81%aeplugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.4sure.jp/yokoshima/2009/06/24/wp%e3%81%a7%e3%82%b9%e3%82%bf%e3%82%a4%e3%83%ab%e3%82%b7%e3%83%bc%e3%83%88%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e3%81%9f%e3%82%81%e3%81%aeplugin/" />
	</item>
		<item>
		<title>Wordpressでtable編集</title>
		<link>http://blog.4sure.jp/yokoshima/2009/06/23/wordpress%e3%81%a7table%e7%b7%a8%e9%9b%86/</link>
		<comments>http://blog.4sure.jp/yokoshima/2009/06/23/wordpress%e3%81%a7table%e7%b7%a8%e9%9b%86/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 15:14:49 +0000</pubDate>
		<dc:creator>yokoshima</dc:creator>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[layer]]></category>
		<category><![CDATA[table]]></category>
		<category><![CDATA[TinyMCE Advanced]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.4sure.jp/yokoshima/?p=384</guid>
		<description><![CDATA[WPで投稿する際、tableを使いたいなと思うときがあるが、標準ではビジュアルエディタでtableを追加する機能が無い。
ちょっと調べてみたら
WordPress のビジュアルエディタでテーブル（表組み）の行を複製したり削除したりする方法。で詳しく説明されているのがあったのでTinyMCE Advancedをインストールしてみました。
今使用しているWordPressのバージョンがなんだかわからないので、とりあえず最新を入れとけばいいだろ、と思って
Version 3.2.4を入れてみたのですが、
This plugin requires WordPress version 2.8 or newer. Please upgrade your WordPress installation or download an older version of the plugin.
と、つまりWordPress2.8以降にしか対応していないので、対応するバージョンを入れろということ。
WordPressのバージョンを確認したいが、現在使用しているのはWordPress MU 2.7.1ということは分かるが、
本家では何になるのだろう？どうやって確認するのか調べたらwp-includes/version.phpを見れば良いらしい。

&#60;?php
/**
* This holds the version number in a separate file so we can bump it without cluttering the SVN
*/
&#160;
/**
* The WordPress version string
*
* @global string $wp_version
*/
&#160;
$wp_version = '2.7.1';
&#160;
/**
* Holds the [...]]]></description>
			<content:encoded><![CDATA[<p>WPで投稿する際、tableを使いたいなと思うときがあるが、標準ではビジュアルエディタでtableを追加する機能が無い。</p>
<p>ちょっと調べてみたら<a href="http://blog.btmup.com/wordpress/wordpress-visual-editor-row-copy-delete.html"><br />
WordPress のビジュアルエディタでテーブル（表組み）の行を複製したり削除したりする方法。</a>で詳しく説明されているのがあったので<a href="http://wordpress.org/extend/plugins/tinymce-advanced/">TinyMCE Advanced</a>をインストールしてみました。</p>
<p>今使用しているWordPressのバージョンがなんだかわからないので、とりあえず最新を入れとけばいいだろ、と思って</p>
<p>Version 3.2.4を入れてみたのですが、</p>
<blockquote><p>This plugin requires WordPress version 2.8 or newer. Please upgrade your WordPress installation or download an older version of the plugin.</p></blockquote>
<p>と、つまりWordPress2.8以降にしか対応していないので、対応するバージョンを入れろということ。</p>
<p>WordPressのバージョンを確認したいが、現在使用しているのはWordPress MU 2.7.1ということは分かるが、</p>
<p>本家では何になるのだろう？どうやって確認するのか調べたらwp-includes/version.phpを見れば良いらしい。</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>
<span style="color: #009933; font-style: italic;">/**
* This holds the version number in a separate file so we can bump it without cluttering the SVN
*/</span>
&nbsp;
<span style="color: #009933; font-style: italic;">/**
* The WordPress version string
*
* @global string $wp_version
*/</span>
&nbsp;
<span style="color: #000088;">$wp_version</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'2.7.1'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009933; font-style: italic;">/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
*
* @global int $wp_db_version
*/</span>
&nbsp;
<span style="color: #000088;">$wp_db_version</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">9872</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$wpmu_version</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'2.7.1'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>これで本家のほうも2.7.1ということが分かりましたので、対応するVersion 3.2を入れてみました。</p>
<p>うまく入ったので、試してみます。</p>
<table border="1" style="border: 1px solid #000000">
<thead>
<tr>
<td>列１</td>
<td>列２</td>
</tr>
</thead>
<tbody>
<tr>
<td>行１</td>
<td>値１</td>
</tr>
<tr>
<td>行２</td>
<td>値2</td>
</tr>
</tbody>
</table>
<p>レイヤーも入る。</p>
<div style="border: thin solid #000000">新規レイヤー</div>
<p>ただ、色指定とかはスタイルシートをいちいち指定する必要があるのかな？<br />
今日はWP-Syntaxのプラグインのエラーにハマったのでまた今度調べることにします。
<p><script type="text/javascript"><!--
google_ad_client = "pub-3467153506120319";
/* 468x60, 作成済み 09/05/08 */
google_ad_slot = "8443402396";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.4sure.jp/yokoshima/2009/06/23/wordpress%e3%81%a7table%e7%b7%a8%e9%9b%86/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.4sure.jp/yokoshima/2009/06/23/wordpress%e3%81%a7table%e7%b7%a8%e9%9b%86/" />
	</item>
		<item>
		<title>WP-Syntaxプラグインのバグ</title>
		<link>http://blog.4sure.jp/yokoshima/2009/06/22/wp-syntax%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%81%ae%e3%83%90%e3%82%b0/</link>
		<comments>http://blog.4sure.jp/yokoshima/2009/06/22/wp-syntax%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%81%ae%e3%83%90%e3%82%b0/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 14:42:54 +0000</pubDate>
		<dc:creator>yokoshima</dc:creator>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[geshi]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WP-Syntax]]></category>

		<guid isPermaLink="false">http://blog.4sure.jp/yokoshima/?p=397</guid>
		<description><![CDATA[以前書いた記事に以下のようなエラーが出ていることに気づいた。
（というか、新しく書こうとして気づいた）
Warning: preg_match() [function.preg-match]: Compilation failed: unrecognized character after (?&#60; at offset 3 in ${WP-HOME}/wp-content/plugins/wp-syntax/geshi/geshi.php on line 2132
WP-Syntaxプラグインを使用してphpのコードを乗せようとするとエラーになるらしい。
色々探して以下のページにたどりついた。
Fixing Geshi on line 2132
Version 0.9.4にダウングレード（現在使用しているのは0.9.6）するしかないらしい。
まだリリースは先だろうな。バージョンを下げておこう。




]]></description>
			<content:encoded><![CDATA[<p>以前書いた記事に以下のようなエラーが出ていることに気づいた。<br />
（というか、新しく書こうとして気づいた）</p>
<blockquote><p>Warning: preg_match() [function.preg-match]: Compilation failed: unrecognized character after (?&lt; at offset 3 in ${WP-HOME}/wp-content/plugins/wp-syntax/geshi/geshi.php on line 2132</p></blockquote>
<p>WP-Syntaxプラグインを使用してphpのコードを乗せようとするとエラーになるらしい。<br />
色々探して以下のページにたどりついた。</p>
<p><a href="http://mitcho.com/blog/how-to/fixing-geshi-on-line-2132/">Fixing Geshi on line 2132</a><br />
Version 0.9.4にダウングレード（現在使用しているのは0.9.6）するしかないらしい。</p>
<p>まだリリースは先だろうな。バージョンを下げておこう。
<p><script type="text/javascript"><!--
google_ad_client = "pub-3467153506120319";
/* 468x60, 作成済み 09/05/08 */
google_ad_slot = "8443402396";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.4sure.jp/yokoshima/2009/06/22/wp-syntax%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%81%ae%e3%83%90%e3%82%b0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.4sure.jp/yokoshima/2009/06/22/wp-syntax%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3%e3%81%ae%e3%83%90%e3%82%b0/" />
	</item>
		<item>
		<title>Canonical URL</title>
		<link>http://blog.4sure.jp/yokoshima/2009/06/20/canonical-url/</link>
		<comments>http://blog.4sure.jp/yokoshima/2009/06/20/canonical-url/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 15:08:49 +0000</pubDate>
		<dc:creator>yokoshima</dc:creator>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.4sure.jp/yokoshima/?p=376</guid>
		<description><![CDATA[Canonical URLとは何でしょう？
普通にWebサイトをブラウズしている場合は、最終的にHTMLをブラウザが解析して人間が中身を見るので問題ないのですが、Webサイトのシステム構造上、まったく同じ内容を別のURLで表示させることがあります。
検索エンジン3社、正しいサイトURLを認識させるcanonical属性を導入（URLの正規化）
を引用すると
SONYのデジカメ「cyber-shot T700」の商品詳細ページが、(1) ブランド「デジカメ」カテゴリ、(2) ブランド「cyber-shot」カテゴリ、それぞれの直下に、コンテンツが全く同一（重複）ながら異なるURLで作成されたとしよう（こういうECサイトは結構ある）。この場合、商品詳細ページ「T700」が2ページ作成されることになるが、検索エンジンはどちらのページをインデックスすればいいのか判断ができない。
前述のように、内容だけを見る場合はURLなんてどうでも良いが、検索エンジンのクローラが同じようなページに遭遇して「結局どれが本当なのよ？」とはなかなか結論が出ませんので、結局すべてのサイトを別サイトとして認識します。
結果、検索エンジンの表示順位に影響を与えてしまい、たとえば同じキーワードでの検索で同内容で別URLとして表示されてしまったりします。もっと悪いことにそのページ自体の順位が落ちてしまうことも考えられます。
そこでGoogle, Yahoo, Mictosoftでそんな場合の標準を決めたそうです。
ページの&#60;head&#62;～&#60;/head&#62;内に以下引用の記述で最適なURLを記載します。
&#60;link rel=&#34;canonical&#34; href=&#34;http://mysite.com&#34;/&#62;

ここで指定したhref要素の記述を参考に、検索エンジンが「結局どれなのよ？」というのを決めます。
この場合の別URLの内容は、完全に同じでなくてもよいようで、動的に出力するようなWebサイトの場合（というかこんなのを使うところは動的なサイトでしょう）には便利でしょう。
Word PressのプラグインにもCanonical URL&#8217;s for WordPressというのがあったので早速入れてみました。




]]></description>
			<content:encoded><![CDATA[<p>Canonical URLとは何でしょう？</p>
<p>普通にWebサイトをブラウズしている場合は、最終的にHTMLをブラウザが解析して人間が中身を見るので問題ないのですが、Webサイトのシステム構造上、まったく同じ内容を別のURLで表示させることがあります。</p>
<p><a href="http://www.sem-r.com/09/20090213153711.html">検索エンジン3社、正しいサイトURLを認識させるcanonical属性を導入（URLの正規化）</a></p>
<p>を引用すると</p>
<blockquote><p>SONYのデジカメ「cyber-shot T700」の商品詳細ページが、(1) ブランド「デジカメ」カテゴリ、(2) ブランド「cyber-shot」カテゴリ、それぞれの直下に、コンテンツが全く同一（重複）ながら異なるURLで作成されたとしよう（こういうECサイトは結構ある）。この場合、商品詳細ページ「T700」が2ページ作成されることになるが、検索エンジンはどちらのページをインデックスすればいいのか判断ができない。</p></blockquote>
<p>前述のように、内容だけを見る場合はURLなんてどうでも良いが、検索エンジンのクローラが同じようなページに遭遇して「結局どれが本当なのよ？」とはなかなか結論が出ませんので、結局すべてのサイトを別サイトとして認識します。<br />
結果、検索エンジンの表示順位に影響を与えてしまい、たとえば同じキーワードでの検索で同内容で別URLとして表示されてしまったりします。もっと悪いことにそのページ自体の順位が落ちてしまうことも考えられます。</p>
<p>そこでGoogle, Yahoo, Mictosoftでそんな場合の標準を決めたそうです。<br />
ページの&lt;head&gt;～&lt;/head&gt;内に以下引用の記述で最適なURLを記載します。</p>
<blockquote><p>&lt;link rel=&quot;canonical&quot; href=&quot;http://mysite.com&quot;/&gt;
</p></blockquote>
<p>ここで指定したhref要素の記述を参考に、検索エンジンが「結局どれなのよ？」というのを決めます。<br />
この場合の別URLの内容は、完全に同じでなくてもよいようで、動的に出力するようなWebサイトの場合（というかこんなのを使うところは動的なサイトでしょう）には便利でしょう。</p>
<p>Word Pressのプラグインにも<a href="http://yoast.com/wordpress/canonical/">Canonical URL&#8217;s for WordPress</a>というのがあったので早速入れてみました。</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-3467153506120319";
/* 468x60, 作成済み 09/05/08 */
google_ad_slot = "8443402396";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.4sure.jp/yokoshima/2009/06/20/canonical-url/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.4sure.jp/yokoshima/2009/06/20/canonical-url/" />
	</item>
	</channel>
</rss>
