Make WordPress Core


Ignore:
Timestamp:
10/09/2010 09:17:42 AM (14 years ago)
Author:
nacin
Message:

Use get_template_part() for single.php, attachment.php, page.php, and our page template in Twenty Ten. Introduces loop-page/single/attachment.php. props koopersmith, fixes #15078.

File:
1 edited

Legend:

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

    r15226 r15762  
    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                     <h1 class="entry-title"><?php the_title(); ?></h1>
    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 
    31                 <?php comments_template( '', true ); ?>
    32 
    33 <?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            ?>
    3427
    3528            </div><!-- #content -->
Note: See TracChangeset for help on using the changeset viewer.