#2763 closed enhancement (fixed)
get_xxx() replacement
Reported by: | r-a-y | Owned by: | |
---|---|---|---|
Milestone: | 1.5 | Priority: | normal |
Severity: | Version: | 1.5 | |
Component: | Templates | Keywords: | dev-feedback has-patch |
Cc: |
Description
Anyone see any thing wrong with changing all get_xxx() calls in bp-default to get_xxx('buddypress')?
For example, theme designers can override their regular header.php with header-buddypress.php.
This is primarily for people using bp-template-pack and want a separate look for the BP portion of their site.
If header-buddypress.php doesn't exist, get_header() will always fallback to header.php anyway.
Thoughts?
Attachments (1)
Change History (9)
#2
@
14 years ago
- Keywords dev-feedback added
Trunk added get_xxx (sidebar, header, footer) only a while ago. Themes will need a few updates for 1.3. Once/if/when we get the revised comments styling in, and also improve the main nav menu styling, we need to do a blog post on bpdevel.wordpress.com to let people know about the changes.
On topic: I have no problems with the idea, and it's a neat solution for a question I've seen fairly often on the support. Would like some feedback from another core dev, but, patches welcome ;)
#3
@
14 years ago
I believe all versions of bp-default since BP 1.2 have get_header() and get_footer().
get_sidebar() is the newbie on the block for BP 1.3.
I'll create a patch with all the get_xxx('buddypress') replacements if another core dev says they like the idea ;)
*Sidenote: this is part of my "reimagining" of BP Template Pack. Got an AJAX fix for bp-default coming up in half an hour.
#4
@
14 years ago
If anyone was looking for an AJAX fix... none is needed! :p
Just an error on my part. D'oh!
So by default the calls look for *-buddypress.php falling back to the standard files.
Sounds like that increases flexibility quite nicely and has no consequences for existing themes, win win?