<?php
/**
 * This template is used to display archive posts, e.g. tag post indexes.
 * This template is also the fallback template to 'category.php'.
 *
 * @package Structure Lite
 * @since Structure Lite 1.0
 */

get_header(); ?>

<!-- BEGIN .post class -->
<div <?php post_class(); ?> id="post-<?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 .columns three -->
			<div class="columns three">

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

		<?php } else { ?>

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

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

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

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

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

		<?php } ?>

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

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

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

<?php get_footer(); ?>
