Skip to:
Content

bbPress.org

Opened 11 years ago

Last modified 11 years ago

#2377 new enhancement

Better Extra Templates Structure

Reported by: alex-ye's profile alex-ye Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 2.3.2
Component: Appearance - Theme Compatibility Keywords: 2nd-opinion
Cc: mercijavier@…

Description

bbPress has 23 extra templates by default, all of them are compatible with the bundled themes. No problem :) But when we want to use bbPress with custom themes it's really hard, because you have to edit all this 23 extra templates to match your theme structure.

Suggestion:

There are many ideas to make this easier and more efficient, one of those is to introduce a new template let's called it 'bbp-structure' as an example, The bbp-structure should content the abstract template layout such as the Header,Sidebar and Footer with a primary hook 'bbp_primary_content' as an example.

after that we convert all the existing 23 templates to functions and add them to the 'bbp_primary_content'.

A similar technique can be found in the Genesis Framework.

Or Momtaz Framework
https://github.com/nash-ye/Momtaz-Framework

See the structure.php and index.php files for better understanding:

https://github.com/nash-ye/Momtaz-Framework/blob/master/momtaz/structure.php

https://github.com/nash-ye/Momtaz-Framework/blob/master/momtaz/index.php

Change History (3)

#1 @johnjamesjacoby
11 years ago

Right now, I think an additional layer of complexity on top of the existing theme compatibility code is premature, though I could see it going a direction like this eventually.

One major hurdle, though, is separating the output from the query; we've hacked around it bbp_parse_query, but I think that function is going to grow and grow.

Moving to future release for now, and we'll reassess probably in 2.6 or 2.7.

#2 @johnjamesjacoby
11 years ago

  • Milestone changed from Awaiting Review to Future Release

#3 @mercime
11 years ago

  • Cc mercijavier@… added
Note: See TracTickets for help on using tickets.