~canonical-sysadmins/wordpress/4.7.4

« back to all changes in this revision

Viewing changes to wp-content/themes/twentythirteen/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 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 /* The loop */ ?>
 
20
                        <?php while ( have_posts() ) : the_post(); ?>
 
21
 
 
22
                                <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
 
23
                                        <header class="entry-header">
 
24
                                                <?php if ( has_post_thumbnail() && ! post_password_required() ) : ?>
 
25
                                                <div class="entry-thumbnail">
 
26
                                                        <?php the_post_thumbnail(); ?>
 
27
                                                </div>
 
28
                                                <?php endif; ?>
 
29
 
 
30
                                                <h1 class="entry-title"><?php the_title(); ?></h1>
 
31
                                        </header><!-- .entry-header -->
 
32
 
 
33
                                        <div class="entry-content">
 
34
                                                <?php the_content(); ?>
 
35
                                                <?php wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?>
 
36
                                        </div><!-- .entry-content -->
 
37
 
 
38
                                        <footer class="entry-meta">
 
39
                                                <?php edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' ); ?>
 
40
                                        </footer><!-- .entry-meta -->
 
41
                                </article><!-- #post -->
 
42
 
 
43
                                <?php comments_template(); ?>
 
44
                        <?php endwhile; ?>
 
45
 
 
46
                </div><!-- #content -->
 
47
        </div><!-- #primary -->
 
48
 
 
49
<?php get_sidebar(); ?>
 
50
<?php get_footer(); ?>
 
 
b'\\ No newline at end of file'