content-single.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php declare( strict_types = 1 ); ?>
  2. <?php
  3. /**
  4. * Template part for displaying posts
  5. *
  6. * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
  7. *
  8. * @package Seedlet
  9. * @since 1.0.0
  10. */
  11. ?>
  12. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  13. <header class="entry-header default-max-width">
  14. <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
  15. <?php if ( ! is_page() ) : ?>
  16. <div class="entry-meta">
  17. <?php seedlet_entry_meta_header(); ?>
  18. </div><!-- .meta-info -->
  19. <?php endif; ?>
  20. </header>
  21. <?php seedlet_post_thumbnail(); ?>
  22. <div class="entry-content">
  23. <?php
  24. the_content(
  25. sprintf(
  26. wp_kses(
  27. /* translators: %s: Name of current post. Only visible to screen readers */
  28. __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'seedlet' ),
  29. array(
  30. 'span' => array(
  31. 'class' => array(),
  32. ),
  33. )
  34. ),
  35. get_the_title()
  36. )
  37. );
  38. wp_link_pages(
  39. array(
  40. 'before' => '<div class="page-links">' . __( 'Pages:', 'seedlet' ),
  41. 'after' => '</div>',
  42. )
  43. );
  44. ?>
  45. </div><!-- .entry-content -->
  46. <footer class="entry-footer default-max-width">
  47. <?php seedlet_entry_meta_footer(); ?>
  48. </footer><!-- .entry-footer -->
  49. <?php seedlet_author_bio(); ?>
  50. </article><!-- #post-${ID} -->