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

/htdocs/wp-content/themes/phc/loop-single.php

https://bitbucket.org/dkrzos/phc
PHP | 38 lines | 17 code | 14 blank | 7 comment | 2 complexity | c1b2ea885cb528bc96d3d8b7549394e4 MD5 | raw file
Possible License(s): GPL-2.0
  1. <?php
  2. /**
  3. * The loop that displays a single post.
  4. *
  5. * @package WordPress
  6. * @subpackage Starkers
  7. * @since Starkers HTML5 3.2
  8. */
  9. ?>
  10. <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  11. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  12. <header>
  13. <h1><?php the_title(); ?></h1>
  14. <?php starkers_posted_on(); ?>
  15. </header>
  16. <?php the_content(); ?>
  17. <?php wp_link_pages( array( 'before' => '<nav>' . _e( 'Pages:', 'starkers' ), 'after' => '</nav>' ) ); ?>
  18. </article>
  19. <nav>
  20. <span class="older"><?php previous_post_link( '%link', _x( '&lt; Poprzedni wpis', 'Previous post link', 'starkers' ) ); ?></span>
  21. <span class="newer"><?php next_post_link( '%link', _x( 'Następny wpis &gt;', 'Next post link', 'starkers' )); ?></span>
  22. </nav>
  23. <?php //comments_template( '', true ); ?>
  24. <?php endwhile; // end of the loop. ?>