<?php
/**
 * The template for displaying all pages
 *
 * This is the template that displays all pages by default.
 * Please note that this is the WordPress construct of pages
 * and that other 'pages' on your WordPress site may use a
 * different template.
 *
 * @link https://codex.wordpress.org/Template_Hierarchy
 *
 * @package Edumodo
 */

	$post_id = edumodo_get_id();
	// Prefix
    $prefix = '_edumodo_';
	// Page title enable
	$title_enable = get_post_meta($post_id, $prefix . 'title_enable', true);
get_header(); ?>

	<div id="primary" class="content-area">
		<main id="main" class="site-main">

		<?php do_action('edumodo-bbpress-header-title-breadcrumb'); ?>

			<div id="site-content" class="container edumodo-page">
				<div class="row layout-wrapper <?php echo get_theme_mod( 'edumodo_bbpress_layout', 'no-sidebar' )?>">
					<?php echo do_action('edumodo_layout_column_start', 'edumodo_bbpress_layout'); ?>
					<?php
						while ( have_posts() ) : the_post();

							get_template_part( 'template-parts/content', 'page' );

							// If comments are open or we have at least one comment, load up the comment template.
							if ( comments_open() || get_comments_number() ) :
								comments_template();
							endif;

						endwhile; // End of the loop.
					?>
					<?php echo do_action('edumodo_layout_column_end'); ?>

					<?php echo do_action('edumodo_layout_sidebar', 'edumodo_bbpress_layout', 'bbpress-sidebar', 'bbpress-sidebar-wrapper'); ?>
                    
				</div><!-- .row -->
			</div><!-- .container -->
		</main><!-- #main -->
	</div><!-- #primary -->

<?php
get_footer();
