Template Modules

Add the infrastructure to enable Daryl Koopersmith's modular theme concept.

Author:Will Norris (profile at wordpress.org)
WordPress version required:3.0
WordPress version tested:3.0.5
Plugin version:1.0
Added to WordPress repository:18-10-2010
Last updated:18-10-2010
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:http://github.com/willnorris/template-modules
Total downloads:1 074
plugin download
Click to start download

This is a plugin based implementation of Daryl Koopersmith's modular themes concept and patch (#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:

If you like this method of WordPress theme design, then vote up 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.