This repository has been archived on 2021-10-26. You can view files and clone it, but cannot push or open issues or pull requests.
biofriction-web/biofriction-theme/template-parts/content-archive.php

40 lines
1.0 KiB
PHP
Raw Permalink Normal View History

2021-02-18 15:27:46 +01:00
<?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>