Make WordPress Core


Ignore:
Timestamp:
08/14/2013 04:38:01 PM (12 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: first pass at matching code standards achieved with Twenty Thirteen development. See #24858, props obenland.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/content-page.php

    r24832 r25021  
    11<?php
    22/**
    3  * The template used for displaying page content in page.php
     3 * The template used for displaying page content.
    44 *
    55 * @package WordPress
     
    99
    1010<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    11     <header class="entry-header">
    12         <h1 class="entry-title"><?php the_title(); ?></h1>
    13     </header><!-- .entry-header -->
     11    <?php the_title( '<header class="entry-header"><h1 class="entry-title">', '</h1></header><!-- .entry-header -->' ); ?>
    1412
    15     <div class="entry-content clearfix">
    16         <?php the_content(); ?>
     13    <div class="entry-content">
    1714        <?php
     15            the_content();
    1816            wp_link_pages( array(
    1917                'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
    2018                'after'       => '</div>',
    2119                'link_before' => '<span>',
    22                 'link_after'  => '</span>'
     20                'link_after'  => '</span>',
    2321            ) );
     22
     23            edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' );
    2424        ?>
    25         <?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?>
    2625    </div><!-- .entry-content -->
    27 </article><!-- #post-<?php the_ID(); ?> -->
     26</article><!-- #post-## -->
Note: See TracChangeset for help on using the changeset viewer.