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.php

30 lines
644 B
PHP

<?php
/**
* The default template for displaying content
*
* Used for both single and index/archive/search.
*
* @package Biofriction
* @since Biofriction 1.0.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header>
<?php
if ( is_single() ) {
the_title( '<h1 class="entry-title">', '</h1>' );
} else {
the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
}
?>
</header>
<div class="entry-content">
<?php the_content(); ?>
</div>
<footer>
<?php get_template_part( 'template-parts/navigation', 'prevnext' ); ?>
</footer>
</article>