<?php
/**
 *
 * This template is used to display a blog. The content is displayed in post formats.
 *
 * @package Organic Startup
 * @since Organic Startup 1.0
 */

get_header(); ?>

<!-- BEGIN .post class -->
<div <?php post_class(); ?> id="page-<?php the_ID(); ?>">

	<!-- BEGIN .row -->
	<div class="row">

		<!-- BEGIN .content -->
		<div class="content">

		<?php if ( is_active_sidebar( 'sidebar-left' ) && is_active_sidebar( 'sidebar-blog' ) ) { ?>

			<!-- BEGIN .four columns -->
			<div class="four columns">

				<?php get_sidebar( 'left' ); ?>

			<!-- END .four columns -->
			</div>

			<!-- BEGIN .eight columns -->
			<div class="eight columns">

				<!-- BEGIN .post-area -->
				<div id="infinite-container" class="post-area">

					<?php get_template_part( 'content/loop', 'blog' ); ?>

				<!-- END .post-area -->
				</div>

			<!-- END .eight columns -->
			</div>

			<!-- BEGIN .four columns -->
			<div class="four columns">

				<?php get_sidebar( 'blog' ); ?>

			<!-- END .four columns -->
			</div>

		<?php } elseif ( is_active_sidebar( 'sidebar-left' ) ) { ?>

			<!-- BEGIN .four columns -->
			<div class="four columns">

				<?php get_sidebar( 'left' ); ?>

			<!-- END .four columns -->
			</div>

			<!-- BEGIN .twelve columns -->
			<div class="twelve columns">

				<!-- BEGIN .post-area -->
				<div id="infinite-container" class="post-area">

					<?php get_template_part( 'content/loop', 'blog' ); ?>

				<!-- END .post-area -->
				</div>

			<!-- END .twelve columns -->
			</div>

		<?php } elseif ( is_active_sidebar( 'sidebar-blog' ) ) { ?>

			<!-- BEGIN .eleven columns -->
			<div class="columns eleven">

				<!-- BEGIN .post-area -->
				<div class="post-area">

					<?php get_template_part( 'content/loop', 'blog' ); ?>

				<!-- END .post-area -->
				</div>

			<!-- END .eleven columns -->
			</div>

			<!-- BEGIN .five columns -->
			<div class="columns five">

				<?php get_sidebar( 'blog' ); ?>

			<!-- END .five columns -->
			</div>

		<?php } else { ?>

			<!-- BEGIN .sixteen columns -->
			<div class="sixteen columns">

				<!-- BEGIN .post-area no-sidebar -->
				<div class="post-area no-sidebar">

					<?php get_template_part( 'content/loop', 'blog' ); ?>

				<!-- END .post-area no-sidebar -->
				</div>

			<!-- END .sixteen columns -->
			</div>

		<?php } ?>

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

	<!-- END .row -->
	</div>

<!-- END .post class -->
</div>

<?php get_footer(); ?>
