web/wp-content/themes/twentyten/loop-page.php
changeset 194 32102edaa81b
equal deleted inserted replaced
193:2f6f6f7551ca 194:32102edaa81b
       
     1 <?php
       
     2 /**
       
     3  * The loop that displays a page.
       
     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-page.php.
       
    11  *
       
    12  * @package WordPress
       
    13  * @subpackage Twenty_Ten
       
    14  * @since Twenty Ten 1.2
       
    15  */
       
    16 ?>
       
    17 
       
    18 <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
       
    19 
       
    20 				<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
       
    21 					<?php if ( is_front_page() ) { ?>
       
    22 						<h2 class="entry-title"><?php the_title(); ?></h2>
       
    23 					<?php } else { ?>
       
    24 						<h1 class="entry-title"><?php the_title(); ?></h1>
       
    25 					<?php } ?>
       
    26 
       
    27 					<div class="entry-content">
       
    28 						<?php the_content(); ?>
       
    29 						<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
       
    30 						<?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?>
       
    31 					</div><!-- .entry-content -->
       
    32 				</div><!-- #post-## -->
       
    33 
       
    34 				<?php comments_template( '', true ); ?>
       
    35 
       
    36 <?php endwhile; // end of the loop. ?>