[buddypress-trac] [BuddyPress] #4639: Add template hierarchy support

buddypress-trac noreply at wordpress.org
Thu Jun 13 01:27:02 UTC 2013


#4639: Add template hierarchy support
-------------------------+---------------------------
 Reporter:  DJPaul       |       Owner:  boonebgorges
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  1.8
Component:  Theme        |     Version:  1.7
 Severity:  normal       |  Resolution:  fixed
 Keywords:  has-patch    |
-------------------------+---------------------------
Changes (by boonebgorges):

 * owner:   => boonebgorges
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"7212"]:
 {{{
 #!CommitTicketReference repository="" revision="7212"
 Introduces template hierarchy for top-level theme compat templates

 The "top-level" template is the outermost template included by theme
 compatibility. As of BuddyPress 1.7, a stack of template names is checked
 when
 BP decides which top-level template to use: plugin-buddypres.php,
 buddypress.php, community.php, etc. (See bp_get_theme_compat_templates().)

 This changeset introduces an additional level of template hierarchy, so
 that
 themes may provide top-level templates that are specific to the current
 component, such as blogs/index-directory.php, or specific to the current
 item,
 action, or status, such as groups/single/index-id-{$group_id}.php. In this
 way,
 BP's top-level template hierarchy becomes more flexible for theme devs,
 and
 more closely parallels the template hierarchy used by WordPress.

 Note that this changeset only implements hierarchy for the top-level
 templates.
 Inner template parts may receive a parallel hierarchy in a future version
 of
 BuddyPress.

 Fixes #4639

 Props r-a-y
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4639#comment:53>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list