[wp-trac] [WordPress Trac] #12877: Modular themes: Apply template hierarchy to folders within a theme
WordPress Trac
wp-trac at lists.automattic.com
Wed Apr 28 16:29:11 UTC 2010
#12877: Modular themes: Apply template hierarchy to folders within a theme
-----------------------------+----------------------------------------------
Reporter: koopersmith | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Future Release
Component: Themes | Version: 3.0
Severity: normal | Keywords: has-patch
-----------------------------+----------------------------------------------
Changes (by F J Kaiser):
* cc: 24-7@… (added)
Comment:
+1
I would def. test it as a plugin at my themes. As far as i read your
thoughts on your blog, i agree in most parts. My thoughts about it here
(you got no comments on your blog):
* Ptha Dunbars idea of get_template_file sounds better to me, because it's
more flexible and better explains the idea of "get a module-file" to a
not-pro-wp-user.
''Just to describe another (not perfect) approach on this:
** My custom version of a folder-module_file-approach differs in 3 basic
folders in the root: /js/, /lib/ and /ui/. That makes it more easy to
separate between script, styles&images and content.
** Subfolders of /lib/ are /head/ (doctype and wp_enqueue_* script/style),
/func/ (hooks, shortcodes, module-calling-file) and /mod/ (all different
modules)
** Everything just hooks into page-templates
As i sayed: not perfect and doesn't fit straight into template-
hierarchy.''
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12877#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list