<?php
/**
 * The template for displaying archive pages.
 *
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 * @package qube
 */

get_header(); ?>

	<div id="page-title-pro">
		<div class="width-container-pro">
			<h1 class="entry-title-pro"><?php if (is_tax('portfolio-category')) {
					$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
					$tax_term_breadcrumb_taxonomy_slug = $term->taxonomy;
					echo '' . $term->name . '';
				}
				?></h1>
			
			<?php the_archive_description( '<h4 class="progression-sub-title">', '</h4>' ); ?>
			
			<div class="clearfix-pro"></div>
		</div>
	</div><!-- #page-title-pro -->
	
	<div id="content-pro" class="site-content">
		<div class="width-container-pro-test">
			
			
			<?php if ( have_posts() ) : ?>
				
				<div class="progression-masonry-overflow <?php echo esc_attr(get_theme_mod('progression_studios_portfolio_layout')); ?>">
					<div class="progression-masonry-margins" style="margin-left:<?php echo esc_attr(get_theme_mod('progression_studios_portfolio_gap', '0px')); ?>; margin-right:<?php echo esc_attr(get_theme_mod('progression_studios_portfolio_gap', '0px')); ?>;">
						<div class="progression-masonry">
								<?php while ( have_posts() ) : the_post(); ?>
								
									<div class="progression-masonry-item progression-masonry-col-<?php echo esc_attr(get_theme_mod( 'progression_studios_portfolio_columns', '3')); ?>">
										<?php get_template_part( 'template-parts/content', 'portfolio' ); ?>
									</div><!-- close .progression-masonry-item -->
								
								<?php endwhile; ?>
								<div class="clearfix-pro"></div>
						</div><!-- close .progression-masonry -->
					</div><!-- close .progression-masonry-margins -->
				</div><!-- close .progression-masonry-overflow -->
								
				
				<?php progression_studios_show_pagination_links_pro(); ?>
				
			<?php else : ?>
				
				<?php get_template_part( 'template-parts/content', 'none' ); ?>
				
			<?php endif; ?>
			
		<div class="clearfix-pro"></div>
		</div><!-- close .width-container-pro -->
	</div><!-- #content-pro -->
<?php get_footer(); ?>