content-page.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. /**
  3. * The template used for displaying page content in page.php
  4. *
  5. * @package Button 2
  6. */
  7. ?>
  8. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  9. <header class="entry-header">
  10. <?php if ( has_post_thumbnail() ) : ?>
  11. <div class="featured-image">
  12. <span class="corners">
  13. <?php the_post_thumbnail( 'button-2-featured' ); ?>
  14. </span>
  15. <a class="shadow" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><span class="screen-reader-text"><?php the_title(); ?></span></a>
  16. </div>
  17. <?php endif; ?>
  18. <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
  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">',
  25. 'after' => '</div>',
  26. 'link_before' => '<span class="active-link">',
  27. 'link_after' => '</span>'
  28. ) );
  29. ?>
  30. </div><!-- .entry-content -->
  31. <?php if ( function_exists( 'button_2_post_flair' ) ) : ?>
  32. <div class="entry-flair">
  33. <?php button_2_post_flair(); ?>
  34. </div><!-- .entry-flair -->
  35. <?php endif; ?>
  36. <footer class="entry-footer">
  37. <?php edit_post_link(
  38. sprintf(
  39. /* translators: %s: Name of current post */
  40. esc_html__( 'Edit %s', 'button-2' ),
  41. the_title( '<span class="screen-reader-text">"', '"</span>', false )
  42. ),
  43. '<span class="edit-link">',
  44. '</span>'
  45. ); ?>
  46. </footer><!-- .entry-footer -->
  47. </article><!-- #post-## -->