31 lines
702 B
PHP
31 lines
702 B
PHP
<?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' ); ?>
|
|
|
|
<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>
|