<?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>WordPress情報 &#187; widget</title>
	<atom:link href="http://www.shiteki.info/wordpress/tag/widget/feed" rel="self" type="application/rss+xml" />
	<link>http://www.shiteki.info/wordpress</link>
	<description>私的に集めたWordPress関連情報</description>
	<lastBuildDate>Fri, 17 Dec 2010 01:37:49 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.shiteki.info/wordpress/tag/widget/feed" />
		<item>
		<title>「vicuna」をウィジェット対応にする方法</title>
		<link>http://www.shiteki.info/wordpress/theme/vicuna/153.html</link>
		<comments>http://www.shiteki.info/wordpress/theme/vicuna/153.html#comments</comments>
		<pubDate>Fri, 30 Jan 2009 21:05:30 +0000</pubDate>
		<dc:creator>shiteki</dc:creator>
				<category><![CDATA[vicuna]]></category>
		<category><![CDATA[widget]]></category>

		<guid isPermaLink="false">http://www.shiteki.info/wordpress/?p=153</guid>
		<description><![CDATA[<a href="http://www.shiteki.info/wordpress/theme/vicuna/153.html"><img align="left" hspace="5" width="150" height="150" src="http://www.shiteki.info/wordpress/wp-content/plugins/thumbnail-for-excerpts/tfe_no_thumb.png" class="alignleft wp-post-image tfe" alt="" title="" /></a>「wp.vicuna.ext」はwidget対応ですが、「wp.vicuna」は対応していないため、なんとかできないものかと適当に対応させました。 もしこれを参考にされる方は自己責任でお願いします。 1.function・・・]]></description>
			<content:encoded><![CDATA[<p>「wp.vicuna.ext」はwidget対応ですが、「wp.vicuna」は対応していないため、なんとかできないものかと適当に対応させました。<br />
もしこれを参考にされる方は自己責任でお願いします。<br />
1.functions.phpの修正<span id="more-153"></span></p>
<blockquote><p>/**<br />
* Display a tag clouds.<br />
*/</p></blockquote>
<p>の上に次のようなコードを挿入しました</p>
<blockquote><p>/* Widget対応 */<br />
register_sidebar(array(<br />
&#8216;name&#8217; =&gt; &#8216;navi&#8217;,<br />
&#8216;before_widget&#8217; =&gt; &#8220;\t\t&lt;dt id=\&#8221;".&#8217;%1$s&#8217;.&#8221;\&#8221; class=\&#8221;widget &#8220;.&#8217;%1$s&#8217;.&#8221;\&#8221;&gt;&#8221;,<br />
&#8216;after_widget&#8217; =&gt; &#8220;\t\t&lt;/dd&gt;\n&#8221;,<br />
&#8216;before_title&#8217; =&gt; &#8221;,<br />
&#8216;after_title&#8217; =&gt; &#8220;&lt;/dt&gt;\n\t\t&lt;dd&gt;\n&#8221;,<br />
));<br />
register_sidebar(array(<br />
&#8216;name&#8217; =&gt; &#8216;others&#8217;,<br />
&#8216;before_widget&#8217; =&gt; &#8220;\t\t&lt;dt id=\&#8221;".&#8217;%1$s&#8217;.&#8221;\&#8221; class=\&#8221;widget &#8220;.&#8217;%1$s&#8217;.&#8221;\&#8221;&gt;&#8221;,<br />
&#8216;after_widget&#8217; =&gt; &#8220;\t\t&lt;/dd&gt;\n&#8221;,<br />
&#8216;before_title&#8217; =&gt; &#8221;,<br />
&#8216;after_title&#8217; =&gt; &#8220;&lt;/dt&gt;\n\t\t&lt;dd&gt;\n&#8221;,<br />
));</p></blockquote>
<p>2.sidebar.phpの修正<br />
「wp.vicuna」のsidebarは２つに分割されていますので、それぞれ好きな位置に以下のコードを挿入<br />
<strong>&lt;dl class=&#8221;navi&#8221;&gt;より下</strong></p>
<blockquote><p>&lt;?php if ( !function_exists(&#8216;dynamic_sidebar&#8217;) || !dynamic_sidebar(&#8216;navi&#8217;) ) : ?&gt;<br />
&lt;?php endif; ?&gt;</p></blockquote>
<p><strong>&lt;dl class=&#8221;others&#8221;&gt;より下</strong></p>
<blockquote><p>&lt;?php    if ( !function_exists(&#8216;dynamic_sidebar&#8217;) || !dynamic_sidebar(&#8216;others&#8217;) ) : ?&gt;<br />
&lt;?php endif; ?&gt;</p></blockquote>
<p>そろそろちゃんとPHPの勉強をしなくちゃなーと思う今日この頃でした。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shiteki.info/wordpress/theme/vicuna/153.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.shiteki.info/wordpress/theme/vicuna/153.html" />
	</item>
	</channel>
</rss>

