Title: Template Modules
Author: Will Norris
Published: <strong>2010 年 10 月 18 日</strong>
Last modified: 2010 年 10 月 18 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/template-modules.svg)

# Template Modules

 作者：[Will Norris](https://profiles.wordpress.org/willnorris/)

[下载](https://downloads.wordpress.org/plugin/template-modules.1.0.zip)

 * [详情](https://cn.wordpress.org/plugins/template-modules/#description)
 * [评价](https://cn.wordpress.org/plugins/template-modules/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/template-modules/#developers)

 [支持](https://wordpress.org/support/plugin/template-modules/)

## 描述

This is a plugin based implementation of Daryl Koopersmith’s modular themes concept
and patch
 ([#12877](https://core.trac.wordpress.org/ticket/12877)). It provides
the `get_template_module()` function, which allows for the creation of well-architected
themes with highly reusable code. For more on the use of this function, read Daryl’s
series of posts:

 * [Modular Themes, Part 1: Why?](http://drylk.com/2010/04/06/modular-themes-why/)
 * [Modular Themes, Part 2: Theme Organization](http://drylk.com/2010/04/06/modular-themes-organization/)
 * [Modular Themes, Performance](http://drylk.com/2010/04/06/modular-themes-performance/)

If you like this method of WordPress theme design, then vote up ticket [#12877](https://core.trac.wordpress.org/ticket/12877).
The ideal
 scenario is for this functionality to be provided in WordPress core. 
This plugin is simply a proof of concept, and provides an easy way for theme developers
to start playing with modular themes. The bulk of this plugin is directly from Daryl’s
patch. The one exception being the update_template_hierarchy() function, which duplicates
much of the template selection logic from wp-includes/theme.php in WordPress core.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Template Modules」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Will Norris ](https://profiles.wordpress.org/willnorris/)

[帮助将「Template Modules」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/template-modules)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/template-modules/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/template-modules/)，或通过[RSS](https://plugins.trac.wordpress.org/log/template-modules/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/template-modules/)。

## 额外信息

 *  版本 **1.0**
 *  最后更新：**16 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **3.0.5**
 *  语言
 * [English (US)](https://wordpress.org/plugins/template-modules/)
 * 标签
 * [modular](https://cn.wordpress.org/plugins/tags/modular/)[templates](https://cn.wordpress.org/plugins/tags/templates/)
   [themes](https://cn.wordpress.org/plugins/tags/themes/)
 *  [高级视图](https://cn.wordpress.org/plugins/template-modules/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/template-modules/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/template-modules/reviews/)

## 贡献者

 *   [ Will Norris ](https://profiles.wordpress.org/willnorris/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/template-modules/)