PageRenderTime 40ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

/wp-content/themes/twentytwelve/single.php

https://bitbucket.org/abnopanda/wordpress
PHP | 33 lines | 17 code | 9 blank | 7 comment | 1 complexity | 028042766142ac0092722d3765878078 MD5 | raw file
  1. <?php
  2. /**
  3. * The Template for displaying all single posts.
  4. *
  5. * @package WordPress
  6. * @subpackage Twenty_Twelve
  7. * @since Twenty Twelve 1.0
  8. */
  9. get_header(); ?>
  10. <div id="primary" class="site-content">
  11. <div id="content" role="main">
  12. <?php while ( have_posts() ) : the_post(); ?>
  13. <?php get_template_part( 'content', get_post_format() ); ?>
  14. <nav class="nav-single">
  15. <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentytwelve' ); ?></h3>
  16. <span class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '&larr;', 'Previous post link', 'twentytwelve' ) . '</span> %title' ); ?></span>
  17. <span class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '&rarr;', 'Next post link', 'twentytwelve' ) . '</span>' ); ?></span>
  18. </nav><!-- .nav-single -->
  19. <?php comments_template( '', true ); ?>
  20. <?php endwhile; // end of the loop. ?>
  21. </div><!-- #content -->
  22. </div><!-- #primary -->
  23. <?php get_sidebar(); ?>
  24. <?php get_footer(); ?>