[ Root ] [ Search ] [ Index ]

PHP Cross Reference of WordPress 3.0

Provided by Yoast

title

Body

[close]

/wp-content/themes/twentyten/ -> page.php (source)

   1  <?php
   2  /**
   3   * The template for displaying all pages.
   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.
   9   *
  10   * @package WordPress
  11   * @subpackage Twenty_Ten
  12   * @since Twenty Ten 1.0
  13   */
  14  
  15  get_header(); ?>
  16  
  17          <div id="container">
  18              <div id="content" role="main">
  19  
  20  <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  21  
  22                  <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  23                      <?php if ( is_front_page() ) { ?>
  24                          <h2 class="entry-title"><?php the_title(); ?></h2>
  25                      <?php } else { ?>    
  26                          <h1 class="entry-title"><?php the_title(); ?></h1>
  27                      <?php } ?>                
  28  
  29                      <div class="entry-content">
  30                          <?php the_content(); ?>
  31                          <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
  32                          <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?>
  33                      </div><!-- .entry-content -->
  34                  </div><!-- #post-## -->
  35  
  36                  <?php comments_template( '', true ); ?>
  37  
  38  <?php endwhile; ?>
  39  
  40              </div><!-- #content -->
  41          </div><!-- #container -->
  42  
  43  <?php get_sidebar(); ?>
  44  <?php get_footer(); ?>


Generated: Thu Oct 14 05:11:12 2010 Cross-referenced by PHPXref 0.7