<?php
/**
* The template part for displaying category archive
*
* Learn more: {@link https://codex.wordpress.org/Template_Hierarchy}
*
* @package Biofriction
* @since Biofriction 1.0.0
*/

?>

<article id="post-<?php the_ID(); ?>" <?php post_class('bfr_post'); ?>>
	<div class="bfr_post_content">
		<header>
			<h2 class="entry-title">
				<a href="<?php the_permalink(); ?>" rel="bookmark">
					<?php the_title(); ?>
				</a>
			</h2>
		</header>
		<div class="bfr_post_thumbnail">
			<?php if ( has_post_thumbnail() ) :?>
				<img src="<?php echo get_the_post_thumbnail_url();?>" />
			<?php else :?>
				<img src="<?php echo catch_post_first_image();?>" />
			<?php endif;?>
		</div>
		<footer>
			<div class="excerpt post-excerpt">
				<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"></a>
					<?php echo wp_strip_all_tags( get_the_excerpt(), true ); ?>
			</div>
			<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>" class="button">
				Read more
			</a>
		</footer>
	</div>
</article>