content-page.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * The template used for displaying page content in page.php
  4. *
  5. * @package Independent_Publisher_2
  6. */
  7. ?>
  8. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  9. <?php independent_publisher_2_entry_header(); ?>
  10. <div class="entry-content">
  11. <?php the_content(); ?>
  12. </div><!-- .entry-content -->
  13. <?php if ( get_edit_post_link() || wp_link_pages( array( 'echo' => false ) ) ) : ?>
  14. <div class="entry-footer">
  15. <?php
  16. wp_link_pages( array(
  17. 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'independent-publisher-2' ),
  18. 'after' => '</div>',
  19. 'link_before' => '<span>',
  20. 'link_after' => '</span>',
  21. ) );
  22. edit_post_link(
  23. sprintf(
  24. /* translators: %s: Name of current post */
  25. esc_html__( 'Edit %s', 'independent-publisher-2' ),
  26. the_title( '<span class="screen-reader-text">"', '"</span>', false )
  27. ),
  28. '<span class="post-edit-link">',
  29. '</span>'
  30. );
  31. ?>
  32. </div><!-- .entry-footer -->
  33. <?php endif; ?>
  34. </article><!-- #post-## -->