<?php
/**
 * BuddyPress - Groups Home
 *
 * @since 3.0.0
 * @version 3.0.0
 */

if ( bp_has_groups() ) :
	while ( bp_groups() ) :
		bp_the_group();
	?>

		<?php bp_nouveau_group_hook( 'before', 'home_content' ); ?>

		<div id="item-header" role="complementary" data-bp-item-id="<?php bp_group_id(); ?>" data-bp-item-component="groups" class="groups-header single-headers">

			<?php bp_nouveau_group_header_template_part(); ?>

		</div><!-- #item-header -->

		<div class="bp-wrap">

				<div class="row layout-wrapper <?php echo get_theme_mod( 'edumodo_buddyPress_group_single_layout', 'no-sidebar' )?>">
					<?php do_action('edumodo_layout_column_start', 'edumodo_buddyPress_group_single_layout'); ?>

					<?php //if ( ! bp_nouveau_is_object_nav_in_sidebar() ) : ?>

						<?php bp_get_template_part( 'groups/single/parts/item-nav' ); ?>

					<?php //endif; ?>

					<div id="item-body" class="item-body">

						<?php bp_nouveau_group_template_part(); ?>

					</div><!-- #item-body -->
					<?php do_action('edumodo_layout_column_end'); ?>
					<?php do_action('edumodo_layout_sidebar', 'edumodo_buddyPress_group_single_layout', 'buddypress-group-single-sidebar', 'buddypress-group-single-sidebar-wrapper'); ?>
				</div>

		</div><!-- // .bp-wrap -->

		<?php bp_nouveau_group_hook( 'after', 'home_content' ); ?>

	<?php endwhile; ?>

<?php
endif;
