Make WordPress Core


Ignore:
Timestamp:
10/13/2010 05:05:25 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 for 3.0.

File:
1 copied

Legend:

Unmodified
Added
Removed
  • branches/3.0/wp-content/themes/twentyten/loop-page.php

    r15782 r15787  
    11<?php
    22/**
    3  * The template for displaying all pages.
     3 * The loop that displays a page.
    44 *
    5  * This is the template that displays all pages by default.
    6  * Please note that this is the WordPress construct of pages
    7  * and that other 'pages' on your WordPress site will use a
    8  * different template.
     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.
    911 *
    1012 * @package WordPress
    1113 * @subpackage Twenty_Ten
    12  * @since Twenty Ten 1.0
     14 * @since Twenty Ten 1.2
    1315 */
    14 
    15 get_header(); ?>
    16 
    17         <div id="container">
    18             <div id="content" role="main">
     16?>
    1917
    2018<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
     
    3634                <?php comments_template( '', true ); ?>
    3735
    38 <?php endwhile; ?>
    39 
    40             </div><!-- #content -->
    41         </div><!-- #container -->
    42 
    43 <?php get_sidebar(); ?>
    44 <?php get_footer(); ?>
     36<?php endwhile; // end of the loop. ?>
Note: See TracChangeset for help on using the changeset viewer.