content-page.php 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * The template used for displaying page content in page.php
  4. *
  5. * @package Spun
  6. */
  7. ?>
  8. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  9. <header class="entry-header">
  10. <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
  11. </header><!-- .entry-header -->
  12. <div class="entry-content">
  13. <?php the_content(); ?>
  14. <?php wp_link_pages( array( 'before' => '<div class="page-links">', 'after' => '</div>', 'link_before' => '<span class="active-link">', 'link_after' => '</span>' ) ); ?>
  15. </div><!-- .entry-content -->
  16. <footer class="entry-meta">
  17. <?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
  18. <span class="comments-link">
  19. <a href="#comments-toggle">
  20. <span class="tail"></span>
  21. <?php echo comments_number( __( '+', 'spun' ), __( '1', 'spun' ), __( '%', 'spun' ) ); ?>
  22. </a>
  23. </span>
  24. <?php endif; ?>
  25. <div class="entry-meta-wrapper">
  26. <?php edit_post_link( __( 'Edit', 'spun' ), '<span class="edit-link">', '</span>' ); ?>
  27. </div>
  28. </footer><!-- .entry-meta -->
  29. </article><!-- #post-<?php the_ID(); ?> -->