<?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>Sleeping sand &#187; Read &amp; Learn</title>
	<atom:link href="http://flyingsand.com/sand/category/learn/feed/" rel="self" type="application/rss+xml" />
	<link>http://flyingsand.com/sand</link>
	<description>Learning by Doing.</description>
	<lastBuildDate>Tue, 06 Apr 2010 04:21:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>明尼苏达大学给Drupal 6的一份用户体验报告</title>
		<link>http://flyingsand.com/sand/2009/06/ux-report-for-drupal-6-by-minesota/</link>
		<comments>http://flyingsand.com/sand/2009/06/ux-report-for-drupal-6-by-minesota/#comments</comments>
		<pubDate>Sun, 31 May 2009 16:54:16 +0000</pubDate>
		<dc:creator>sand</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Read & Learn]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[用户体验]]></category>

		<guid isPermaLink="false">http://flyingsand.com/sand/?p=180</guid>
		<description><![CDATA[报告在此：http://buytaert.net/files/usability-testing-minnesota.pdf 。很有意思，在用一段一段的假设和例子给drupal6直截了当的批评之后，给出以下用户体验的建议：

Measure the User Experience. 让用户体验可... ]]></description>
			<content:encoded><![CDATA[<p>报告在此：<a href="http://buytaert.net/files/usability-testing-minnesota.pdf">http://buytaert.net/files/usability-testing-minnesota.pdf</a> 。很有意思，在用一段一段的假设和例子给drupal6直截了当的批评之后，给出以下用户体验的建议：</p>
<ul>
<li>Measure the User Experience. 让用户体验可以量化，并将之量化</li>
<li>Consistency. 一致性（体现在界面风格及语言风格上，更高级别的则体现在用户使用习惯上，这我在Mac上深有感触）</li>
<li>Understandable Language. 易懂易用的界面</li>
<li>Not Feel Overwhelming. 别让用户在使用时感到压迫感或茫然或眩晕，别让他兜圈子</li>
<li>Informative Feedback. 好的反馈信息，这跟其它几项要求也是彼此关联的</li>
</ul>
<p>很眼熟是不？其实关于UX，许多公司的原则都是大同小异的，这些建议同样适用于大部分其它的网站、程序或系统。我再借题发挥，提几点一样大同小异的想法：</p>
<ul>
<li>如Drupal这样的CMS系统适用于建很大型的网站，很多时候站长们并非如此地“白痴（dummy）用户”，是有一定基础的，所以它不必像Wordpress一样要适应大部分dummy的使用习惯，如果因用户体验的需要而斩掉一些功能就矫枉过正了；</li>
<li>节约用户的时间；</li>
<li>设计应敢于创新，比如最近网上讨论得比较多的，Yahoo网站面包屑的设计、Amazon购物车的设计；</li>
</ul>
<p>by the way，饱受好评、已经发展很久的Drupal也会有这么多显而易见的问题，难怪正在进行的Drupal 7开发中，改善用户体验被放在了第一位（WM、Mac OS、win7……也是这样）。由此可见，用户界面、用户体验已经变成了现在绝大部分程序/系统要实现飞跃必须解决的头号问题了，而且这是一个永不终止、 长期进行的工程。</p>
<p>前阵子才发现 <a href="http://www.d7ux.org">http://www.d7ux.org</a>，上面关于D7用户体验方面的改善还有关于dashboard的一些探讨，让我非常期待Drupal 7的到来！</p>
]]></content:encoded>
			<wfw:commentRss>http://flyingsand.com/sand/2009/06/ux-report-for-drupal-6-by-minesota/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>利用echo=0判断页面是否存在子页面</title>
		<link>http://flyingsand.com/sand/2008/12/echo-0-detect-whether-page-has-subpages/</link>
		<comments>http://flyingsand.com/sand/2008/12/echo-0-detect-whether-page-has-subpages/#comments</comments>
		<pubDate>Thu, 18 Dec 2008 14:56:54 +0000</pubDate>
		<dc:creator>sand</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[subpage]]></category>
		<category><![CDATA[wp_list_pages]]></category>

		<guid isPermaLink="false">http://flyingsand.com/sand/?p=101</guid>
		<description><![CDATA[当本页面存在父页面时，在sidebar列出父页面下属的所有页面（即列出跟本页面同级的页面），当本页面为父页面时，则列本页的子页面出来，这是CMS最普遍的应用之一，实现方法为(sidebar.php)：... ]]></description>
			<content:encoded><![CDATA[<p>当本页面存在父页面时，在sidebar列出父页面下属的所有页面（即列出跟本页面同级的页面），当本页面为父页面时，则列本页的子页面出来，这是CMS最普遍的应用之一，实现方法为(sidebar.php)：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Blue;">&lt;?php</span><span style="color: Gray;"> </span><span style="color: Green;">if</span><span style="color: Gray;"> </span><span style="color: Olive;">(</span><span style="color: Blue;">have_posts</span><span style="color: Olive;">())</span><span style="color: Gray;"> : </span><span style="color: Blue;">?&gt;</span></li>
<li><span style="color: Blue;">&lt;?php</span><span style="color: Gray;">&nbsp;</span><span style="color: Green;">while</span><span style="color: Gray;"> </span><span style="color: Olive;">(</span><span style="color: Blue;">have_posts</span><span style="color: Olive;">())</span><span style="color: Gray;"> : </span><span style="color: Blue;">the_post</span><span style="color: Olive;">()</span><span style="color: Gray;">; </span><span style="color: Blue;">?&gt;</span></li>
<li><span style="color: Gray;">&nbsp;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Blue;">&lt;?php</span><span style="color: Gray;">&nbsp;</span><span style="color: #ffa500;">/* Creates a menu for pages beneath the level of the current page - Thanks K2 Theme*/</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Green;">if</span><span style="color: Gray;">&nbsp;</span><span style="color: Olive;">(</span><span style="color: Blue;">is_page</span><span style="color: Olive;">()</span><span style="color: Gray;"> </span><span style="color: Green;">and</span><span style="color: Gray;"> </span><span style="color: Olive;">(</span><span style="color: #00008b;">$notfound</span><span style="color: Gray;"> != </span><span style="color: #8b0000;">'</span><span style="color: Red;">1</span><span style="color: #8b0000;">'</span><span style="color: Olive;">))</span><span style="color: Gray;"> </span><span style="color: Olive;">{</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #00008b;">$parent_page</span><span style="color: Gray;"> = </span><span style="color: #00008b;">$post</span><span style="color: Gray;">-&gt;</span><span style="color: Blue;">ID</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp;&nbsp; </span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Green;">while</span><span style="color: Olive;">(</span><span style="color: #00008b;">$parent_page</span><span style="color: Olive;">)</span><span style="color: Gray;">&nbsp;</span><span style="color: Olive;">{</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #00008b;">$page_query</span><span style="color: Gray;"> = </span><span style="color: #00008b;">$wpdb</span><span style="color: Gray;">-&gt;</span><span style="color: Blue;">get_row</span><span style="color: Olive;">(</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">SELECT ID, post_title, post_status, post_parent FROM </span><span style="color: #00008b;">$wpdb</span><span style="color: Red;">-&gt;posts WHERE ID = '</span><span style="color: #00008b;">$parent_page</span><span style="color: Red;">'</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #00008b;">$parent_page</span><span style="color: Gray;"> = </span><span style="color: #00008b;">$page_query</span><span style="color: Gray;">-&gt;</span><span style="color: Blue;">post_parent</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Olive;">}</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #00008b;">$parent_id</span><span style="color: Gray;"> = </span><span style="color: #00008b;">$page_query</span><span style="color: Gray;">-&gt;</span><span style="color: Blue;">ID</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #00008b;">$parent_title</span><span style="color: Gray;"> = </span><span style="color: #00008b;">$page_query</span><span style="color: Gray;">-&gt;</span><span style="color: Blue;">post_title</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Green;">if</span><span style="color: Gray;">&nbsp;</span><span style="color: Olive;">(</span><span style="color: #00008b;">$wpdb</span><span style="color: Gray;">-&gt;</span><span style="color: Blue;">get_results</span><span style="color: Olive;">(</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">SELECT * FROM </span><span style="color: #00008b;">$wpdb</span><span style="color: Red;">-&gt;posts WHERE post_parent = '</span><span style="color: #00008b;">$parent_id</span><span style="color: Red;">' AND post_status != 'attachment'</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">))</span><span style="color: Gray;"> </span><span style="color: Olive;">{</span><span style="color: Gray;"> </span><span style="color: Blue;">?&gt;</span></li>
<li><span style="color: Black;">&nbsp;</span></li>
<li><span style="color: Black;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;s_panel&quot;&gt;</span></li>
<li><span style="color: Black;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;h2 class=&quot;title&quot;&gt;</span><span style="color: Blue;">&lt;?php</span><span style="color: Gray;">&nbsp;</span><span style="color: Green;">echo</span><span style="color: Gray;"> </span><span style="color: #00008b;">$parent_title</span><span style="color: Gray;">; </span><span style="color: Blue;">?&gt;</span><span style="color: Black;">&lt;/h2&gt;</span></li>
<li><span style="color: Black;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;ul&gt;</span><span style="color: Blue;">&lt;?php</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">wp_list_pages</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">depth=1&amp;sort_column=menu_order&amp;title_li=&amp;child_of=</span><span style="color: #8b0000;">'</span><span style="color: Gray;">. </span><span style="color: #00008b;">$parent_id</span><span style="color: Olive;">)</span><span style="color: Gray;">; </span><span style="color: Blue;">?&gt;</span><span style="color: Black;">&lt;/ul&gt;</span></li>
<li><span style="color: Black;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;</span></li>
<li><span style="color: Black;">&nbsp;</span></li>
<li><span style="color: Black;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">&lt;?php</span><span style="color: Gray;">&nbsp;</span><span style="color: Olive;">}</span><span style="color: Blue;">?&gt;</span></li>
<li><span style="color: Black;">&nbsp; &nbsp; </span></li>
<li><span style="color: Black;">&nbsp; &nbsp; </span><span style="color: Blue;">&lt;?php</span><span style="color: Gray;">&nbsp;</span><span style="color: Olive;">}</span><span style="color: Gray;"> } </span><span style="color: Blue;">?&gt;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span></li>
<li><span style="color: Blue;">&lt;?php</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">endwhile</span><span style="color: Gray;">; </span><span style="color: Green;">endif</span><span style="color: Gray;">; </span><span style="color: Blue;">?&gt;</span></li></ol></div>
<p>但是有个问题一直没解决，就是当本页面是很孤独的页面，没有父页面也没有子页面时，怎样让侧边不出现这个s_panel，以前我用两种作法，一是硬挤几个同级页面给它，一是做2个template，带和不带s_panel各一个，都很麻烦，刚突然发现了可以在上述parent_id功能上，再利用wp_list_pages结合echo=0来判断是否要输出，问题就迎刃而解了。真是好晕，整天在CODEX上的<a href="http://codex.wordpress.org/Template_Tags/wp_list_pages">wp_list_pages</a>上琢磨，却完全没有看到echo=0！</p>
<p>改后的代码如下：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Blue;">&lt;?php</span><span style="color: Gray;"> </span><span style="color: Green;">if</span><span style="color: Gray;"> </span><span style="color: Olive;">(</span><span style="color: Blue;">have_posts</span><span style="color: Olive;">())</span><span style="color: Gray;"> : </span><span style="color: Blue;">?&gt;</span></li>
<li><span style="color: Blue;">&lt;?php</span><span style="color: Gray;">&nbsp;</span><span style="color: Green;">while</span><span style="color: Gray;"> </span><span style="color: Olive;">(</span><span style="color: Blue;">have_posts</span><span style="color: Olive;">())</span><span style="color: Gray;"> : </span><span style="color: Blue;">the_post</span><span style="color: Olive;">()</span><span style="color: Gray;">; </span><span style="color: Blue;">?&gt;</span></li>
<li><span style="color: Gray;">&nbsp;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Blue;">&lt;?php</span><span style="color: Gray;">&nbsp;</span><span style="color: #ffa500;">/* Creates a menu for pages beneath the level of the current page - Thanks K2 Theme*/</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Green;">if</span><span style="color: Gray;">&nbsp;</span><span style="color: Olive;">(</span><span style="color: Blue;">is_page</span><span style="color: Olive;">()</span><span style="color: Gray;"> </span><span style="color: Green;">and</span><span style="color: Gray;"> </span><span style="color: Olive;">(</span><span style="color: #00008b;">$notfound</span><span style="color: Gray;"> != </span><span style="color: #8b0000;">'</span><span style="color: Red;">1</span><span style="color: #8b0000;">'</span><span style="color: Olive;">))</span><span style="color: Gray;"> </span><span style="color: Olive;">{</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #00008b;">$parent_page</span><span style="color: Gray;"> = </span><span style="color: #00008b;">$post</span><span style="color: Gray;">-&gt;</span><span style="color: Blue;">ID</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp;&nbsp; </span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Green;">while</span><span style="color: Olive;">(</span><span style="color: #00008b;">$parent_page</span><span style="color: Olive;">)</span><span style="color: Gray;">&nbsp;</span><span style="color: Olive;">{</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #00008b;">$page_query</span><span style="color: Gray;"> = </span><span style="color: #00008b;">$wpdb</span><span style="color: Gray;">-&gt;</span><span style="color: Blue;">get_row</span><span style="color: Olive;">(</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">SELECT ID, post_title, post_status, post_parent FROM </span><span style="color: #00008b;">$wpdb</span><span style="color: Red;">-&gt;posts WHERE ID = '</span><span style="color: #00008b;">$parent_page</span><span style="color: Red;">'</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #00008b;">$parent_page</span><span style="color: Gray;"> = </span><span style="color: #00008b;">$page_query</span><span style="color: Gray;">-&gt;</span><span style="color: Blue;">post_parent</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Olive;">}</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #00008b;">$parent_id</span><span style="color: Gray;"> = </span><span style="color: #00008b;">$page_query</span><span style="color: Gray;">-&gt;</span><span style="color: Blue;">ID</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #00008b;">$parent_title</span><span style="color: Gray;"> = </span><span style="color: #00008b;">$page_query</span><span style="color: Gray;">-&gt;</span><span style="color: Blue;">post_title</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Green;">if</span><span style="color: Gray;">&nbsp;</span><span style="color: Olive;">(</span><span style="color: #00008b;">$wpdb</span><span style="color: Gray;">-&gt;</span><span style="color: Blue;">get_results</span><span style="color: Olive;">(</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">SELECT * FROM </span><span style="color: #00008b;">$wpdb</span><span style="color: Red;">-&gt;posts WHERE post_parent = '</span><span style="color: #00008b;">$parent_id</span><span style="color: Red;">' AND post_status != 'attachment'</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">))</span><span style="color: Gray;"> </span><span style="color: Olive;">{</span><span style="color: Gray;"> </span><span style="color: Blue;">?&gt;</span></li>
<li><span style="color: Black;">&nbsp; &nbsp; </span></li>
<li><span style="color: Black;">&nbsp; &nbsp; &nbsp; &nbsp; </span></li>
<li><span style="color: Black;">&nbsp; &nbsp; </span><span style="color: Blue;">&lt;?php</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">$subpage</span><span style="color: Gray;"> = </span><span style="color: Blue;">wp_list_pages</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">depth=1&amp;echo=0&amp;child_of=</span><span style="color: #8b0000;">'</span><span style="color: Gray;">.</span><span style="color: #00008b;">$parent_id</span><span style="color: Olive;">)</span><span style="color: Gray;">; </span><span style="color: Blue;">?&gt;&lt;?php</span><span style="color: Gray;"> </span><span style="color: #ffa500;">//关键 </span><span style="color: Blue;">?&gt;</span></li>
<li><span style="color: Black;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">&lt;?php</span><span style="color: Gray;">&nbsp;</span><span style="color: Green;">if</span><span style="color: Olive;">(</span><span style="color: #00008b;">$subpage</span><span style="color: Olive;">)</span><span style="color: Gray;"> </span><span style="color: Olive;">{</span><span style="color: Gray;"> </span><span style="color: Blue;">?&gt;</span></li>
<li><span style="color: Black;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;s_panel&quot;&gt;</span></li>
<li><span style="color: Black;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;h2 class=&quot;title&quot;&gt;</span><span style="color: Blue;">&lt;?php</span><span style="color: Gray;">&nbsp;</span><span style="color: Green;">echo</span><span style="color: Gray;"> </span><span style="color: #00008b;">$parent_title</span><span style="color: Gray;">; </span><span style="color: Blue;">?&gt;</span><span style="color: Black;">&lt;/h2&gt;</span></li>
<li><span style="color: Black;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;ul&gt;</span><span style="color: Blue;">&lt;?php</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">wp_list_pages</span><span style="color: Olive;">(</span><span style="color: #8b0000;">'</span><span style="color: Red;">depth=1&amp;sort_column=menu_order&amp;title_li=&amp;child_of=</span><span style="color: #8b0000;">'</span><span style="color: Gray;">. </span><span style="color: #00008b;">$parent_id</span><span style="color: Olive;">)</span><span style="color: Gray;">; </span><span style="color: Blue;">?&gt;</span><span style="color: Black;">&lt;/ul&gt;</span></li>
<li><span style="color: Black;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;</span></li>
<li><span style="color: Black;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Blue;">&lt;?php</span><span style="color: Gray;">&nbsp;</span><span style="color: Olive;">}</span><span style="color: Blue;">?&gt;</span></li>
<li><span style="color: Black;">&nbsp; &nbsp; </span></li>
<li><span style="color: Black;">&nbsp; &nbsp; </span><span style="color: Blue;">&lt;?php</span><span style="color: Gray;">&nbsp;</span><span style="color: Olive;">}</span><span style="color: Gray;"> </span><span style="color: Olive;">}</span><span style="color: Gray;"> </span><span style="color: Blue;">?&gt;</span></li>
<li><span style="color: Blue;">&lt;?php</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">endwhile</span><span style="color: Gray;">; </span><span style="color: Green;">endif</span><span style="color: Gray;">; </span><span style="color: Blue;">?&gt;</span></li></ol></div>
<p>今天顺便把WP升级到2.7了，进入后台却发现侧栏导航条不见了，冷静的思考一下，怀疑是插件lighter-menu导致的，直接在地址栏输入插件页将之停用，马上恢复正常！：）</p>
]]></content:encoded>
			<wfw:commentRss>http://flyingsand.com/sand/2008/12/echo-0-detect-whether-page-has-subpages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>启用flyingsand.com</title>
		<link>http://flyingsand.com/sand/2008/08/start-flyingsand-website/</link>
		<comments>http://flyingsand.com/sand/2008/08/start-flyingsand-website/#comments</comments>
		<pubDate>Thu, 28 Aug 2008 10:04:55 +0000</pubDate>
		<dc:creator>sand</dc:creator>
				<category><![CDATA[Read & Learn]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[flyingsand]]></category>
		<category><![CDATA[bom]]></category>
		<category><![CDATA[utf-8]]></category>
		<category><![CDATA[yummyGadget]]></category>

		<guid isPermaLink="false">http://flyingsand.com/sand/?p=3</guid>
		<description><![CDATA[正式启用flyingsand.com这个网上新家，sleepingcity.com也指向这边了（暂时没想好怎么使用这个域名）。
花了3天的时间，终于做出来一个基本清爽的主题YummyGadget。这是为flying设计的，等有时间再给... ]]></description>
			<content:encoded><![CDATA[<p>正式启用flyingsand.com这个网上新家，sleepingcity.com也指向这边了（暂时没想好怎么使用这个域名）。</p>
<p>花了3天的时间，终于做出来一个<em>基本清爽</em>的主题YummyGadget。这是为<a href="http://flyingsand.com/flying" target="_blank">flying</a>设计的，等有时间再给俺自己整个（风格当然大不同，嘿嘿：），右上角的草莓图标不是我画的，版权归其作者所有，现在暂用，等有时间我再亲自画图（苹果？雪糕？哈密瓜？anything yummy is OK! ）代替它。好多事想做，时间总不够，唉～</p>
<p>在将此主题汉化过程中页面布局出现了很多奇怪的bug，研究了一整天，感谢软件生活，最后终于发现<a href="http://applife.net/2008/05/utf8-make-theme-error-fixed/" target="_blank">UTF-8编码以是否带BOM( Byte Order Mard)分为两种格式</a>，而不带BOM的UTF-8格式才能得到PHP很好的支持，我用记事本另存为UTF-8的结果恰恰是带了BOM的，赶快找来unifier将这批文件批量转换，问题迎刃而解。</p>
]]></content:encoded>
			<wfw:commentRss>http://flyingsand.com/sand/2008/08/start-flyingsand-website/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
