[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentythirteen/ -> 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 and that other
   7   * 'pages' on your WordPress site will use a different template.
   8   *
   9   * @package WordPress
  10   * @subpackage Twenty_Thirteen
  11   * @since Twenty Thirteen 1.0
  12   */
  13  
  14  get_header(); ?>
  15  
  16      <div id="primary" class="content-area">
  17          <div id="content" class="site-content" role="main">
  18  
  19              <?php
  20              // Start the loop.
  21              while ( have_posts() ) :
  22                  the_post();
  23                  ?>
  24  
  25                  <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  26                      <header class="entry-header">
  27                          <?php if ( has_post_thumbnail() && ! post_password_required() ) : ?>
  28                          <div class="entry-thumbnail">
  29                              <?php the_post_thumbnail(); ?>
  30                          </div>
  31                          <?php endif; ?>
  32  
  33                          <h1 class="entry-title"><?php the_title(); ?></h1>
  34                      </header><!-- .entry-header -->
  35  
  36                      <div class="entry-content">
  37                          <?php the_content(); ?>
  38                          <?php
  39                          wp_link_pages(
  40                              array(
  41                                  'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>',
  42                                  'after'       => '</div>',
  43                                  'link_before' => '<span>',
  44                                  'link_after'  => '</span>',
  45                              )
  46                          );
  47                          ?>
  48                      </div><!-- .entry-content -->
  49  
  50                      <footer class="entry-meta">
  51                          <?php edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' ); ?>
  52                      </footer><!-- .entry-meta -->
  53                  </article><!-- #post -->
  54  
  55                  <?php comments_template(); ?>
  56              <?php endwhile; ?>
  57  
  58          </div><!-- #content -->
  59      </div><!-- #primary -->
  60  
  61  <?php get_sidebar(); ?>
  62  <?php get_footer(); ?>


Generated : Sun Dec 22 08:20:01 2024 Cross-referenced by PHPXref