Share this diff
file lines added. 69 lines deleted.
1<?php 1<?php
2  
3/** 2/**
4  
5 * The template for displaying posts in the Image Post Format on index and archive pages 3 * The template for displaying posts in the Image Post Format on index and archive pages
6  
7 * 4 *
8  
9 * Learn more: http://codex.wordpress.org/Post_Formats 5 * Learn more: http://codex.wordpress.org/Post_Formats
10  
11 * 6 *
12  
13 * @package WordPress 7 * @package WordPress
14  
15 * @subpackage Twenty_Eleven 8 * @subpackage Twenty_Eleven
16  
17 * @since Twenty Eleven 1.0 9 * @since Twenty Eleven 1.0
18  
19 */ 10 */
20  
21?> 11?>
22  
23 <article id="post-<?php the_ID(); ?>" <?php post_class( 'indexed' ); ?>> 12 <article id="post-<?php the_ID(); ?>" <?php post_class( 'indexed' ); ?>>
24  
25 <header class="entry-header"> 13 <header class="entry-header">
26  
27 <hgroup> 14 <hgroup>
28  
29 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> 15 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
30  
31 <h3 class="entry-format"><?php _e( 'Image', 'twentyeleven' ); ?></h3> 16 <h3 class="entry-format"><?php _e( 'Image', 'twentyeleven' ); ?></h3>
32  
33 </hgroup> 17 </hgroup>
34 18
35  
36  
37 <?php if ( comments_open() && ! post_password_required() ) : ?> 19 <?php if ( comments_open() && ! post_password_required() ) : ?>
38  
39 <div class="comments-link"> 20 <div class="comments-link">
40  
41 <?php comments_popup_link( '<span class="leave-reply">' . __( "Reply", 'twentyeleven' ) . '</span>', _x( '1', 'comments number', 'twentyeleven' ), _x( '%', 'comments number', 'twentyeleven' ) ); ?> 21 <?php comments_popup_link( '<span class="leave-reply">' . __( "Reply", 'twentyeleven' ) . '</span>', _x( '1', 'comments number', 'twentyeleven' ), _x( '%', 'comments number', 'twentyeleven' ) ); ?>
42  
43 </div> 22 </div>
44  
45 <?php endif; ?> 23 <?php endif; ?>
46  
47 </header><!-- .entry-header --> 24 </header><!-- .entry-header -->
48 25
49  
50  
51 <div class="entry-content"> 26 <div class="entry-content">
52  
53 <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) ); ?> 27 <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) ); ?>
54  
55 <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?> 28 <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
56  
57 </div><!-- .entry-content --> 29 </div><!-- .entry-content -->
58 30
59  
60  
61 <footer class="entry-meta"> 31 <footer class="entry-meta">
62  
63 <div class="entry-meta"> 32 <div class="entry-meta">
64  
65 <?php 33 <?php
66  
67 printf( __( '<a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span></span>', 'twentyeleven' ), 34 printf( __( '<a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span></span>', 'twentyeleven' ),
68  
69 esc_url( get_permalink() ), 35 esc_url( get_permalink() ),
70  
71 get_the_date( 'c' ), 36 get_the_date( 'c' ),
72  
73 get_the_date(), 37 get_the_date(),
74  
75 esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), 38 esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
76  
77 esc_attr( sprintf( __( 'View all posts by %s', 'twentyeleven' ), get_the_author() ) ), 39 esc_attr( sprintf( __( 'View all posts by %s', 'twentyeleven' ), get_the_author() ) ),
78  
79 get_the_author() 40 get_the_author()
80  
81 ); 41 );
82  
83 ?> 42 ?>
84  
85 </div><!-- .entry-meta --> 43 </div><!-- .entry-meta -->
86  
87 <div class="entry-meta"> 44 <div class="entry-meta">
88  
89 <?php 45 <?php
90  
91 /* translators: used between list items, there is a space after the comma */ 46 /* translators: used between list items, there is a space after the comma */
92  
93 $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) ); 47 $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
94  
95 if ( $categories_list ): 48 if ( $categories_list ):
96  
97 ?> 49 ?>
98  
99 <span class="cat-links"> 50 <span class="cat-links">
100  
101 <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list ); ?> 51 <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list ); ?>
102  
103 </span> 52 </span>
104  
105 <?php endif; // End if categories ?> 53 <?php endif; // End if categories ?>
106  
107 <?php 54 <?php
108  
109 /* translators: used between list items, there is a space after the comma */ 55 /* translators: used between list items, there is a space after the comma */
110  
111 $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) ); 56 $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
112  
113 if ( $tags_list ): ?> 57 if ( $tags_list ): ?>
114  
115 <span class="tag-links"> 58 <span class="tag-links">
116  
117 <?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?> 59 <?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?>
118  
119 </span> 60 </span>
120  
121 <?php endif; // End if $tags_list ?> 61 <?php endif; // End if $tags_list ?>
122 62
123  
124  
125 <?php if ( comments_open() ) : ?> 63 <?php if ( comments_open() ) : ?>
126  
127 <span class="comments-link"><?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span> 64 <span class="comments-link"><?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span>
128  
129 <?php endif; // End if comments_open() ?> 65 <?php endif; // End if comments_open() ?>
130  
131 </div><!-- .entry-meta --> 66 </div><!-- .entry-meta -->
132 67
133  
134  
135 <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?> 68 <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
136  
137 </footer><!-- #entry-meta --> 69 </footer><!-- #entry-meta -->
138  
139 </article><!-- #post-<?php the_ID(); ?> -->70 </article><!-- #post-<?php the_ID(); ?> -->
ORIGINAL TEXT
CHANGED TEXT