content.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * Template part for displaying posts.
  4. *
  5. * @package Dyad
  6. */
  7. ?>
  8. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  9. <header class="entry-header">
  10. <?php the_title( sprintf( '<h1 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h1>' ); ?>
  11. <?php if ( 'post' == get_post_type() ) : ?>
  12. <div class="entry-meta">
  13. <?php dyad_2_posted_on(); ?>
  14. </div><!-- .entry-meta -->
  15. <?php endif; ?>
  16. </header><!-- .entry-header -->
  17. <div class="entry-content">
  18. <?php
  19. /* translators: %s: Name of current post */
  20. the_content( sprintf(
  21. wp_kses( __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'dyad-2' ), array( 'span' => array( 'class' => array() ) ) ),
  22. the_title( '<span class="screen-reader-text">"', '"</span>', false )
  23. ) );
  24. ?>
  25. <?php
  26. wp_link_pages( array(
  27. 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'dyad-2' ),
  28. 'after' => '</div>',
  29. ) );
  30. ?>
  31. </div><!-- .entry-content -->
  32. <?php dyad_2_posted_on(); ?>
  33. </article><!-- #post-## -->