<?php
/**
 * BuddyPress Activity templates
 *
 * @since 2.3.0
 * @version 6.0.0
 */
use Elementor\Plugin;
?>
	<?php 
		if(defined('ELEMENTOR_VERSION') ):
		$selected_template_id = get_theme_mod('edumodo_choose_elementor_templates', '');
		echo Plugin::$instance->frontend->get_builder_content($selected_template_id, true);
		endif;
	?>

	<?php bp_nouveau_before_activity_directory_content(); ?>

	<?php if ( is_user_logged_in() ) : ?>

		<?php bp_get_template_part( 'activity/post-form' ); ?>

	<?php endif; ?>

	<?php bp_nouveau_template_notices(); ?>

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

		<?php bp_get_template_part( 'common/nav/directory-nav' ); ?>

	<?php endif; ?>

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

				<?php bp_get_template_part( 'common/search-and-filters-bar' ); ?>

				<?php bp_nouveau_activity_hook( 'before_directory', 'list' ); ?>

				<div id="activity-stream" class="activity" data-bp-list="activity">

						<div id="bp-ajax-loader"><?php bp_nouveau_user_feedback( 'directory-activity-loading' ); ?></div>

				</div><!-- .activity -->

				<?php bp_nouveau_after_activity_directory_content(); ?>
			<?php do_action('edumodo_layout_column_end'); ?>
			<?php do_action('edumodo_layout_sidebar', 'edumodo_buddyPress_activity_home_layout', 'buddypress-activity-list-sidebar', 'buddypress-activity-home-sidebar-wrapper'); ?>
		</div>

	</div><!-- // .screen-content -->

	<?php 
	if(!defined('BP_PLATFORM_VERSION')){
		bp_nouveau_after_directory_page(); 
	}
	?>