<?php
/**
 * Template for Blog Three
 *
 * @package unbound
 */

?>
<!-- wraper_blog_main -->
<div class="wraper_blog_main style-three">
	<div class="container">
		<!-- row -->
		<div class="row">
			<?php if ( 'nosidebar' === unbound_global_var( 'blog-layout', '', false ) ) { ?>
				<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
			<?php } else { ?>
				<?php if ( 'leftsidebar' === unbound_global_var( 'blog-layout', '', false ) ) { ?>
					<div class="col-lg-9 col-md-9 col-sm-8 col-xs-12 pull-right">
				<?php } elseif ( 'rightsidebar' === unbound_global_var( 'blog-layout', '', false ) ) { ?>
					<div class="col-lg-9 col-md-9 col-sm-8 col-xs-12 pull-left">
				<?php } else { ?>
					<div class="col-lg-9 col-md-9 col-sm-8 col-xs-12">
				<?php } ?>
			<?php } ?>
					<!-- blog_main -->
					<div class="blog_main">
						<?php
						if ( have_posts() ) :
							/* Start the Loop */
							while ( have_posts() ) :
								the_post();

								/*
								 * Include the Post-Format-specific template for the content.
								 * If you want to override this in a child theme, then include a file
								 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
								 */
								get_template_part( 'template-parts/content-three', get_post_format() );
							endwhile;
						else :
							get_template_part( 'template-parts/content', 'none' );
						endif;
						?>
						<?php unbound_pagination(); ?>
					</div>
					<!-- blog_main -->
				</div>
				<?php if ( 'nosidebar' === unbound_global_var( 'blog-layout', '', false ) ) { ?>
				<?php } else { ?>
					<?php if ( 'leftsidebar' === unbound_global_var( 'blog-layout', '', false ) ) { ?>
						<div class="col-lg-3 col-md-3 col-sm-4 col-xs-12 pull-left">
					<?php } elseif ( 'rightsidebar' === unbound_global_var( 'blog-layout', '', false ) ) { ?>
						<div class="col-lg-3 col-md-3 col-sm-4 col-xs-12 pull-right">
					<?php } else { ?>
						<div class="col-lg-3 col-md-3 col-sm-4 col-xs-12">
					<?php } ?>
						<?php get_sidebar(); ?>
					</div>
				<?php } ?>
			</div>
			<!-- row -->
		</div>
	</div>
	<!-- wraper_blog_main -->
