[Bb-trac] Re: [bbPress] #590: Seperate Sidebar and Front Page
bbPress
bb-trac at lists.bbpress.org
Sun Jul 6 06:27:52 GMT 2008
#590: Seperate Sidebar and Front Page
-------------------------+--------------------------------------------------
Reporter: bbolman | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 1.0
Component: Front-end | Version:
Severity: normal | Resolution:
Keywords: |
-------------------------+--------------------------------------------------
Comment (by jenks):
How does WP do this... I don't recall having to denote left and right
sidebars. I would think CSS could handle taking care of some of
that...however I do see your problem when it is a 3 column layout. I still
think that inside of sidebar.php (which would be called by get_sidebar();)
it would just require a designer to create separate divs and place
accordingly. It would however require that get_sidebar(); is placed in a
manner not to trap itself inside of the main forum area I believe.
As I was typing that I also had another thought come to mind. If it can't
be handled outside of the creating separate functions, couldn't you pass
an argument to the get_sidebar();. Something like <?php
get_sidebar("left"); ?>... this would just require the function to be:
function get_sidebar($position){
switch $position {
case 'left':
ENTER APPROPRIATE CODE HERE;
case 'right':
ENTER CODE;
}
I'm a pretty novice PHP developer but this way would be a DRYer solution
to adding sidebar positioning.
--
Ticket URL: <http://trac.bbpress.org/ticket/590#comment:2>
bbPress <http://bbpress.org/>
Innovative forum development
More information about the Bb-trac
mailing list