content-page.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * The template used for displaying page content in page.php
  4. *
  5. * @package Libre 2
  6. */
  7. ?>
  8. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  9. <?php if ( has_post_thumbnail() ) { ?>
  10. <div class="post-thumbnail">
  11. <?php the_post_thumbnail( 'libre-2-post-thumbnail' ); ?>
  12. </div>
  13. <?php } ?>
  14. <header class="entry-header">
  15. <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
  16. <?php if ( is_page_template( 'right-column-page.php' ) ) : ?>
  17. <?php edit_post_link( sprintf( esc_html__( 'Edit %1$s', 'libre-2' ), '<span class="screen-reader-text">' . the_title_attribute( 'echo=0' ) . '</span>' ), '<span class="edit-link">', '</span>' ); ?>
  18. <?php endif; ?>
  19. </header><!-- .entry-header -->
  20. <div class="entry-content">
  21. <?php the_content(); ?>
  22. <?php
  23. wp_link_pages( array(
  24. 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'libre-2' ),
  25. 'after' => '</div>',
  26. ) );
  27. ?>
  28. </div><!-- .entry-content -->
  29. <?php if ( ! is_page_template( 'right-column-page.php' ) ) : ?>
  30. <footer class="entry-footer">
  31. <?php edit_post_link( sprintf( esc_html__( 'Edit %1$s', 'libre-2' ), '<span class="screen-reader-text">' . the_title_attribute( 'echo=0' ) . '</span>' ), '<span class="edit-link">', '</span>' ); ?>
  32. </footer><!-- .entry-footer -->
  33. <?php endif; ?>
  34. </article><!-- #post-## -->