]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-content/themes/twentyten/page.php
WordPress 3.4.2
[autoinstalls/wordpress.git] / wp-content / themes / twentyten / page.php
index a6081c80d752c56eca78ea05a88438891ba9f3d1..1a5504236fc729c691731f1f9d065cfc43d40426 100644 (file)
@@ -17,25 +17,13 @@ get_header(); ?>
                <div id="container">
                        <div id="content" role="main">
 
-<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
-
-                               <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
-                                       <?php if ( is_front_page() ) { ?>
-                                               <h2 class="entry-title"><?php the_title(); ?></h2>
-                                       <?php } else { ?>
-                                               <h1 class="entry-title"><?php the_title(); ?></h1>
-                                       <?php } ?>
-
-                                       <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 -->