<?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>Becomin&#039; Charles &#187; hybrid</title>
	<atom:link href="http://sexywp.com/tags/hybrid/feed" rel="self" type="application/rss+xml" />
	<link>http://sexywp.com</link>
	<description>Building another myself~~</description>
	<lastBuildDate>Fri, 27 Jan 2012 16:00:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>WordPress主题：GoogleCode</title>
		<link>http://sexywp.com/wordpress-theme-googlecode.htm</link>
		<comments>http://sexywp.com/wordpress-theme-googlecode.htm#comments</comments>
		<pubDate>Sat, 28 Mar 2009 07:59:28 +0000</pubDate>
		<dc:creator>Charles</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[develop]]></category>
		<category><![CDATA[hybrid]]></category>
		<category><![CDATA[my works]]></category>
		<category><![CDATA[themes]]></category>

		<guid isPermaLink="false">http://sexywp.com/?p=329</guid>
		<description><![CDATA[本文发布了一款还在持续开发中的Hybrid主题框架的子主题GoogleCode。该主题模仿GoogleCode样式。GoogleCode WordPress主题是一款教学功能大于实用价值的教学主题，希望帮助各位同学找到定制Hybrid主题的起点。<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fintroduction-to-hybrid.htm&from=http%3A%2F%2Fsexywp.com%2Fwordpress-theme-googlecode.htm">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Hybrid 主题框架综述</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fyui-theme.htm&from=http%3A%2F%2Fsexywp.com%2Fwordpress-theme-googlecode.htm">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">WordPress Theme: YUI Theme—烂尾版</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fuse-hybrid-to-build-child-theme.htm&from=http%3A%2F%2Fsexywp.com%2Fwordpress-theme-googlecode.htm">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">使用Hybrid框架的起点</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Ffree-wordpress-themes.htm&from=http%3A%2F%2Fsexywp.com%2Fwordpress-theme-googlecode.htm">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">免费WordPress主题</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fhybrid-references.htm&from=http%3A%2F%2Fsexywp.com%2Fwordpress-theme-googlecode.htm">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Hybrid 常用Action</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p><strong>名称：</strong>GoogleCode</p>
<p><strong>特性：</strong></p>
<ol>
<li>拥有Hybrid主题所有的内在美</li>
<li>两栏</li>
<li>主页（Primary）、帖子页（Secondary）、归档页（Archive）、页面页（Page）有不同的侧边栏，<em>括号里是边栏名字</em></li>
<li>标签式页面菜单</li>
<li>其他Hybrid主题框架所拥有的一些功能</li>
</ol>
<p><strong>版本：</strong>0.1beta<span id="more-329"></span></p>
<p><strong>截图：</strong></p>
<p><a href="http://picasaweb.google.com/lh/photo/v0gBwkHIAdlE0zMeFdD9kg?feat=embedwebsite"><img src="http://lh4.ggpht.com/_QYicOeu89Bk/Sc3Jgxdr32I/AAAAAAAABSI/Cg5n6YXjjs0/s400/screenshot.png" alt="google code theme screenshot" /></a></p>
<p><strong>下载：</strong><a href="http://verygoogle.googlecode.com/files/googlecode-0.1beta.zip">点击这里</a></p>
<p><strong>注意事项：</strong></p>
<ul>
<li>这是Hybrid的子主题，对应的Hybrid版本是0.5（<em>不装Hybrid是无法使用的</em>）</li>
<li>不要对这款主题的外在美有什么过多的期待，如你所见</li>
<li>0.1而且还beta，代表很多潜在不稳定性，未必好用</li>
<li>这款子主题的作者，不是专业的</li>
</ul>
<p><strong>作者笔记：</strong></p>
<p>就像各位看到的那样，我非常喜欢Google Code的样式，我的站点换过数次主题，但是外观都定格在Google Code的样式上，最早的verygoogle，然后是yui-theme，然后是现在GoogleCode for <a href="http://sexywp.com/tags/hybrid" class="st_tag internal_tag" rel="tag" title="标签 hybrid 下的日志">Hybrid</a>。外观基本雷同。不要嘲笑我，我对复杂的结构没有驾驭能力，只好选择简洁，设计非我所长。</p>
<p>这款主题的发布，我不指望有什么用户真正去用，如果有人真的要采用，希望你三思，因为我很忙，不会提供必要的支持。</p>
<p>我发布这款主题的真正目的，是为了有始有终，我前面发表了一系列的介绍Hybrid的文章。很遗憾，我也没说明白个啥，这是因为真的很难说明白。不过呢，我还是要完成我的计划，就是给大家展示一个实例教程。这款主题于是来到了你的面前。这款子主题的原身为Hybrid子主题Skeleton，那是一个没有任何样式和功能，只包含一个Hello World的子主题，其本来用意也就是为了成为子主题开发的基础。我通过简单的开发，寥寥数行的代码，做出了这个GoogleCode，里面的代码，包含了一些简要的注释，希望看代码的同学能够有个线索。</p>
<p>通过对Hybrid的使用，我发现，这款主题很好用，很容易二次开发，作为一个IT民工，使用Hybrid是非常愉快的，就像你使用任何其他的开源框架一样，这个主题框架同样可以极大地提高您的工作效率。但是，如果您只是一个普通的用户，您大概需要什么样的基础才有能力定制Hybrid呢，仅仅从我的观点，您需要基本的编程素养，您可能需要一点PHP的语法知识，要明白callback是怎么回事，能够查阅文档，然后，您可能需要对WordPress插件的基本工作原理有所了解，分得清楚什么是Action和Filter。在以上的基础上，您可能需要很多的实践才能游刃有余地定制Hybrid，开发子主题。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fintroduction-to-hybrid.htm&from=http%3A%2F%2Fsexywp.com%2Fwordpress-theme-googlecode.htm">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Hybrid 主题框架综述</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fyui-theme.htm&from=http%3A%2F%2Fsexywp.com%2Fwordpress-theme-googlecode.htm">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">WordPress Theme: YUI Theme—烂尾版</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fuse-hybrid-to-build-child-theme.htm&from=http%3A%2F%2Fsexywp.com%2Fwordpress-theme-googlecode.htm">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">使用Hybrid框架的起点</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Ffree-wordpress-themes.htm&from=http%3A%2F%2Fsexywp.com%2Fwordpress-theme-googlecode.htm">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">免费WordPress主题</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fhybrid-references.htm&from=http%3A%2F%2Fsexywp.com%2Fwordpress-theme-googlecode.htm">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Hybrid 常用Action</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>
	标签：<a href="http://sexywp.com/tags/develop" title="develop" rel="tag">develop</a>, <a href="http://sexywp.com/tags/hybrid" title="hybrid" rel="tag">hybrid</a>, <a href="http://sexywp.com/tags/my-works" title="my works" rel="tag">my works</a>, <a href="http://sexywp.com/tags/themes" title="themes" rel="tag">themes</a>, <a href="http://sexywp.com/tags/wordpress" title="WordPress" rel="tag">WordPress</a><br />
]]></content:encoded>
			<wfw:commentRss>http://sexywp.com/wordpress-theme-googlecode.htm/feed</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Hybrid 常用Action</title>
		<link>http://sexywp.com/hybrid-references.htm</link>
		<comments>http://sexywp.com/hybrid-references.htm#comments</comments>
		<pubDate>Wed, 25 Feb 2009 16:08:20 +0000</pubDate>
		<dc:creator>Charles</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[develop]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[hybrid]]></category>
		<category><![CDATA[reference]]></category>
		<category><![CDATA[themes]]></category>

		<guid isPermaLink="false">http://sexywp.com/hybrid-references.htm</guid>
		<description><![CDATA[Home页面流程图



hybrid_head() 

<span class="readmore"><a href="http://sexywp.com/hybrid-references.htm" title="Hybrid 常用Action">Keep Reading --- 567 words totally</a></span><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="Hybrid 资源一览" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fall-resources-developers-can-use.htm&from=http%3A%2F%2Fsexywp.com%2Fhybrid-references.htm">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Hybrid 资源一览</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Hybrid 主题框架综述" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fintroduction-to-hybrid.htm&from=http%3A%2F%2Fsexywp.com%2Fhybrid-references.htm">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Hybrid 主题框架综述</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="使用Hybrid框架的起点" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fuse-hybrid-to-build-child-theme.htm&from=http%3A%2F%2Fsexywp.com%2Fhybrid-references.htm">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用Hybrid框架的起点</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress主题：GoogleCode" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fwordpress-theme-googlecode.htm&from=http%3A%2F%2Fsexywp.com%2Fhybrid-references.htm">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/05/22/9170670.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题：GoogleCode</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="免费WordPress主题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Ffree-wordpress-themes.htm&from=http%3A%2F%2Fsexywp.com%2Fhybrid-references.htm">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/06/02/10603183.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">免费WordPress主题</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p><span id="more-309"></span><br />
<h3>Home页面流程图</h3>
<ol>
<li><a href="#hybrid_head">hybrid_head()</a> </li>
<li>wp_haed() </li>
<li>body </li>
<li><a href="http://sexywp.com/tags/hybrid" class="st_tag internal_tag" rel="tag" title="标签 hybrid 下的日志">hybrid</a>_before_html()—action，默认没有被hook </li>
<li>div#body-container </li>
<li>hybrid_before_header()—action，默认没有被hook </li>
<li>div#header-container </li>
<li>div#header </li>
<li><a href="#hybrid_header">hybrid_header()</a> </li>
<li>end#header </li>
<li>end#header-container </li>
<li><a href="#hybrid_after_header">hybrid_after_header()</a> </li>
<li>div#container </li>
<li>hybrid_before_container()—action，默认没有被hook </li>
<li>div#content </li>
<li><a href="hybrid_before_content">hybrid_before_content()</a> </li>
<li>/*wp loop begin*/ </li>
<li>div.hybrid_post_class() </li>
<li>h2.post-title inline </li>
<li>p.byline inline </li>
<li>div.entry-content inline </li>
<li>p.entry-meta inline </li>
<li>end.hybrid_post_class() </li>
<li>/*end wp loop*/ </li>
<li><a href="#hybrid_after_content">hybrid_after_content()</a> </li>
<li>end#content </li>
<li><a href="#hybrid_after_container">hybrid_after_container()</a> </li>
<li>end#container </li>
<li>div#footer-container </li>
<li><a href="#hybrid_before_footer">hybrid_before_footer()</a> </li>
<li>div#footer </li>
<li><a href="#hybrid_footer">hybrid_footer()</a> </li>
<li>wp_footer() </li>
<li>end#footer </li>
<li>hybrid_after_footer()—action，默认没有被hook </li>
<li>end#footer-container </li>
<li>end#body-container </li>
<li>/body </li>
</ol>
<h4>hook到hybrid_head()的函数列表</h4>
<ol id="hybrid_head">
<li>hybrid_meta_content_type() </li>
<li>hybrid_meta_robots() </li>
<li>hybrid_meta_author() </li>
<li>hybrid_meta_copyright() </li>
<li>hybrid_meta_revised() </li>
<li>hybrid_meta_abstract() </li>
<li>hybrid_meta_description() </li>
<li>hybrid_meta_keywords() </li>
<li>hybrid_meta_template() </li>
<li>wp_generator() </li>
<li>hybrid_favicon() </li>
<li>hybrid_head_feeds() </li>
<li>hybrid_head_pingback() </li>
<li>hybrid_head_breadcrumb() </li>
</ol>
<h4>hook到hybrid_header()的函数列表</h4>
<ol id="hybrid_header">
<li>hybrid_site_title() —提供同名filter，参数为标题包括其html tag，没有被hook </li>
<li>hybrid_site_description() —提供同名filter，参数为站点描述，包括其html tag，没有被hook </li>
</ol>
<h4>hook到hybrid_after_header()的函数列表</h4>
<ol id="hybrid_after_header">
<li><a href="#hybrid_page_nav">hybrid_page_nav()</a> —启动两个action，并提供一个同名filter，参数为导航条包括其html tag，没有被hook </li>
</ol>
<h4>hook到hybrid_before_content()的函数列表</h4>
<ol id="hybrid_before_content">
<li>hybrid_breadcrumb() —提供一个同名filter和一个名为hybrid_breadcrumb_args的filter </li>
<li>hybrid_get_utility_before_content() —该函数打印位于Content之前的Sidebar，在Hybrid中被赋予一个名称为Utility </li>
</ol>
<h4>hook到hybrid_after_content()的函数列表</h4>
<ol id="hybrid_after_content">
<li>hybrid_get_utility_after_content() —该函数打印位于Content之后的Sidebar </li>
<li>hybrid_navigation_links() —该函数打印WP自带的简单页面导航Prev和Next </li>
</ol>
<h4>hook到hybrid_after_container()的函数列表</h4>
<ol id="hybrid_after_container">
<li><a href="#hybrid_get_primary">hybrid_get_primary()</a> —该函数首先提供一个filter，名为hybrid_primary_var，参数sidebar_id，如果传入false可以关闭侧边栏，该函数打印主侧边栏，并在此之前和之后分别触发一个action </li>
<li><a href="#hybrid_get_primary">hybrid_get_secondary()</a> —原理基本上和上一个相同，提供的filter名字为hybrid_secondary_var </li>
<li>hybrid_insert() —提供一个同名filter，参数为要打印出来的内容，默认为false，这是专门给用户用来添加sidebar的hook </li>
</ol>
<h4>hook到hybrid_before_footer()的函数列表</h4>
<ol id="hybrid_before_footer">
<li><a href="#hybrid_get_primary">hybrid_get_subsidiary()</a> —其功能等同于侧边栏，同上面两个侧边栏 </li>
</ol>
<h4>hook到hybrid_footer()的函数列表</h4>
<ol id="hybrid_footer">
<li>hybrid_copyright() —打印版权信息，提供同名filter </li>
<li>hybrid_credit() —与上面一个类似，也提供同名filter </li>
<li>hybrid_query_counter() —打印页面生成时间和数据库查询数的函数 </li>
</ol>
<h4>由hybrid_page_nav()触发的action</h4>
<ol id="hybrid_page_nav">
<li>hybrid_before_page_nav() —action，默认没有被hook </li>
<li>hybrid_after_page_nav() —action，默认没有被hook </li>
</ol>
<h4>由hybrid_get_primary()和hybrid_get_secondary()和hybrid_get_subsidiary() 触发的action</h4>
<ol id="hybrid_get_primary">
<li>hybrid_before_primary() —action，默认没有被hook </li>
<li>hybrid_after_primary() —action，默认没有被hook </li>
<li>hybrid_before_secondary() —action，默认没有被hook </li>
<li>hybrid_after_secondary() —action，默认没有被hook </li>
<li>hybrid_before_subsidiary() —action，默认没有被hook </li>
<li>hybrid_after_subsidiary() —action，默认没有被hook </li>
</ol>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="Hybrid 资源一览" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fall-resources-developers-can-use.htm&from=http%3A%2F%2Fsexywp.com%2Fhybrid-references.htm">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Hybrid 资源一览</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Hybrid 主题框架综述" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fintroduction-to-hybrid.htm&from=http%3A%2F%2Fsexywp.com%2Fhybrid-references.htm">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Hybrid 主题框架综述</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="使用Hybrid框架的起点" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fuse-hybrid-to-build-child-theme.htm&from=http%3A%2F%2Fsexywp.com%2Fhybrid-references.htm">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用Hybrid框架的起点</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress主题：GoogleCode" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fwordpress-theme-googlecode.htm&from=http%3A%2F%2Fsexywp.com%2Fhybrid-references.htm">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/05/22/9170670.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题：GoogleCode</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="免费WordPress主题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Ffree-wordpress-themes.htm&from=http%3A%2F%2Fsexywp.com%2Fhybrid-references.htm">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/06/02/10603183.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">免费WordPress主题</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>
	标签：<a href="http://sexywp.com/tags/develop" title="develop" rel="tag">develop</a>, <a href="http://sexywp.com/tags/framework" title="framework" rel="tag">framework</a>, <a href="http://sexywp.com/tags/hybrid" title="hybrid" rel="tag">hybrid</a>, <a href="http://sexywp.com/tags/reference" title="reference" rel="tag">reference</a>, <a href="http://sexywp.com/tags/themes" title="themes" rel="tag">themes</a>, <a href="http://sexywp.com/tags/wordpress" title="WordPress" rel="tag">WordPress</a><br />
]]></content:encoded>
			<wfw:commentRss>http://sexywp.com/hybrid-references.htm/feed</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>Hybrid 资源一览</title>
		<link>http://sexywp.com/all-resources-developers-can-use.htm</link>
		<comments>http://sexywp.com/all-resources-developers-can-use.htm#comments</comments>
		<pubDate>Sun, 22 Feb 2009 05:12:19 +0000</pubDate>
		<dc:creator>Charles</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[develop]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[hybrid]]></category>
		<category><![CDATA[reference]]></category>
		<category><![CDATA[themes]]></category>

		<guid isPermaLink="false">http://sexywp.com/all-resources-developers-can-use.htm</guid>
		<description><![CDATA[页面模板一览



Template Name: Archives 

<span class="readmore"><a href="http://sexywp.com/all-resources-developers-can-use.htm" title="Hybrid 资源一览">Keep Reading --- 105 words totally</a></span><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fhybrid-references.htm&from=http%3A%2F%2Fsexywp.com%2Fall-resources-developers-can-use.htm">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Hybrid 常用Action</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fuse-hybrid-to-build-child-theme.htm&from=http%3A%2F%2Fsexywp.com%2Fall-resources-developers-can-use.htm">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">使用Hybrid框架的起点</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fintroduction-to-hybrid.htm&from=http%3A%2F%2Fsexywp.com%2Fall-resources-developers-can-use.htm">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Hybrid 主题框架综述</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fwordpress-theme-googlecode.htm&from=http%3A%2F%2Fsexywp.com%2Fall-resources-developers-can-use.htm">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">WordPress主题：GoogleCode</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fyui-theme.htm&from=http%3A%2F%2Fsexywp.com%2Fall-resources-developers-can-use.htm">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">WordPress Theme: YUI Theme—烂尾版</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p><span id="more-300"></span><br />
<h3>页面模板一览</h3>
<ol>
<li>Template Name: Archives </li>
<li>Template Name: Authors </li>
<li>Template Name: Biography </li>
<li>Template Name: Blog </li>
<li>Template Name: Bookmarks </li>
<li>Template Name: Categories </li>
<li>Template Name: Log In </li>
<li>Template Name: Logged In </li>
<li>Template Name: No Widgets </li>
<li>Template Name: Profile </li>
<li>Template Name: Quick Post </li>
<li>Template Name: Register </li>
<li>Template Name: Sitemap </li>
<li>Template Name: Tags </li>
<li>Template Name: Widgets </li>
</ol>
<h3>Action一览表</h3>
<ol>
<li>comment_form </li>
<li><a href="http://sexywp.com/tags/hybrid" class="st_tag internal_tag" rel="tag" title="标签 hybrid 下的日志">hybrid</a>_before_html </li>
<li>hybrid_after_html </li>
<li>hybrid_head </li>
<li>hybrid_before_header </li>
<li>hybrid_header </li>
<li>hybrid_after_header </li>
<li>hybrid_before_page_nav </li>
<li>hybrid_after_page_nav </li>
<li>hybrid_before_cat_nav </li>
<li>hybrid_after_cat_nav </li>
<li>hybrid_before_container </li>
<li>hybrid_before_content </li>
<li>hybrid_after_content </li>
<li>hybrid_after_single </li>
<li>hybrid_after_page </li>
<li>hybrid_before_comments </li>
<li>hybrid_before_primary </li>
<li>hybrid_after_primary </li>
<li>hybrid_before_secondary </li>
<li>hybrid_after_secondary </li>
<li>hybrid_before_subsidiary </li>
<li>hybrid_after_subsidiary </li>
<li>hybrid_after_container </li>
<li>hybrid_before_footer </li>
<li>hybrid_footer </li>
<li>hybrid_after_footer </li>
<li>hybrid_child_settings </li>
</ol>
<h3>Filter一览表</h3>
<ol>
<li>show_password_fields &lt;-- register.php(115) </li>
<li>hybrid_post_meta_boxes &lt;-- meta-box.php(74) </li>
<li>hybrid_page_meta_boxes &lt;-- meta-box.php(121) </li>
<li>hybrid_settings_args &lt;-- theme-settings-admin.php(65) </li>
<li>hybrid_breadcrumb_args &lt;-- breadcrumbs.php(31) </li>
<li>hybrid_breadcrumb &lt;-- breadcrumbs.php(220) </li>
<li>hybrid_breadcrumb &lt;-- breadcrumbs.php(222) </li>
<li>hybrid_avatar &lt;-- comments.php(67) </li>
<li>hybrid_allowed_tags &lt;-- filters.php(95) </li>
<li>hybrid_site_title &lt;-- filters.php(115) </li>
<li>hybrid_site_description &lt;-- filters.php(134) </li>
<li>hybrid_page_nav &lt;-- filters.php(166) </li>
<li>hybrid_cat_nav &lt;-- filters.php(189) </li>
<li>hybrid_category_menu_args &lt;-- filters.php(236) </li>
<li>hybrid_category_menu &lt;-- filters.php(275) </li>
<li>hybrid_search_form &lt;-- filters.php(313) </li>
<li>hybrid_insert &lt;-- filters.php(328) </li>
<li>hybrid_copyright &lt;-- filters.php(350) </li>
<li>hybrid_credit &lt;-- filters.php(380) </li>
<li>get_the_image_args &lt;-- get-the-image.php(37) </li>
<li>get_the_video_args &lt;-- get-the-video.php(37) </li>
<li>hybrid_enqueue_style &lt;-- media.php(39) </li>
<li>hybrid_enqueue_script &lt;-- media.php(92) </li>
<li>hybrid_favicon &lt;-- template-functions.php(293) </li>
<li>hybrid_primary_args &lt;-- widgets.php(64) </li>
<li>hybrid_primary_inserts &lt;-- widgets.php(68) </li>
<li>hybrid_secondary_args &lt;-- widgets.php(84) </li>
<li>hybrid_secondary_inserts &lt;-- widgets.php(88) </li>
<li>hybrid_subsidiary_args &lt;-- widgets.php(110) </li>
<li>hybrid_subsidiary_inserts &lt;-- widgets.php(114) </li>
<li>hybrid_utility_args &lt;-- widgets.php(138) </li>
<li>hybrid_utility_inserts &lt;-- widgets.php(142) </li>
<li>hybrid_widget_class &lt;-- widgets.php(209) </li>
<li>hybrid_primary_var &lt;-- widgets.php(402) </li>
<li>hybrid_secondary_var &lt;-- widgets.php(420) </li>
<li>hybrid_subsidiary_var &lt;-- widgets.php(438) </li>
<li>wp_page_menu_args &lt;-- legacy.functions.php(40) </li>
<li>wp_page_menu &lt;-- legacy.functions.php(75) </li>
<li>widget_title &lt;-- archives.php(26) </li>
<li>widget_title &lt;-- authors.php(26) </li>
<li>link_category &lt;-- bookmarks.php(145) </li>
<li>widget_title &lt;-- categories.php(26) </li>
<li>widget_title &lt;-- pages.php(26) </li>
<li>widget_title &lt;-- search.php(26) </li>
<li>widget_title &lt;-- tags.php(26) </li>
</ol>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fhybrid-references.htm&from=http%3A%2F%2Fsexywp.com%2Fall-resources-developers-can-use.htm">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Hybrid 常用Action</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fuse-hybrid-to-build-child-theme.htm&from=http%3A%2F%2Fsexywp.com%2Fall-resources-developers-can-use.htm">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">使用Hybrid框架的起点</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fintroduction-to-hybrid.htm&from=http%3A%2F%2Fsexywp.com%2Fall-resources-developers-can-use.htm">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Hybrid 主题框架综述</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fwordpress-theme-googlecode.htm&from=http%3A%2F%2Fsexywp.com%2Fall-resources-developers-can-use.htm">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">WordPress主题：GoogleCode</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fyui-theme.htm&from=http%3A%2F%2Fsexywp.com%2Fall-resources-developers-can-use.htm">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">WordPress Theme: YUI Theme—烂尾版</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>
	标签：<a href="http://sexywp.com/tags/develop" title="develop" rel="tag">develop</a>, <a href="http://sexywp.com/tags/framework" title="framework" rel="tag">framework</a>, <a href="http://sexywp.com/tags/hybrid" title="hybrid" rel="tag">hybrid</a>, <a href="http://sexywp.com/tags/reference" title="reference" rel="tag">reference</a>, <a href="http://sexywp.com/tags/themes" title="themes" rel="tag">themes</a>, <a href="http://sexywp.com/tags/wordpress" title="WordPress" rel="tag">WordPress</a><br />
]]></content:encoded>
			<wfw:commentRss>http://sexywp.com/all-resources-developers-can-use.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用Hybrid框架的起点</title>
		<link>http://sexywp.com/use-hybrid-to-build-child-theme.htm</link>
		<comments>http://sexywp.com/use-hybrid-to-build-child-theme.htm#comments</comments>
		<pubDate>Wed, 18 Feb 2009 15:16:07 +0000</pubDate>
		<dc:creator>Charles</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[develop]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[hybrid]]></category>
		<category><![CDATA[themes]]></category>

		<guid isPermaLink="false">http://sexywp.com/use-hybrid-to-build-child-theme.htm</guid>
		<description><![CDATA[在上一篇《Hybrid主题框架综述》中，我们已经介绍了Hybrid的基本原理。这篇文章，我们将主要介绍如何使用Hybrid来制作一款主题。本文主要面向的读者为主题制作爱好者，和狂热的DIY fans们。



子主题，就是指，以另一个已经存在的主题的页面元素结构和功能为基础，创建完全自定义的样式，和附加功能。而在制作过程中，完全不修改另一个主题的代码。而“另一个主题”在这个过程中，就自动成为了“父主题”。

<span class="readmore"><a href="http://sexywp.com/use-hybrid-to-build-child-theme.htm" title="使用Hybrid框架的起点">Keep Reading --- 1447 words totally</a></span><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress主题：GoogleCode" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fwordpress-theme-googlecode.htm&from=http%3A%2F%2Fsexywp.com%2Fuse-hybrid-to-build-child-theme.htm">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/05/22/9170670.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题：GoogleCode</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Hybrid 主题框架综述" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fintroduction-to-hybrid.htm&from=http%3A%2F%2Fsexywp.com%2Fuse-hybrid-to-build-child-theme.htm">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Hybrid 主题框架综述</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Hybrid 资源一览" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fall-resources-developers-can-use.htm&from=http%3A%2F%2Fsexywp.com%2Fuse-hybrid-to-build-child-theme.htm">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Hybrid 资源一览</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Hybrid 常用Action" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fhybrid-references.htm&from=http%3A%2F%2Fsexywp.com%2Fuse-hybrid-to-build-child-theme.htm">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Hybrid 常用Action</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="视频教程：使用Yii框架开发Blog" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fvideo-guide-to-use-yii-framework.htm&from=http%3A%2F%2Fsexywp.com%2Fuse-hybrid-to-build-child-theme.htm">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/05/22/9170385.jpg" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">视频教程：使用Yii框架开发Blog</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>在上一篇《<a href="http://sexywp.com/introduction-to-hybrid.htm" target="_blank">Hybrid主题框架综述</a>》中，我们已经介绍了Hybrid的基本原理。这篇文章，我们将主要介绍如何使用Hybrid来制作一款主题。本文主要面向的读者为主题制作爱好者，和狂热的DIY fans们。</p>
<p><span id="more-298"></span>
<p>子主题，就是指，以另一个已经存在的主题的页面元素结构和功能为基础，创建完全自定义的样式，和附加功能。而在制作过程中，完全不修改另一个主题的代码。而“另一个主题”在这个过程中，就自动成为了“父主题”。</p>
<pre>/*
Theme Name: Rose
Theme URI: the-theme's-homepage
Description: a-brief-description
Author: your-name
Author URI: your-URI
Template: use-this-to-define-a-parent-theme--optional
Version: a-number--optional
.
General comments/License Statement if any.
.
*/</pre>
<p>上面一段代码，我想每个主题制作爱好者都不会陌生，这是存在于style.css头部的一段注释，WordPress使用这段信息，加载一个主题。其中的Template，就是在制作子主题的时候用于说明父主题的字段。具体在制作一款子主题的时候，只要将Template:hybrid填写到style.css的头部，就可以使用Hybrid作为父级主题了。当然，这个说明同样也适用于其他主题框架，或者任何一款主题（不推荐使用普通主题作为父级主题）。</p>
<p>创建子主题，就相当于站在巨人的肩膀上，你要处理的文件数量非常少，一般来说只有两个就够了，一个是style.css，另一个是functions.php。style.css的作用是用于说明子主题的外观样式，而functions.php的作用，是用于附加原来父级主题所没有的功能。</p>
<p>这里要做一个<strong>特别说明</strong>，就是关于<strong>文件加载的顺序</strong>的说明。如果你制作了一款子主题，那么WordPress在加载的时候，<strong>首先加载的是子主题的functions.php然后才是父级主题的functions.php</strong>。这意味着什么呢？在Hybrid的functions.php里，使用add_action函数挂载了非常多的东西，根据Hybrid主题框架综述的说明，几乎所有的页面内容，都通过action来挂载。那么如果有哪部分内容，你不想要，或者你想替换成你自己的，那么你是无法直接在子主题的functions.php里面实现卸载的。你能直接操作的，只是挂载，而不能卸载。那么非要卸载是不是没有可能了呢？也不是。这里给出一个方法，首先，创建一个函数，action_to_remove，然后在函数体内写好你要卸载的action，然后将这个函数hook到全局的action <strong>init</strong> 之上，就可以实现卸载了。代码如下：<a href="http://sexywp.com/try-to-explain-hook-in-wp.htm" target="_blank">（什么是Hook？什么是Action？）</a></p>
<pre>add_action('init','action_to_remove');  function action_to_remove(){&#160;&#160;&#160; remove_action('<a href="http://sexywp.com/tags/hybrid" class="st_tag internal_tag" rel="tag" title="标签 hybrid 下的日志">hybrid</a>_header','<a href="http://sexywp.com/tags/hybrid" class="st_tag internal_tag" rel="tag" title="标签 hybrid 下的日志">hybrid</a>_site_title');  }</pre>
<p>通过上述代码，我们移除了Hybrid主题中的title部分。其实，这个问题也有其一般意义，因为当你想要移除一个action的时候，这个action根本还没有被add过，那么你的移除动作是无效的。以后如果有必要，我会专门撰文介绍这个问题。</p>
<p>上面两段，对于插件开发爱好者来说，可能非常容易理解。一般同学如果不理解，没关系，直接跳过就ok了，毕竟Hybrid没有往主题里挂过多的不必要的东西，一般情况不需要移除任何东西的。</p>
<p>这里总结一下，创建子主题的过程：</p>
<ol>
<li>在wp-content的themes文件夹下，创建一个文件夹，用作子主题的目录，如my-custom-hybrid。</li>
<li>在my-custom-hybrid目录里，创建两个文件，一个是style.css，一个是functions.php（可以不要这个文件）。</li>
<li>编辑style.css文件，在头部按照上文的格式，撰写注释信息，在Template后面，填上hybrid。</li>
<li>在style.css文件内部，使用CSS语法，创建你自己的样式。</li>
<li>在functions.php内部，添加一些功能，或者嵌入某些插件。</li>
</ol>
<p>&#160;</p>
<p>到这里，如果你真的看明白了，想要动手制作了，那么我还要再推荐给你一个非常好的东西。制作一款子主题，并非必须从0开始，也即从一个空白的style.css开始。Hybrid的作者非常贴心的创建了一个子主题skeleton，就是为了给广大主题爱好者创建一个良好的基础。该子主题的style.css文件，按照页面元素的层次结构和出现顺序，罗列了所有的class名称和id名称，比如，导航条部分的代码样子如下：</p>
<p>/**<br />
  <br />* Page navigation</p>
<p>************************************************/ </p>
<p>/* Wrapper for navigation */<br />
  <br />#navigation {} </p>
<p>&#160;&#160;&#160; /* Page nav */<br />
  <br />&#160;&#160;&#160; #page-nav {}</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; #page-nav ul {}</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; #page-nav li {}</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; #page-nav li a {}</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; #page-nav li.current_page_item {}</p>
<p>瞧见没有？是不是结构非常的鲜明，一目了然呢？<a href="http://themehybrid.com/themes/hybrid" target="_blank">下载地址</a>。</p>
<p>好了，今天就介绍到这里吧，下次，将要撰写《Hybrid资源一览表》，欢迎大家继续关注！</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress主题：GoogleCode" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fwordpress-theme-googlecode.htm&from=http%3A%2F%2Fsexywp.com%2Fuse-hybrid-to-build-child-theme.htm">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/05/22/9170670.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题：GoogleCode</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Hybrid 主题框架综述" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fintroduction-to-hybrid.htm&from=http%3A%2F%2Fsexywp.com%2Fuse-hybrid-to-build-child-theme.htm">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Hybrid 主题框架综述</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Hybrid 资源一览" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fall-resources-developers-can-use.htm&from=http%3A%2F%2Fsexywp.com%2Fuse-hybrid-to-build-child-theme.htm">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Hybrid 资源一览</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Hybrid 常用Action" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fhybrid-references.htm&from=http%3A%2F%2Fsexywp.com%2Fuse-hybrid-to-build-child-theme.htm">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Hybrid 常用Action</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="视频教程：使用Yii框架开发Blog" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fvideo-guide-to-use-yii-framework.htm&from=http%3A%2F%2Fsexywp.com%2Fuse-hybrid-to-build-child-theme.htm">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/05/22/9170385.jpg" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">视频教程：使用Yii框架开发Blog</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>
	标签：<a href="http://sexywp.com/tags/develop" title="develop" rel="tag">develop</a>, <a href="http://sexywp.com/tags/framework" title="framework" rel="tag">framework</a>, <a href="http://sexywp.com/tags/hybrid" title="hybrid" rel="tag">hybrid</a>, <a href="http://sexywp.com/tags/themes" title="themes" rel="tag">themes</a>, <a href="http://sexywp.com/tags/wordpress" title="WordPress" rel="tag">WordPress</a><br />
]]></content:encoded>
			<wfw:commentRss>http://sexywp.com/use-hybrid-to-build-child-theme.htm/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Hybrid 主题框架综述</title>
		<link>http://sexywp.com/introduction-to-hybrid.htm</link>
		<comments>http://sexywp.com/introduction-to-hybrid.htm#comments</comments>
		<pubDate>Sun, 15 Feb 2009 05:44:55 +0000</pubDate>
		<dc:creator>Charles</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[develop]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[hybrid]]></category>
		<category><![CDATA[themes]]></category>

		<guid isPermaLink="false">http://sexywp.com/introduction-to-hybrid.htm</guid>
		<description><![CDATA[Hybrid主题框架首次发布于2008年11月，该框架功能完备，定制性强，得到了很多开发者的青睐，以本文为首的系列文章，将向您介绍这款主题框架的方方面面。

 

Hybrid 是 Justin Tadlock 开发的一款主题框架，该框架功能非常强大，下面简单罗列一些。（该列表原文来自原主页，其翻译来自上善若水。）

<span class="readmore"><a href="http://sexywp.com/introduction-to-hybrid.htm" title="Hybrid 主题框架综述">Keep Reading --- 972 words totally</a></span><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="使用Hybrid框架的起点" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fuse-hybrid-to-build-child-theme.htm&from=http%3A%2F%2Fsexywp.com%2Fintroduction-to-hybrid.htm">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用Hybrid框架的起点</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress主题：GoogleCode" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fwordpress-theme-googlecode.htm&from=http%3A%2F%2Fsexywp.com%2Fintroduction-to-hybrid.htm">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/05/22/9170670.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题：GoogleCode</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Hybrid 常用Action" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fhybrid-references.htm&from=http%3A%2F%2Fsexywp.com%2Fintroduction-to-hybrid.htm">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Hybrid 常用Action</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Hybrid 资源一览" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fall-resources-developers-can-use.htm&from=http%3A%2F%2Fsexywp.com%2Fintroduction-to-hybrid.htm">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Hybrid 资源一览</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="免费WordPress主题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Ffree-wordpress-themes.htm&from=http%3A%2F%2Fsexywp.com%2Fintroduction-to-hybrid.htm">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/06/02/10603183.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">免费WordPress主题</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>Hybrid主题框架首次发布于2008年11月，该框架功能完备，定制性强，得到了很多开发者的青睐，以本文为首的系列文章，将向您介绍这款主题框架的方方面面。</p>
<p> <span id="more-297"></span>
<p><a href="http://themehybrid.com/archives/2008/11/hybrid-wordpress-theme-framework">Hybrid 是 Justin Tadlock</a> 开发的一款主题框架，该框架功能非常强大，下面简单罗列一些。（该列表原文来自原主页，其翻译来自<a href="http://edwardright.com/archives/a-new-wordpress-framwork-theme-hybrid.html">上善若水</a>。）</p>
<blockquote><ul>
<li>如同 SandBox 主题框架一样，用户可以自定义主题样式； </li>
<li>内置了基本的 SEO 选项，基本可以取代 All In One SEO Pack 之类的插件； </li>
<li>拥有一个完备的<a href="http://themehybrid.com/blog/wp-content/uploads/2008/11/hybrid-theme-settings.gif">主题选项</a>； </li>
<li>内置了常用的13个页面的模板，用户可以利用这些模板来完成许多事； </li>
<li>自 <a href="http://sexywp.com/tags/wordpress" class="st_tag internal_tag" rel="tag" title="标签 WordPress 下的日志">WordPress</a> 2.5 版本至最新的 2.7 版本全兼容； </li>
<li>原生支持至少15个插件； </li>
<li>附件处理功能； </li>
<li>迷人的 <a href="http://www.junchenwu.com/2007/04/the_tabbed_breadcrumb_navigation.html">Tab 式位置导航变体</a> 菜单； </li>
<li>基于 <a href="http://960.gs/">960 GS</a>、<a href="http://www.blueprintcss.org/">Blueprint</a> 和 <a href="http://devkick.com/lab/tripoli">Tripoli</a> 相当可靠的 CSS 样式； </li>
<li>可以建立各种样式的站点； </li>
</ul>
</blockquote>
<p><a href="http://sexywp.com/tags/hybrid" class="st_tag internal_tag" rel="tag" title="标签 hybrid 下的日志">Hybrid</a> 是一款名副其实的“框架”。其整体架构，就是一个良构的XHTML布局，具体来说，就是一个页头，一个页面内容容器，里面分为主要内容，侧栏等；然后是页脚。除了一个最基础的DIV+CSS的XHTML布局之外，剩下的就是Hook，在上述基础布局中，所有可以插入元素，或者有必要插入元素的地方，都带有WordPress的Action。</p>
<p>当然，Hybrid除了是一个框架之外，它还是一个主题。Hybrid主题本身，就建立在其自身搭建的框架之上。为什么这么说呢？因为一个博客模板里，所有最为基本的东西，如&lt;head&gt;标签内部的一些meta tags，博客标题，站点描述，页面导航，侧边栏，页脚版权信息，等等等等，绝大多数主要内容，也即除了“骨骼”之外的那些“肉”，都是通过action来挂载的。既然是挂载上去的，当然也可以摘除。</p>
<p>Hybrid框架最适合作为开发子主题的基础，因为该框架本身布局灵活，通过框架内部带有的action，子主题作者可以从原本基础上摘除任何不需要的功能块，同样也可以挂载任何自己开发的功能块。这一系列的操作，都不需要对Hybrid本身动手术，这保证了Hybrid框架的完整性，为日后升级提供了极大的方便。</p>
<p>上手Hybrid，一定要有框架思维，把它当成一个真正的框架，才是正确的用法。（写给程序员：你在编程时有想过修改.net framework或者MFC或者JFC或者STL的代码吗？答案如果是没有，那么你也不需要去修改Hybrid的代码。）我这里这么说，主要是想告诉一些希望定制Hybrid框架的朋友，直接DIY Hybrid的源代码，是不被禁止的，但是Charles个人及其不推荐的。Hybrid虽然是一款非常优秀的主题框架，但是其目前版本只有0.4.1，其内部代码还有至少3处被标记成under active development，整个框架还处在活跃地开发状态，保持随时升级非常重要。</p>
<p>未完待续</p>
<p>下一篇，拟介绍《<a href="http://sexywp.com/use-hybrid-to-build-child-theme.htm" target="_blank">使用Hybrid的起点</a>》，欢迎给位在下面跟帖讨论，并给我提供写作建议，谢谢！</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="使用Hybrid框架的起点" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fuse-hybrid-to-build-child-theme.htm&from=http%3A%2F%2Fsexywp.com%2Fintroduction-to-hybrid.htm">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用Hybrid框架的起点</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress主题：GoogleCode" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fwordpress-theme-googlecode.htm&from=http%3A%2F%2Fsexywp.com%2Fintroduction-to-hybrid.htm">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/05/22/9170670.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress主题：GoogleCode</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Hybrid 常用Action" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fhybrid-references.htm&from=http%3A%2F%2Fsexywp.com%2Fintroduction-to-hybrid.htm">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Hybrid 常用Action</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Hybrid 资源一览" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Fall-resources-developers-can-use.htm&from=http%3A%2F%2Fsexywp.com%2Fintroduction-to-hybrid.htm">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Hybrid 资源一览</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="免费WordPress主题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fsexywp.com%2Ffree-wordpress-themes.htm&from=http%3A%2F%2Fsexywp.com%2Fintroduction-to-hybrid.htm">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/06/02/10603183.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">免费WordPress主题</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>
	标签：<a href="http://sexywp.com/tags/develop" title="develop" rel="tag">develop</a>, <a href="http://sexywp.com/tags/framework" title="framework" rel="tag">framework</a>, <a href="http://sexywp.com/tags/hybrid" title="hybrid" rel="tag">hybrid</a>, <a href="http://sexywp.com/tags/themes" title="themes" rel="tag">themes</a>, <a href="http://sexywp.com/tags/wordpress" title="WordPress" rel="tag">WordPress</a><br />
]]></content:encoded>
			<wfw:commentRss>http://sexywp.com/introduction-to-hybrid.htm/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

