[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * The template used for displaying page content in page.php
   4   *
   5   * @package WordPress
   6   * @subpackage Twenty_Twelve
   7   * @since Twenty Twelve 1.0
   8   */
   9  ?>
  10  
  11      <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  12          <header class="entry-header">
  13              <?php if ( ! is_page_template( 'page-templates/front-page.php' ) ) : ?>
  14                  <?php the_post_thumbnail(); ?>
  15              <?php endif; ?>
  16              <h1 class="entry-title"><?php the_title(); ?></h1>
  17          </header>
  18  
  19          <div class="entry-content">
  20              <?php the_content(); ?>
  21              <?php
  22              wp_link_pages(
  23                  array(
  24                      'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ),
  25                      'after'  => '</div>',
  26                  )
  27              );
  28              ?>
  29          </div><!-- .entry-content -->
  30          <footer class="entry-meta">
  31              <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
  32          </footer><!-- .entry-meta -->
  33      </article><!-- #post -->


Generated: Thu Apr 18 01:00:02 2024 Cross-referenced by PHPXref 0.7.1