<?php
/*
Template Name: Full Width Template
*/
?>
<?php
$eltdf_sidebar_layout = theaisle_elated_sidebar_layout();

get_header();
theaisle_elated_get_title();
get_template_part( 'slider' );
do_action('theaisle_elated_action_before_main_content');
?>

<div class="eltdf-full-width">
    <?php do_action( 'theaisle_elated_action_after_container_open' ); ?>
	<div class="eltdf-full-width-inner">
        <?php do_action( 'theaisle_elated_action_after_container_inner_open' ); ?>
		<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
			<div class="eltdf-grid-row">
				<div <?php echo theaisle_elated_get_content_sidebar_class(); ?>>
					<?php
						the_content();
						do_action( 'theaisle_elated_action_page_after_content' );
					?>
				</div>
				<?php if ( $eltdf_sidebar_layout !== 'no-sidebar' ) { ?>
					<div <?php echo theaisle_elated_get_sidebar_holder_class(); ?>>
						<?php get_sidebar(); ?>
					</div>
				<?php } ?>
			</div>
		<?php endwhile; endif; ?>
        <?php do_action( 'theaisle_elated_action_before_container_inner_close' ); ?>
	</div>

    <?php do_action( 'theaisle_elated_action_before_container_close' ); ?>
</div>

<?php get_footer(); ?>