biofriction-wp-theme/template-parts/content.php

31 lines
702 B
PHP
Raw Permalink Normal View History

2021-02-18 15:27:46 +01:00
<?php
/**
* The default template for displaying content
*
* Used for both single and index/archive/search.
*
* @package Biofriction
* @since Biofriction 1.0.0
*/
?>
<?php get_template_part( 'template-parts/tag-cloud' ); ?>
2021-02-18 15:27:46 +01:00
<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>