wp/wp-content/themes/twentytwelve/content-page.php
changeset 8 c7c34916027a
parent 7 cf61fcea0001
child 9 177826044cd9
equal deleted inserted replaced
7:cf61fcea0001 8:c7c34916027a
     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 -->