~canonical-sysadmins/wordpress/4.5.2

« back to all changes in this revision

Viewing changes to wp-content/themes/twentythirteen/content-image.php

  • Committer: Manuel Seelaus
  • Date: 2015-12-09 17:47:18 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: manuel.seelaus@canonical.com-20151209174718-coxethm2swbeqksy
Merge WP4.4 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php
2
 
/**
3
 
 * The template for displaying posts in the Image post format
4
 
 *
5
 
 * @package WordPress
6
 
 * @subpackage Twenty_Thirteen
7
 
 * @since Twenty Thirteen 1.0
8
 
 */
9
 
?>
10
 
 
11
 
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
12
 
        <header class="entry-header">
13
 
                <?php if ( is_single() ) : ?>
14
 
                <h1 class="entry-title"><?php the_title(); ?></h1>
15
 
                <?php else : ?>
16
 
                <h1 class="entry-title">
17
 
                        <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
18
 
                </h1>
19
 
                <?php endif; // is_single() ?>
20
 
        </header><!-- .entry-header -->
21
 
 
22
 
        <div class="entry-content">
23
 
                <?php
24
 
                        /* translators: %s: Name of current post */
25
 
                        the_content( sprintf(
26
 
                                __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ),
27
 
                                the_title( '<span class="screen-reader-text">', '</span>', false )
28
 
                        ) );
29
 
 
30
 
                        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>' ) );
31
 
                ?>
32
 
        </div><!-- .entry-content -->
33
 
 
34
 
        <footer class="entry-meta">
35
 
                <?php twentythirteen_entry_meta(); ?>
36
 
 
37
 
                <?php if ( comments_open() && ! is_single() ) : ?>
38
 
                <span class="comments-link">
39
 
                        <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a comment', 'twentythirteen' ) . '</span>', __( 'One comment so far', 'twentythirteen' ), __( 'View all % comments', 'twentythirteen' ) ); ?>
40
 
                </span><!-- .comments-link -->
41
 
                <?php endif; // comments_open() ?>
42
 
                <?php edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' ); ?>
43
 
 
44
 
                <?php if ( is_single() && get_the_author_meta( 'description' ) && is_multi_author() ) : ?>
45
 
                        <?php get_template_part( 'author-bio' ); ?>
46
 
                <?php endif; ?>
47
 
        </footer><!-- .entry-meta -->
48
 
</article><!-- #post -->