<?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; footer.php</title>
	<atom:link href="http://www.onlysb.com/tag/footer-php/feed" rel="self" type="application/rss+xml" />
	<link>http://www.onlysb.com</link>
	<description>……不疯魔,不成活</description>
	<lastBuildDate>Sat, 05 Dec 2009 09:58:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		
<!-- Start Of Script Generated By WP-PostViews Plus -->
<script type='text/javascript' src='http://www.onlysb.com/wp-includes/js/jquery/jquery.js?ver=1.3.2'></script>
<script type="text/javascript">
/* <![CDATA[ */
/* ]]> */
</script>
<!-- End Of Script Generated By WP-PostViews Plus -->
	<item>
		<title>Techified主题footer.php的完美解决方案</title>
		<link>http://www.onlysb.com/design/180.html</link>
		<comments>http://www.onlysb.com/design/180.html#comments</comments>
		<pubDate>Tue, 27 Oct 2009 13:46:56 +0000</pubDate>
		<dc:creator>烧饼</dc:creator>
				<category><![CDATA[有关设计那些事儿]]></category>
		<category><![CDATA[footer.php]]></category>
		<category><![CDATA[Techified]]></category>

		<guid isPermaLink="false">http://www.onlysb.com/?p=180</guid>
		<description><![CDATA[不得不说Techified是一款堪称完美的主题，虽然在主题在中文显示有些瑕疵，但总的来说瑕不掩瑜。目前国内已经有数人对Techified主题进行了汉化，有趣的是，每人汉化的版本都有些差异。而汉化的结果在WordPress中文论坛评论也是褒贬不一，因为在汉化的过程中有些功能被阉割掉了，较之原版失色不少！
   我现在用的Techified主题是自己修改的。侧边栏我修改了下，并简单的汉化了几个字句，以符合国人的浏览习惯。前几天，我的域名备案终于审下来，终于要下决心改掉footer了。搜索了下，目前主要有两种方法，有直接阉割footer_content.php，有的把footer_content.php集成到footer.php文件里。
  我尝试了用IT狂人给出的footer代码，发现如果直接替换原文件，footer_content会跑到侧边栏去！后来反复鼓搞了这段代码，终于不会白屏，也不会错位了。
代码如下：（直接用此代码替换掉footer.php）

&#60;div id=&#34;”footer_area”&#34;&#62;
&#60;div id=&#34;”footer_area_content”&#34;&#62;
&#160;
                        &#60;!--p include &#40;TEMPLATEPATH . ‘/footer_content.php’&#41;;--&#62;&#60;/div&#62;
&#60;/div&#62;
&#60;div id=&#34;”footer_bottom”&#34;&#62;
&#60;div id=&#34;”footer_bottom_content”&#34;&#62; Copyright © &#60;!--p echo gmdate&#40;__&#40;’Y'));--&#62; &#60;a href=&#34;”&#38;lt;?php&#34;&#62;”&#38;gt;&#60;!--p bloginfo(’name’);--&#62;&#60;/a&#62;. &#60;a href=&#34;”http://www.technologytricks.com/techified-just-another-premium-wordpress-themes/”&#34;&#62;Techified&#60;/a&#62; theme by &#60;a href=&#34;”http://www.ifreecellphones.com/”&#34;&#62;Cell Phones&#60;/a&#62;. Supported by &#60;a href=&#34;”http://www.ifreecellphones.com/cheap-verizon-wireless-phones.asp”&#34;&#62;Verizon Wireless&#60;/a&#62;, &#60;a [...]]]></description>
			<content:encoded><![CDATA[<p><strong>不</strong>得不说Techified是一款堪称完美的主题，虽然在主题在中文显示有些瑕疵，但总的来说瑕不掩瑜。目前国内已经有数人对Techified主题进行了汉化，有趣的是，每人汉化的版本都有些差异。而汉化的结果在WordPress中文论坛评论也是褒贬不一，因为在汉化的过程中有些功能被阉割掉了，较之原版失色不少！</p>
<p>   我现在用的Techified主题是自己修改的。侧边栏我修改了下，并简单的汉化了几个字句，以符合国人的浏览习惯。前几天，我的域名备案终于审下来，终于要下决心改掉footer了。搜索了下，目前主要有两种方法，有直接阉割footer_content.php，有的把footer_content.php集成到footer.php文件里。</p>
<p>  我尝试了用<a href="http://www.yinzhili.com/" target="_blank">IT狂人</a>给出的footer代码，发现如果直接替换原文件，footer_content会跑到侧边栏去！后来反复鼓搞了这段代码，终于不会白屏，也不会错位了。</p>
<p>代码如下：（<span style="color: #ff0000;">直接用此代码替换掉footer.php</span>）</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;”footer_area”&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;”footer_area_content”&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
                        <span style="color: #339933;">&lt;!--</span>p <span style="color: #b1b100;">include</span> <span style="color: #009900;">&#40;</span>TEMPLATEPATH <span style="color: #339933;">.</span> ‘<span style="color: #339933;">/</span>footer_content<span style="color: #339933;">.</span>php’<span style="color: #009900;">&#41;</span><span style="color: #339933;">;--&gt;&lt;/</span>div<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;”footer_bottom”&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;”footer_bottom_content”&quot;</span><span style="color: #339933;">&gt;</span> Copyright © <span style="color: #339933;">&lt;!--</span>p <span style="color: #b1b100;">echo</span> <span style="color: #990000;">gmdate</span><span style="color: #009900;">&#40;</span>__<span style="color: #009900;">&#40;</span>’Y<span style="color: #0000ff;">'));--&gt; &lt;a href=&quot;”&amp;lt;?php&quot;&gt;”&amp;gt;&lt;!--p bloginfo(’name’);--&gt;&lt;/a&gt;. &lt;a href=&quot;”http://www.technologytricks.com/techified-just-another-premium-wordpress-themes/”&quot;&gt;Techified&lt;/a&gt; theme by &lt;a href=&quot;”http://www.ifreecellphones.com/”&quot;&gt;Cell Phones&lt;/a&gt;. Supported by &lt;a href=&quot;”http://www.ifreecellphones.com/cheap-verizon-wireless-phones.asp”&quot;&gt;Verizon Wireless&lt;/a&gt;, &lt;a href=&quot;”http://www.ifreecellphones.com/cheap-t-mobile-phones.asp”&quot;&gt;T-Mobile&lt;/a&gt; &amp;amp; &lt;a href=&quot;”http://www.ifreecellphones.com/cheap-sprint-pcs-phones.asp”&quot;&gt;Sprint&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;</span></pre></div></div>

<p>发现一个问题，代码插件会直接把前面两个闭合标签清除，<span style="color: #ff0000;">请在上面那段代码前面加个两个&lt; /div&gt; （无空格）</span>，否则会出错</p>
<p> 这就完美解决了，记得<span style="color: #666699;">别把人家的版权给删了</span>，这种行为先不说是不道德，就是稍微懂wordpress的人看到了也会一脸鄙夷。</p>
<p><span id="more-180"></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.onlysb.com/design/180.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
