<?php
/**
 * Template for displaying post header, content and footer
 *
 * @package Reginald
 * @since   Reginald 2.0
 */

?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

  <header class="entry-header">
    <?php the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '">', '</a></h2>' ); ?>
    <?php reginald_entry_meta(); ?>
    <?php edit_post_link(); ?>
  </header>

  <?php the_post_thumbnail( 'reginald-featured-image' ); ?>

  <section class="entry-content">
    <?php
    if ( get_theme_mod( 'display_content', false ) ) {
      the_content();
    } else {
      the_excerpt();
    }
    ?>
  </section><!-- .entry-content -->

</article>
