<?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>わすれないように. &#187; スクリプトカスタマイズ</title>
	<atom:link href="http://www.makies.com/tags/%e3%82%b9%e3%82%af%e3%83%aa%e3%83%97%e3%83%88%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%9e%e3%82%a4%e3%82%ba/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.makies.com</link>
	<description>メモ書き程度。</description>
	<lastBuildDate>Sun, 21 Mar 2010 11:13:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Serendipity　最近のエントリ　の表示をカスタマイズしてみる</title>
		<link>http://www.makies.com/2007/03/8/</link>
		<comments>http://www.makies.com/2007/03/8/#comments</comments>
		<pubDate>Mon, 26 Mar 2007 06:17:39 +0000</pubDate>
		<dc:creator>maki</dc:creator>
				<category><![CDATA[スクリプトカスタマイズ]]></category>

		<guid isPermaLink="false">http://makies.com/?p=8</guid>
		<description><![CDATA[プラグインインストールのままだと、ヘンなbrとか入っててイヤだったのでいじってみた。
プラグインを出力しているファイル

/plugins/serendipity_plugin_recententries/serendipity_plugin_recententries.php
160行目付近のforeachまわりをごにょごにょと。

dl dt dd　を使うようにした
日付が同じものはまとめて表示するようにした(sql等はそのまま、出力する際のループ内で処理。)

あと、日付フォーマットを直したかったのに、どこで指定しているのかわからなくて、ソース150行目付近に

$dateformat = &#38;quot;%Y/%m/%d&#38;quot;;
書いてしまった。
スタイルシート

templates/contest/style.css

以下をファイル末尾に追加
.container_serendipity_plugin_recententries dd{
	margin-left:1em;
}
ついでなので、エントリー中の表示もちょっと変えてみた
.serendipity_entry_body H5{
	margin:0px;
	padding:2px 0.5em;
	border-bottom:1px solid #011A7C;
	border-left:5px solid #011A7C;
	font-size:12pt;
}
.serendipity_entry_body blockquote{
	padding:1em;
	background-color:#F4F4F4;
	border:1px solid #cccccc;
}
]]></description>
			<content:encoded><![CDATA[<p>プラグインインストールのままだと、ヘンなbrとか入っててイヤだったのでいじってみた。</p>
<h5>プラグインを出力しているファイル</h5>
<p></p>
<blockquote><p>/plugins/serendipity_plugin_recententries/serendipity_plugin_recententries.php</p></blockquote>
<p>160行目付近のforeachまわりをごにょごにょと。</p>
<ul>
<li>dl dt dd　を使うようにした</li>
<li>日付が同じものはまとめて表示するようにした(sql等はそのまま、出力する際のループ内で処理。)</li>
</ul>
<p>あと、日付フォーマットを直したかったのに、どこで指定しているのかわからなくて、ソース150行目付近に</p>
<p></p>
<blockquote><p>$dateformat = &amp;quot;%Y/%m/%d&amp;quot;;</p></blockquote>
<p>書いてしまった。</p>
<h5>スタイルシート</h5>
<p></p>
<blockquote><p>templates/contest/style.css</p></blockquote>
<p>
以下をファイル末尾に追加</p>
<blockquote><p>.container_serendipity_plugin_recententries dd{<br />
	margin-left:1em;<br />
}</p></blockquote>
<p>ついでなので、エントリー中の表示もちょっと変えてみた</p>
<blockquote><p>.serendipity_entry_body H5{<br />
	margin:0px;<br />
	padding:2px 0.5em;<br />
	border-bottom:1px solid #011A7C;<br />
	border-left:5px solid #011A7C;<br />
	font-size:12pt;<br />
}<br />
.serendipity_entry_body blockquote{<br />
	padding:1em;<br />
	background-color:#F4F4F4;<br />
	border:1px solid #cccccc;<br />
}</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.makies.com/2007/03/8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
