1. <?php
  2. /**
  3. * The Template for displaying all single posts.
  4. *
  5. * @package Cryout Creations
  6. * @subpackage Zombie Apocalypse
  7. * @since Zombie Apocalypse 0.5
  8. */
  9.  
  10. get_header(); ?>
  11.  
  12. <div id="container">
  13. <div id="content" role="main">
  14.  
  15. <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  16.  
  17. <!-- #nav-above -->
  18.  
  19.  
  20. <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  21. <h1 class="entry-title"><?php the_title(); ?></h1>
  22.  
  23. <div class="entry-meta">
  24. <?php zombie_posted_in(); ?> <?php zombie_posted_on(); ?>
  25. </div><!-- .entry-meta -->
  26.  
  27. <div class="entry-content">
  28. <?php the_content(); ?>
  29. <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'zombie' ), 'after' => '</div>' ) ); ?>
  30. </div><!-- .entry-content -->
  31.  
  32. <?php if ( get_the_author_meta( 'description' ) ) : // If a user has filled out their description, show a bio on their entries ?>
  33. <div id="entry-author-info">
  34. <div id="author-avatar">
  35. <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'zombie_author_bio_avatar_size', 60 ) ); ?>
  36. </div><!-- #author-avatar -->
  37. <div id="author-description">
  38. <h2><?php printf( esc_attr__( 'About %s', 'zombie' ), get_the_author() ); ?></h2>
  39. <?php the_author_meta( 'description' ); ?>
  40. <div id="author-link">
  41. <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>">
  42. <?php printf( __( 'View all posts by %s <span class="meta-nav">&rarr;</span>', 'zombie' ), get_the_author() ); ?>
  43. </a>
  44. </div><!-- #author-link -->
  45. </div><!-- #author-description -->
  46. </div><!-- #entry-author-info -->
  47. <?php endif; ?>
  48.  
  49. <div class="entry-utility">
  50. <?php edit_post_link( __( 'Edit', 'zombie' ), '<span class="edit-link">', '</span>' ); ?>
  51. </div><!-- .entry-utility -->
  52. </div><!-- #post-## -->
  53.  
  54. <div id="nav-below" class="navigation">
  55.  
  56.  
  57. </div><!-- #nav-below -->
  58.  
  59. <?php comments_template( '', true ); ?>
  60.  
  61. <?php endwhile; // end of the loop. ?>
  62.  
  63. </div><!-- #content -->
  64. </div><!-- #container -->
  65.  
  66. <?php get_sidebar(); ?>
  67. <?php get_footer(); ?>