{"id":173508,"date":"2010-10-18T08:00:00","date_gmt":"2010-10-18T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/2024\/02\/22\/template-modules\/"},"modified":"2010-10-18T08:02:00","modified_gmt":"2010-10-18T08:02:00","slug":"template-modules","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/template-modules\/","title":{"rendered":"Template Modules"},"content":{"rendered":"<p>This is a plugin based implementation of Daryl Koopersmith\u2019s modular themes concept and patch<br \/>\n(<a href=\"https:\/\/core.trac.wordpress.org\/ticket\/12877\" rel=\"nofollow ugc\">#12877<\/a>).  It provides the <code>get_template_module()<\/code> function, which allows for the creation<br \/>\nof well-architected themes with highly reusable code.  For more on the use of this function,<br \/>\nread Daryl\u2019s series of posts:<\/p>\n<ul>\n<li><a href=\"http:\/\/drylk.com\/2010\/04\/06\/modular-themes-why\/\" rel=\"nofollow ugc\">Modular Themes, Part 1: Why?<\/a><\/li>\n<li><a href=\"http:\/\/drylk.com\/2010\/04\/06\/modular-themes-organization\/\" rel=\"nofollow ugc\">Modular Themes, Part 2: Theme Organization<\/a><\/li>\n<li><a href=\"http:\/\/drylk.com\/2010\/04\/06\/modular-themes-performance\/\" rel=\"nofollow ugc\">Modular Themes, Performance<\/a><\/li>\n<\/ul>\n<p>If you like this method of WordPress theme design, then vote up ticket <a href=\"https:\/\/core.trac.wordpress.org\/ticket\/12877\" rel=\"nofollow ugc\">#12877<\/a>.  The ideal<br \/>\nscenario is for this functionality to be provided in WordPress core.  This plugin is simply a proof<br \/>\nof concept, and provides an easy way for theme developers to start playing with modular themes.  The<br \/>\nbulk of this plugin is directly from Daryl\u2019s patch.  The one exception being the<br \/>\n    update_template_hierarchy() function, which duplicates much of the template selection logic from<br \/>\n    wp-includes\/theme.php in WordPress core.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Add the infrastructure to enable Daryl Koopersmith's modular theme concept.<\/p>\n","protected":false},"author":65,"featured_media":227660,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Template Modules - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"Add the infrastructure to enable Daryl Koopersmith's modular theme concept."},"footnotes":""},"categories":[1],"tags":[17100,1297,2538],"class_list":["post-173508","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-modular","tag-templates","tag-themes"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/173508","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=173508"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/173508\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/227660"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=173508"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=173508"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=173508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}