~canonical-sysadmins/wordpress/4.7.2

« back to all changes in this revision

Viewing changes to wp-content/themes/twentytwelve/content-page.php

  • Committer: Jacek Nykis
  • Date: 2015-01-05 16:17:05 UTC
  • Revision ID: jacek.nykis@canonical.com-20150105161705-w544l1h5mcg7u4w9
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?>
 
22
                </div><!-- .entry-content -->
 
23
                <footer class="entry-meta">
 
24
                        <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
 
25
                </footer><!-- .entry-meta -->
 
26
        </article><!-- #post -->