]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-content/themes/twentyten/onecolumn-page.php
Wordpress 3.1
[autoinstalls/wordpress.git] / wp-content / themes / twentyten / onecolumn-page.php
index 90b1abf3a46300b8655c5bd6154bf794e6a07be4..1a8d5b7e27125ea93c74e2d1ffcc3b15fb2a0f56 100644 (file)
@@ -17,20 +17,13 @@ get_header(); ?>
                <div id="container" class="one-column">
                        <div id="content" role="main">
 
-<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
-
-                               <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
-                                       <h1 class="entry-title"><?php the_title(); ?></h1>
-                                       <div class="entry-content">
-                                               <?php the_content(); ?>
-                                               <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
-                                               <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?>
-                                       </div><!-- .entry-content -->
-                               </div><!-- #post-## -->
-
-                               <?php comments_template( '', true ); ?>
-
-<?php endwhile; ?>
+                       <?php
+                       /* Run the loop to output the page.
+                        * If you want to overload this in a child theme then include a file
+                        * called loop-page.php and that will be used instead.
+                        */
+                        get_template_part( 'loop', 'page' );
+                       ?>
 
                        </div><!-- #content -->
                </div><!-- #container -->