PageRenderTime 53ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

/wp-content/themes/twentyten/loop-page.php

https://bitbucket.org/abnopanda/wordpress
PHP | 36 lines | 17 code | 5 blank | 14 comment | 4 complexity | 87e2cab875eb5731e31a475e1749a5a5 MD5 | raw file
  1. <?php
  2. /**
  3. * The loop that displays a page.
  4. *
  5. * The loop displays the posts and the post content. See
  6. * http://codex.wordpress.org/The_Loop to understand it and
  7. * http://codex.wordpress.org/Template_Tags to understand
  8. * the tags used in it.
  9. *
  10. * This can be overridden in child themes with loop-page.php.
  11. *
  12. * @package WordPress
  13. * @subpackage Twenty_Ten
  14. * @since Twenty Ten 1.2
  15. */
  16. ?>
  17. <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  18. <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  19. <?php if ( is_front_page() ) { ?>
  20. <h2 class="entry-title"><?php the_title(); ?></h2>
  21. <?php } else { ?>
  22. <h1 class="entry-title"><?php the_title(); ?></h1>
  23. <?php } ?>
  24. <div class="entry-content">
  25. <?php the_content(); ?>
  26. <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
  27. <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?>
  28. </div><!-- .entry-content -->
  29. </div><!-- #post-## -->
  30. <?php comments_template( '', true ); ?>
  31. <?php endwhile; // end of the loop. ?>