<?php
/**
 * This is the template that displays all widgets included in homepage widget area.
 *
 * @package MatrixAddons
 * @subpackage trainify
 * @since 1.0.0
 */

/**
 * Home Top Section Area
 *
 * @since 1.0.0
 */

get_template_part( 'template-parts/parts/banner', 'slider' );

get_template_part( 'template-parts/parts/main', 'services' );

if ( is_active_sidebar( 'trainify_home_content_area' ) ) {
	?>
	<div class="tff-home-content-section tff-clearfix">
		<div class="tff-container-fluid">
			<?php dynamic_sidebar( 'trainify_home_content_area' ); ?>
		</div>
	</div><!-- .tff-home-top-section -->
	<?php
}

/**
 * Home Middle Section Area
 *
 * @since 1.0.0
 */
if ( is_active_sidebar( 'trainify_home_middle_section_area' ) ) {
	?>
	<div class="tff-home-middle-section  tff-clearfix">
		<div class="tff-container">
			<div class="middle-primary widget-area trainify-sticky-wraper">
				<?php dynamic_sidebar( 'trainify_home_middle_section_area' ); ?>
			</div><!-- .middle-primary -->
			<div class="middle-aside sidebar-main-area widget-area trainify-sticky-wraper">
				<?php dynamic_sidebar( 'trainify_home_middle_aside_area' ); ?>
			</div><!-- .middle-aside -->
		</div>
	</div><!-- .tff-home-middle-section -->
	<?php
}

/**
 * Home Bottom Section Area
 *
 * @since 1.0.0
 */
if ( is_active_sidebar( 'trainify_home_bottom_section_area' ) ) {
	?>
	<div class="tff-home-bottom-section">
		<div class="tff-container-fluid">
			<?php dynamic_sidebar( 'trainify_home_bottom_section_area' ); ?>
		</div>
	</div><!-- .tff-home-bottom-section -->

	<?php

}
