<?php 
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

get_header();

$term = get_queried_object();
?>

</div> <!-- // top_wrap -->

<div class="grid">
	
	<?php 
	if ( function_exists( 'yoast_breadcrumb' ) )  {
		
		yoast_breadcrumb( '<div class="crumbs">','</div>' ); 
	
	}
	?>
	
	<main id="main_internal" class="category ib full_width"><div class="divin">
		<article>
			<h1 class="c1"><?php echo $term->name; ?></h1>
			
			<?php if ( !is_paged() && !empty( $term->description ) ): ?>
			<div class="description runner"><?php echo $term->description; ?></div>
			<?php endif; ?>
			
			<?php if ( have_posts() ): ?>
			
			<section class="content_part">
				
				<?php while (have_posts()): the_post(); ?>
				
				<section class="cat_item"><div class="mock_table">
						
					<?php if ( has_post_thumbnail() ): ?>
					<figure class="td">
						<a href="<?php the_permalink(); ?>">
							<img src="<?php the_post_thumbnail_url( 'cat-size' ); ?>" alt="<?php echo get_post_meta( get_post_thumbnail_id(), '_wp_attachment_image_alt', true ); ?>" />
						</a>
					</figure>
					<?php endif; ?>
					
					<div class="text runner td">
						<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
						<?php echo get_the_excerpt(); ?>
					</div>
					
				</div></section>
				
				<?php endwhile; ?>
				
			</section>
			
			<?php get_template_part('pagination'); ?>
			
			<?php endif; ?>
			
		</article>
	</div></main><!--
--></div>

<?php get_footer(); ?>