<?php
/**
 * Template part for displaying bbpress pages
 */

get_header();
?>
	<main class="main-wrapper">
		<?php
		$sidebar_position = rivax_get_sidebar_position ('bbpress', 'none');

		/* Start the Loop */
		while ( have_posts() ) :
			the_post();

			?>
            <div class="content-wrapper">
                <div class="rs-p-1"></div>
                <div class="rs-container">
                    <div class="rs-row page-content-wrapper <?php echo 'sidebar-' . $sidebar_position; ?>">
                        <div class="content-container bbpress-container">
                            <div class="bbpress-container-inner">
                                <h1 class="single-bbpress-title"><?php the_title(); ?></h1>
								<?php the_content(); ?>
                            </div>
                        </div>
						<?php if($sidebar_position == 'left' || $sidebar_position == 'right'): ?>
							<?php get_sidebar(); ?>
						<?php endif; ?>
                    </div>
                </div>
            </div>
		<?php
		endwhile; // End of the loop.
		?>
	</main>
<?php
get_footer();
