Changeset 15762
- Timestamp:
- 10/09/2010 09:17:42 AM (14 years ago)
- Location:
- trunk/wp-content/themes/twentyten
- Files:
-
- 2 added
- 1 edited
- 2 copied
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyten/loop-attachment.php
r15758 r15762 1 1 <?php 2 2 /** 3 * The template for displaying attachments. 3 * The loop that displays an attachment. 4 * 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-attachment.php. 4 11 * 5 12 * @package WordPress 6 13 * @subpackage Twenty_Ten 7 * @since Twenty Ten 1. 014 * @since Twenty Ten 1.2 8 15 */ 9 10 get_header(); ?> 11 12 <div id="container" class="single-attachment"> 13 <div id="content" role="main"> 16 ?> 14 17 15 18 <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> … … 111 114 <?php comments_template(); ?> 112 115 113 <?php endwhile; ?> 114 115 </div><!-- #content --> 116 </div><!-- #container --> 117 118 <?php get_footer(); ?> 116 <?php endwhile; // end of the loop. ?> -
trunk/wp-content/themes/twentyten/loop-page.php
r15758 r15762 1 1 <?php 2 2 /** 3 * The template for displaying all pages.3 * The loop that displays a page. 4 4 * 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. 9 11 * 10 12 * @package WordPress 11 13 * @subpackage Twenty_Ten 12 * @since Twenty Ten 1. 014 * @since Twenty Ten 1.2 13 15 */ 14 15 get_header(); ?> 16 17 <div id="container"> 18 <div id="content" role="main"> 16 ?> 19 17 20 18 <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> … … 36 34 <?php comments_template( '', true ); ?> 37 35 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. ?> -
trunk/wp-content/themes/twentyten/loop-single.php
r15758 r15762 1 1 <?php 2 2 /** 3 * The Template for displaying all single posts. 3 * The loop that displays a single post. 4 * 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-single.php. 4 11 * 5 12 * @package WordPress 6 13 * @subpackage Twenty_Ten 7 * @since Twenty Ten 1. 014 * @since Twenty Ten 1.2 8 15 */ 9 10 get_header(); ?> 11 12 <div id="container"> 13 <div id="content" role="main"> 16 ?> 14 17 15 18 <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> … … 63 66 64 67 <?php endwhile; // end of the loop. ?> 65 66 </div><!-- #content -->67 </div><!-- #container -->68 69 <?php get_sidebar(); ?>70 <?php get_footer(); ?> -
trunk/wp-content/themes/twentyten/onecolumn-page.php
r15226 r15762 18 18 <div id="content" role="main"> 19 19 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 ?> 34 27 35 28 </div><!-- #content -->
Note: See TracChangeset
for help on using the changeset viewer.