All locate_template() calls in the theme should be wrapped with something like bp_locate_theme() so the location of the BP specific templates can be filtered. How to handle calls for native WP templates like sidebar.php is a more complicated issue.
get_template_part() looks for the template names it builds from the slug and name params in the theme root, so it would get messy very quickly and does not jive with how BP currently stores templates in sub folders.
Marshall 12:21 pm on January 12, 2011 Permalink |
All locate_template() calls in the theme should be wrapped with something like bp_locate_theme() so the location of the BP specific templates can be filtered. How to handle calls for native WP templates like sidebar.php is a more complicated issue.
Marshall 12:22 pm on January 12, 2011 Permalink |
make that bp_locate_template()
Ray 7:40 am on January 27, 2011 Permalink |
Something like this definitely needs to be in BP 1.3.
Ptah Dunbar 12:00 pm on February 22, 2011 Permalink |
instead of introducing a new template tag, just use get_template_part(). You can already override any bp screen from the bp_located_template filter.
Marshall 1:29 pm on February 22, 2011 Permalink
get_template_part() looks for the template names it builds from the slug and name params in the theme root, so it would get messy very quickly and does not jive with how BP currently stores templates in sub folders.
Ray 9:49 pm on February 24, 2011 Permalink
Marshall is right.
Looks like something like this might happen in BP 1.4:
http://trac.buddypress.org/ticket/2649
Playing the waiting game with WP core I guess.