<?php
/**
 * The template for displaying archive pages
 *
 */

get_header(); ?>
<?php $width = is_category('videos') ? "medium-12" : "medium-8";?>

<section>

	<div class="row">
		<div class="<?php echo $width;?> column">

			<?php if ( have_posts() ) : ?>
				<div class="page-title capitalize"><?php single_cat_title( '<h1 class="bold">', '</h1>' )?></div>
			<?php endif; ?>

			<div class="row">
				<?php
				if ( have_posts() ) : ?>
					
					<?php
					/* Start the Loop */
					while ( have_posts() ) : the_post();?>
						
							<?php get_template_part( 'template-parts/post/content', get_post_format() );?>
						
					<?php endwhile;?>
					<div class="column text-center"><?php echo wp_pagenavi();?></div>

				<?php else :

					get_template_part( 'template-parts/post/content', 'none' );?>
				

				<?php endif; ?>
			</div>
			
		</div>
		<?php if (!is_category('videos')):?>
			<div class="medium-3 column">
				<?php get_sidebar(); ?>
			</div>
		<?php endif;?>
		</div>
</section>


<?php get_footer();
