content-page.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * The template used for displaying page content in page.php
  4. *
  5. * @package Illustratr
  6. */
  7. ?>
  8. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  9. <?php if ( '' != get_the_post_thumbnail() ) : ?>
  10. <div class="entry-thumbnail">
  11. <?php the_post_thumbnail( 'illustratr-featured-image' ); ?>
  12. </div><!-- .entry-thumbnail -->
  13. <?php endif; ?>
  14. <header class="entry-header">
  15. <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
  16. </header><!-- .entry-header -->
  17. <div class="entry-content">
  18. <?php the_content(); ?>
  19. <?php
  20. wp_link_pages( array(
  21. 'before' => '<div class="page-links clear">',
  22. 'after' => '</div>',
  23. 'pagelink' => '<span class="page-link">%</span>',
  24. ) );
  25. ?>
  26. </div><!-- .entry-content -->
  27. <footer class="entry-meta">
  28. <?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
  29. <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'illustratr' ), __( '1 Comment', 'illustratr' ), __( '% Comments', 'illustratr' ) ); ?></span>
  30. <?php endif; ?>
  31. <?php edit_post_link( __( 'Edit', 'illustratr' ), '<span class="edit-link">', '</span>' ); ?>
  32. </footer><!-- .entry-meta -->
  33. </article><!-- #post-## -->