Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyten/page.php

    r16630 r17340  
    1818                        <div id="content" role="main">
    1919
    20 <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
    21 
    22                                 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    23                                         <?php if ( is_front_page() ) { ?>
    24                                                 <h2 class="entry-title"><?php the_title(); ?></h2>
    25                                         <?php } else { ?>
    26                                                 <h1 class="entry-title"><?php the_title(); ?></h1>
    27                                         <?php } ?>
    28 
    29                                         <div class="entry-content">
    30                                                 <?php the_content(); ?>
    31                                                 <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
    32                                                 <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?>
    33                                         </div><!-- .entry-content -->
    34                                 </div><!-- #post-## -->
    35 
    36                                 <?php comments_template( '', true ); ?>
    37 
    38 <?php endwhile; ?>
     20                        <?php
     21                        /* Run the loop to output the page.
     22                         * If you want to overload this in a child theme then include a file
     23                         * called loop-page.php and that will be used instead.
     24                         */
     25                        get_template_part( 'loop', 'page' );
     26                        ?>
    3927
    4028                        </div><!-- #content -->
Note: See TracChangeset for help on using the changeset viewer.