Completed
Push — master ( d488ab...6453e7 )
by Stephen
53:31
created
src/wp-content/themes/twentyfourteen/404.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The template for displaying 404 pages (Not Found)
4
- *
5
- * @package WordPress
6
- * @subpackage Twenty_Fourteen
7
- * @since Twenty Fourteen 1.0
8
- */
3
+	 * The template for displaying 404 pages (Not Found)
4
+	 *
5
+	 * @package WordPress
6
+	 * @subpackage Twenty_Fourteen
7
+	 * @since Twenty Fourteen 1.0
8
+	 */
9 9
 
10 10
 get_header(); ?>
11 11
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,11 +14,11 @@  discard block
 block discarded – undo
14 14
 		<div id="content" class="site-content" role="main">
15 15
 
16 16
 			<header class="page-header">
17
-				<h1 class="page-title"><?php _e( 'Not Found', 'twentyfourteen' ); ?></h1>
17
+				<h1 class="page-title"><?php _e('Not Found', 'twentyfourteen'); ?></h1>
18 18
 			</header>
19 19
 
20 20
 			<div class="page-content">
21
-				<p><?php _e( 'It looks like nothing was found at this location. Maybe try a search?', 'twentyfourteen' ); ?></p>
21
+				<p><?php _e('It looks like nothing was found at this location. Maybe try a search?', 'twentyfourteen'); ?></p>
22 22
 
23 23
 				<?php get_search_form(); ?>
24 24
 			</div><!-- .page-content -->
@@ -27,6 +27,6 @@  discard block
 block discarded – undo
27 27
 	</div><!-- #primary -->
28 28
 
29 29
 <?php
30
-get_sidebar( 'content' );
30
+get_sidebar('content');
31 31
 get_sidebar();
32 32
 get_footer();
Please login to merge, or discard this patch.
src/wp-content/themes/twentyfourteen/content.php 2 patches
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -14,37 +14,37 @@  discard block
 block discarded – undo
14 14
 	<?php twentyfourteen_post_thumbnail(); ?>
15 15
 
16 16
 	<header class="entry-header">
17
-		<?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?>
17
+		<?php if (in_array('category', get_object_taxonomies(get_post_type())) && twentyfourteen_categorized_blog()) : ?>
18 18
 		<div class="entry-meta">
19
-			<span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span>
19
+			<span class="cat-links"><?php echo get_the_category_list(_x(', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen')); ?></span>
20 20
 		</div>
21 21
 		<?php
22 22
 			endif;
23 23
 
24
-			if ( is_single() ) :
25
-				the_title( '<h1 class="entry-title">', '</h1>' );
24
+			if (is_single()) :
25
+				the_title('<h1 class="entry-title">', '</h1>');
26 26
 			else :
27
-				the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
27
+				the_title('<h1 class="entry-title"><a href="'.esc_url(get_permalink()).'" rel="bookmark">', '</a></h1>');
28 28
 			endif;
29 29
 		?>
30 30
 
31 31
 		<div class="entry-meta">
32 32
 			<?php
33
-				if ( 'post' == get_post_type() )
33
+				if ('post' == get_post_type())
34 34
 					twentyfourteen_posted_on();
35 35
 
36
-				if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) :
36
+				if ( ! post_password_required() && (comments_open() || get_comments_number())) :
37 37
 			?>
38
-			<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span>
38
+			<span class="comments-link"><?php comments_popup_link(__('Leave a comment', 'twentyfourteen'), __('1 Comment', 'twentyfourteen'), __('% Comments', 'twentyfourteen')); ?></span>
39 39
 			<?php
40 40
 				endif;
41 41
 
42
-				edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' );
42
+				edit_post_link(__('Edit', 'twentyfourteen'), '<span class="edit-link">', '</span>');
43 43
 			?>
44 44
 		</div><!-- .entry-meta -->
45 45
 	</header><!-- .entry-header -->
46 46
 
47
-	<?php if ( is_search() ) : ?>
47
+	<?php if (is_search()) : ?>
48 48
 	<div class="entry-summary">
49 49
 		<?php the_excerpt(); ?>
50 50
 	</div><!-- .entry-summary -->
@@ -52,20 +52,20 @@  discard block
 block discarded – undo
52 52
 	<div class="entry-content">
53 53
 		<?php
54 54
 			/* translators: %s: Name of current post */
55
-			the_content( sprintf(
56
-				__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
57
-				the_title( '<span class="screen-reader-text">', '</span>', false )
58
-			) );
55
+			the_content(sprintf(
56
+				__('Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen'),
57
+				the_title('<span class="screen-reader-text">', '</span>', false)
58
+			));
59 59
 
60
-			wp_link_pages( array(
61
-				'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
60
+			wp_link_pages(array(
61
+				'before'      => '<div class="page-links"><span class="page-links-title">'.__('Pages:', 'twentyfourteen').'</span>',
62 62
 				'after'       => '</div>',
63 63
 				'link_before' => '<span>',
64 64
 				'link_after'  => '</span>',
65
-			) );
65
+			));
66 66
 		?>
67 67
 	</div><!-- .entry-content -->
68 68
 	<?php endif; ?>
69 69
 
70
-	<?php the_tags( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' ); ?>
70
+	<?php the_tags('<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>'); ?>
71 71
 </article><!-- #post-## -->
Please login to merge, or discard this patch.
Braces   +9 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,15 +23,18 @@  discard block
 block discarded – undo
23 23
 
24 24
 			if ( is_single() ) :
25 25
 				the_title( '<h1 class="entry-title">', '</h1>' );
26
-			else :
26
+			else {
27
+				:
27 28
 				the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
29
+			}
28 30
 			endif;
29 31
 		?>
30 32
 
31 33
 		<div class="entry-meta">
32 34
 			<?php
33
-				if ( 'post' == get_post_type() )
34
-					twentyfourteen_posted_on();
35
+				if ( 'post' == get_post_type() ) {
36
+									twentyfourteen_posted_on();
37
+				}
35 38
 
36 39
 				if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) :
37 40
 			?>
@@ -48,7 +51,8 @@  discard block
 block discarded – undo
48 51
 	<div class="entry-summary">
49 52
 		<?php the_excerpt(); ?>
50 53
 	</div><!-- .entry-summary -->
51
-	<?php else : ?>
54
+	<?php else {
55
+	: ?>
52 56
 	<div class="entry-content">
53 57
 		<?php
54 58
 			/* translators: %s: Name of current post */
@@ -56,6 +60,7 @@  discard block
 block discarded – undo
56 60
 				__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
57 61
 				the_title( '<span class="screen-reader-text">', '</span>', false )
58 62
 			) );
63
+}
59 64
 
60 65
 			wp_link_pages( array(
61 66
 				'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
Please login to merge, or discard this patch.
src/wp-content/themes/twentyfourteen/comments.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The template for displaying Comments
4
- *
5
- * The area of the page that contains comments and the comment form.
6
- *
7
- * @package WordPress
8
- * @subpackage Twenty_Fourteen
9
- * @since Twenty Fourteen 1.0
10
- */
3
+		 * The template for displaying Comments
4
+		 *
5
+		 * The area of the page that contains comments and the comment form.
6
+		 *
7
+		 * @package WordPress
8
+		 * @subpackage Twenty_Fourteen
9
+		 * @since Twenty Fourteen 1.0
10
+		 */
11 11
 
12 12
 /*
13 13
  * If the current post is protected by a password and the visitor has not yet
Please login to merge, or discard this patch.
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -13,50 +13,50 @@
 block discarded – undo
13 13
  * If the current post is protected by a password and the visitor has not yet
14 14
  * entered the password we will return early without loading the comments.
15 15
  */
16
-if ( post_password_required() ) {
16
+if (post_password_required()) {
17 17
 	return;
18 18
 }
19 19
 ?>
20 20
 
21 21
 <div id="comments" class="comments-area">
22 22
 
23
-	<?php if ( have_comments() ) : ?>
23
+	<?php if (have_comments()) : ?>
24 24
 
25 25
 	<h2 class="comments-title">
26 26
 		<?php
27
-			printf( _n( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'twentyfourteen' ),
28
-				number_format_i18n( get_comments_number() ), get_the_title() );
27
+			printf(_n('One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'twentyfourteen'),
28
+				number_format_i18n(get_comments_number()), get_the_title());
29 29
 		?>
30 30
 	</h2>
31 31
 
32
-	<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
32
+	<?php if (get_comment_pages_count() > 1 && get_option('page_comments')) : ?>
33 33
 	<nav id="comment-nav-above" class="navigation comment-navigation" role="navigation">
34
-		<h1 class="screen-reader-text"><?php _e( 'Comment navigation', 'twentyfourteen' ); ?></h1>
35
-		<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'twentyfourteen' ) ); ?></div>
36
-		<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'twentyfourteen' ) ); ?></div>
34
+		<h1 class="screen-reader-text"><?php _e('Comment navigation', 'twentyfourteen'); ?></h1>
35
+		<div class="nav-previous"><?php previous_comments_link(__('&larr; Older Comments', 'twentyfourteen')); ?></div>
36
+		<div class="nav-next"><?php next_comments_link(__('Newer Comments &rarr;', 'twentyfourteen')); ?></div>
37 37
 	</nav><!-- #comment-nav-above -->
38 38
 	<?php endif; // Check for comment navigation. ?>
39 39
 
40 40
 	<ol class="comment-list">
41 41
 		<?php
42
-			wp_list_comments( array(
42
+			wp_list_comments(array(
43 43
 				'style'       => 'ol',
44 44
 				'short_ping'  => true,
45 45
 				'avatar_size' => 34,
46
-			) );
46
+			));
47 47
 		?>
48 48
 	</ol><!-- .comment-list -->
49 49
 
50
-	<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
50
+	<?php if (get_comment_pages_count() > 1 && get_option('page_comments')) : ?>
51 51
 	<nav id="comment-nav-below" class="navigation comment-navigation" role="navigation">
52
-		<h1 class="screen-reader-text"><?php _e( 'Comment navigation', 'twentyfourteen' ); ?></h1>
53
-		<div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'twentyfourteen' ) ); ?></div>
54
-		<div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'twentyfourteen' ) ); ?></div>
52
+		<h1 class="screen-reader-text"><?php _e('Comment navigation', 'twentyfourteen'); ?></h1>
53
+		<div class="nav-previous"><?php previous_comments_link(__('&larr; Older Comments', 'twentyfourteen')); ?></div>
54
+		<div class="nav-next"><?php next_comments_link(__('Newer Comments &rarr;', 'twentyfourteen')); ?></div>
55 55
 	</nav><!-- #comment-nav-below -->
56 56
 	<?php endif; // Check for comment navigation. ?>
57 57
 
58
-	<?php if ( ! comments_open() ) : ?>
59
-	<p class="no-comments"><?php _e( 'Comments are closed.', 'twentyfourteen' ); ?></p>
58
+	<?php if ( ! comments_open()) : ?>
59
+	<p class="no-comments"><?php _e('Comments are closed.', 'twentyfourteen'); ?></p>
60 60
 	<?php endif; ?>
61 61
 
62 62
 	<?php endif; // have_comments() ?>
Please login to merge, or discard this patch.
src/wp-content/themes/twentyfourteen/content-none.php 3 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The template for displaying a "No posts found" message
4
- *
5
- * @package WordPress
6
- * @subpackage Twenty_Fourteen
7
- * @since Twenty Fourteen 1.0
8
- */
3
+		 * The template for displaying a "No posts found" message
4
+		 *
5
+		 * @package WordPress
6
+		 * @subpackage Twenty_Fourteen
7
+		 * @since Twenty Fourteen 1.0
8
+		 */
9 9
 ?>
10 10
 
11 11
 <header class="page-header">
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -9,22 +9,22 @@
 block discarded – undo
9 9
 ?>
10 10
 
11 11
 <header class="page-header">
12
-	<h1 class="page-title"><?php _e( 'Nothing Found', 'twentyfourteen' ); ?></h1>
12
+	<h1 class="page-title"><?php _e('Nothing Found', 'twentyfourteen'); ?></h1>
13 13
 </header>
14 14
 
15 15
 <div class="page-content">
16
-	<?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
16
+	<?php if (is_home() && current_user_can('publish_posts')) : ?>
17 17
 
18
-	<p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'twentyfourteen' ), admin_url( 'post-new.php' ) ); ?></p>
18
+	<p><?php printf(__('Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'twentyfourteen'), admin_url('post-new.php')); ?></p>
19 19
 
20
-	<?php elseif ( is_search() ) : ?>
20
+	<?php elseif (is_search()) : ?>
21 21
 
22
-	<p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'twentyfourteen' ); ?></p>
22
+	<p><?php _e('Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'twentyfourteen'); ?></p>
23 23
 	<?php get_search_form(); ?>
24 24
 
25 25
 	<?php else : ?>
26 26
 
27
-	<p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'twentyfourteen' ); ?></p>
27
+	<p><?php _e('It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'twentyfourteen'); ?></p>
28 28
 	<?php get_search_form(); ?>
29 29
 
30 30
 	<?php endif; ?>
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,9 +22,12 @@
 block discarded – undo
22 22
 	<p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'twentyfourteen' ); ?></p>
23 23
 	<?php get_search_form(); ?>
24 24
 
25
-	<?php else : ?>
25
+	<?php else {
26
+	: ?>
26 27
 
27
-	<p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'twentyfourteen' ); ?></p>
28
+	<p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'twentyfourteen' );
29
+}
30
+?></p>
28 31
 	<?php get_search_form(); ?>
29 32
 
30 33
 	<?php endif; ?>
Please login to merge, or discard this patch.
src/wp-content/themes/twentyeleven/sidebar-page.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Template Name: Sidebar Template
4
- *
5
- * Description: A Page Template that adds a sidebar to pages.
6
- *
7
- * @package WordPress
8
- * @subpackage Twenty_Eleven
9
- * @since Twenty Eleven 1.0
10
- */
3
+		 * Template Name: Sidebar Template
4
+		 *
5
+		 * Description: A Page Template that adds a sidebar to pages.
6
+		 *
7
+		 * @package WordPress
8
+		 * @subpackage Twenty_Eleven
9
+		 * @since Twenty Eleven 1.0
10
+		 */
11 11
 
12 12
 get_header(); ?>
13 13
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,11 +14,11 @@
 block discarded – undo
14 14
 		<div id="primary">
15 15
 			<div id="content" role="main">
16 16
 
17
-				<?php while ( have_posts() ) : the_post(); ?>
17
+				<?php while (have_posts()) : the_post(); ?>
18 18
 
19
-					<?php get_template_part( 'content', 'page' ); ?>
19
+					<?php get_template_part('content', 'page'); ?>
20 20
 
21
-					<?php comments_template( '', true ); ?>
21
+					<?php comments_template('', true); ?>
22 22
 
23 23
 				<?php endwhile; // end of the loop. ?>
24 24
 
Please login to merge, or discard this patch.
src/wp-content/themes/twentyeleven/footer.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,13 +19,13 @@
 block discarded – undo
19 19
 				 * A sidebar in the footer? Yep. You can can customize
20 20
 				 * your footer with three columns of widgets.
21 21
 				 */
22
-				if ( ! is_404() )
23
-					get_sidebar( 'footer' );
22
+				if ( ! is_404())
23
+					get_sidebar('footer');
24 24
 			?>
25 25
 
26 26
 			<div id="site-generator">
27
-				<?php do_action( 'twentyeleven_credits' ); ?>
28
-				<a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentyeleven' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyeleven' ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentyeleven' ), 'WordPress' ); ?></a>
27
+				<?php do_action('twentyeleven_credits'); ?>
28
+				<a href="<?php echo esc_url(__('https://wordpress.org/', 'twentyeleven')); ?>" title="<?php esc_attr_e('Semantic Personal Publishing Platform', 'twentyeleven'); ?>"><?php printf(__('Proudly powered by %s', 'twentyeleven'), 'WordPress'); ?></a>
29 29
 			</div>
30 30
 	</footer><!-- #colophon -->
31 31
 </div><!-- #page -->
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,8 +19,9 @@
 block discarded – undo
19 19
 				 * A sidebar in the footer? Yep. You can can customize
20 20
 				 * your footer with three columns of widgets.
21 21
 				 */
22
-				if ( ! is_404() )
23
-					get_sidebar( 'footer' );
22
+				if ( ! is_404() ) {
23
+									get_sidebar( 'footer' );
24
+				}
24 25
 			?>
25 26
 
26 27
 			<div id="site-generator">
Please login to merge, or discard this patch.
src/wp-content/themes/twentyeleven/content-quote.php 3 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Template for displaying content
4
- *
5
- * @package WordPress
6
- * @subpackage Twenty_Eleven
7
- * @since Twenty Eleven 1.0
8
- */
3
+			 * Template for displaying content
4
+			 *
5
+			 * @package WordPress
6
+			 * @subpackage Twenty_Eleven
7
+			 * @since Twenty Eleven 1.0
8
+			 */
9 9
 ?>
10 10
 
11 11
 	<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
Please login to merge, or discard this patch.
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -12,28 +12,28 @@  discard block
 block discarded – undo
12 12
 		<header class="entry-header">
13 13
 			<hgroup>
14 14
 				<h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
15
-				<h3 class="entry-format"><?php _e( 'Quote', 'twentyeleven' ); ?></h3>
15
+				<h3 class="entry-format"><?php _e('Quote', 'twentyeleven'); ?></h3>
16 16
 			</hgroup>
17 17
 
18 18
 			<div class="entry-meta">
19 19
 				<?php twentyeleven_posted_on(); ?>
20 20
 			</div><!-- .entry-meta -->
21 21
 
22
-			<?php if ( comments_open() && ! post_password_required() ) : ?>
22
+			<?php if (comments_open() && ! post_password_required()) : ?>
23 23
 			<div class="comments-link">
24
-				<?php comments_popup_link( '<span class="leave-reply">' . __( 'Reply', 'twentyeleven' ) . '</span>', _x( '1', 'comments number', 'twentyeleven' ), _x( '%', 'comments number', 'twentyeleven' ) ); ?>
24
+				<?php comments_popup_link('<span class="leave-reply">'.__('Reply', 'twentyeleven').'</span>', _x('1', 'comments number', 'twentyeleven'), _x('%', 'comments number', 'twentyeleven')); ?>
25 25
 			</div>
26 26
 			<?php endif; ?>
27 27
 		</header><!-- .entry-header -->
28 28
 
29
-		<?php if ( is_search() ) : // Only display Excerpts for Search ?>
29
+		<?php if (is_search()) : // Only display Excerpts for Search ?>
30 30
 		<div class="entry-summary">
31 31
 			<?php the_excerpt(); ?>
32 32
 		</div><!-- .entry-summary -->
33 33
 		<?php else : ?>
34 34
 		<div class="entry-content">
35
-			<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) ); ?>
36
-			<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
35
+			<?php the_content(__('Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven')); ?>
36
+			<?php wp_link_pages(array('before' => '<div class="page-link"><span>'.__('Pages:', 'twentyeleven').'</span>', 'after' => '</div>')); ?>
37 37
 		</div><!-- .entry-content -->
38 38
 		<?php endif; ?>
39 39
 
@@ -41,34 +41,34 @@  discard block
 block discarded – undo
41 41
 			<?php $show_sep = false; ?>
42 42
 			<?php
43 43
 				/* translators: used between list items, there is a space after the comma */
44
-				$categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
45
-				if ( $categories_list ):
44
+				$categories_list = get_the_category_list(__(', ', 'twentyeleven'));
45
+				if ($categories_list):
46 46
 			?>
47 47
 			<span class="cat-links">
48
-				<?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list );
48
+				<?php printf(__('<span class="%1$s">Posted in</span> %2$s', 'twentyeleven'), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list);
49 49
 				$show_sep = true; ?>
50 50
 			</span>
51 51
 			<?php endif; // End if categories ?>
52 52
 			<?php
53 53
 				/* translators: used between list items, there is a space after the comma */
54
-				$tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
55
-				if ( $tags_list ):
56
-				if ( $show_sep ) : ?>
54
+				$tags_list = get_the_tag_list('', __(', ', 'twentyeleven'));
55
+				if ($tags_list):
56
+				if ($show_sep) : ?>
57 57
 			<span class="sep"> | </span>
58 58
 				<?php endif; // End if $show_sep ?>
59 59
 			<span class="tag-links">
60
-				<?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list );
60
+				<?php printf(__('<span class="%1$s">Tagged</span> %2$s', 'twentyeleven'), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list);
61 61
 				$show_sep = true; ?>
62 62
 			</span>
63 63
 			<?php endif; // End if $tags_list ?>
64 64
 
65
-			<?php if ( comments_open() ) : ?>
66
-			<?php if ( $show_sep ) : ?>
65
+			<?php if (comments_open()) : ?>
66
+			<?php if ($show_sep) : ?>
67 67
 			<span class="sep"> | </span>
68 68
 			<?php endif; // End if $show_sep ?>
69
-			<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>
69
+			<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>
70 70
 			<?php endif; // End if comments_open() ?>
71 71
 
72
-			<?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
72
+			<?php edit_post_link(__('Edit', 'twentyeleven'), '<span class="edit-link">', '</span>'); ?>
73 73
 		</footer><!-- .entry-meta -->
74 74
 	</article><!-- #post-<?php the_ID(); ?> -->
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,9 +30,12 @@
 block discarded – undo
30 30
 		<div class="entry-summary">
31 31
 			<?php the_excerpt(); ?>
32 32
 		</div><!-- .entry-summary -->
33
-		<?php else : ?>
33
+		<?php else {
34
+	: ?>
34 35
 		<div class="entry-content">
35
-			<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) ); ?>
36
+			<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) );
37
+}
38
+?>
36 39
 			<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
37 40
 		</div><!-- .entry-content -->
38 41
 		<?php endif; ?>
Please login to merge, or discard this patch.
src/wp-content/themes/twentyeleven/showcase.php 3 patches
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,19 +1,19 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Template Name: Showcase Template
4
- *
5
- * Description: A Page Template that showcases Sticky Posts, Asides, and Blog Posts.
6
- *
7
- * The showcase template in Twenty Eleven consists of a featured posts section using sticky posts,
8
- * another recent posts area (with the latest post shown in full and the rest as a list)
9
- * and a left sidebar holding aside posts.
10
- *
11
- * We are creating two queries to fetch the proper posts and a custom widget for the sidebar.
12
- *
13
- * @package WordPress
14
- * @subpackage Twenty_Eleven
15
- * @since Twenty Eleven 1.0
16
- */
3
+				 * Template Name: Showcase Template
4
+				 *
5
+				 * Description: A Page Template that showcases Sticky Posts, Asides, and Blog Posts.
6
+				 *
7
+				 * The showcase template in Twenty Eleven consists of a featured posts section using sticky posts,
8
+				 * another recent posts area (with the latest post shown in full and the rest as a list)
9
+				 * and a left sidebar holding aside posts.
10
+				 *
11
+				 * We are creating two queries to fetch the proper posts and a custom widget for the sidebar.
12
+				 *
13
+				 * @package WordPress
14
+				 * @subpackage Twenty_Eleven
15
+				 * @since Twenty Eleven 1.0
16
+				 */
17 17
 
18 18
 // Enqueue showcase script for the slider
19 19
 wp_enqueue_script( 'twentyeleven-showcase', get_template_directory_uri() . '/js/showcase.js', array( 'jquery' ), '2011-04-28' );
Please login to merge, or discard this patch.
Spacing   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -16,22 +16,22 @@  discard block
 block discarded – undo
16 16
  */
17 17
 
18 18
 // Enqueue showcase script for the slider
19
-wp_enqueue_script( 'twentyeleven-showcase', get_template_directory_uri() . '/js/showcase.js', array( 'jquery' ), '2011-04-28' );
19
+wp_enqueue_script('twentyeleven-showcase', get_template_directory_uri().'/js/showcase.js', array('jquery'), '2011-04-28');
20 20
 
21 21
 get_header(); ?>
22 22
 
23 23
 		<div id="primary" class="showcase">
24 24
 			<div id="content" role="main">
25 25
 
26
-				<?php while ( have_posts() ) : the_post(); ?>
26
+				<?php while (have_posts()) : the_post(); ?>
27 27
 
28 28
 				<?php
29 29
 					/*
30 30
 					 * We are using a heading by rendering the_content
31 31
 					 * If we have content for this page, let's display it.
32 32
 					 */
33
-					if ( '' != get_the_content() )
34
-						get_template_part( 'content', 'intro' );
33
+					if ('' != get_the_content())
34
+						get_template_part('content', 'intro');
35 35
 				?>
36 36
 
37 37
 				<?php endwhile; ?>
@@ -43,10 +43,10 @@  discard block
 block discarded – undo
43 43
 					 * See if we have any sticky posts and use them to create our featured posts.
44 44
 					 * We limit the featured posts at ten.
45 45
 					 */
46
-					$sticky = get_option( 'sticky_posts' );
46
+					$sticky = get_option('sticky_posts');
47 47
 
48 48
 					// Proceed only if sticky posts exist.
49
-					if ( ! empty( $sticky ) ) :
49
+					if ( ! empty($sticky)) :
50 50
 
51 51
 					$featured_args = array(
52 52
 						'post__in' => $sticky,
@@ -56,10 +56,10 @@  discard block
 block discarded – undo
56 56
 					);
57 57
 
58 58
 					// The Featured Posts query.
59
-					$featured = new WP_Query( $featured_args );
59
+					$featured = new WP_Query($featured_args);
60 60
 
61 61
 					// Proceed only if published posts exist
62
-					if ( $featured->have_posts() ) :
62
+					if ($featured->have_posts()) :
63 63
 
64 64
 					/*
65 65
 					 * We will need to count featured posts starting from zero
@@ -68,18 +68,18 @@  discard block
 block discarded – undo
68 68
 					$counter_slider = 0;
69 69
 
70 70
 					// Compatibility with versions of WordPress prior to 3.4.
71
-					if ( function_exists( 'get_custom_header' ) )
72
-						$header_image_width = get_theme_support( 'custom-header', 'width' );
71
+					if (function_exists('get_custom_header'))
72
+						$header_image_width = get_theme_support('custom-header', 'width');
73 73
 					else
74 74
 						$header_image_width = HEADER_IMAGE_WIDTH;
75 75
 				?>
76 76
 
77 77
 				<div class="featured-posts">
78
-					<h1 class="showcase-heading"><?php _e( 'Featured Post', 'twentyeleven' ); ?></h1>
78
+					<h1 class="showcase-heading"><?php _e('Featured Post', 'twentyeleven'); ?></h1>
79 79
 
80 80
 				<?php
81 81
 					// Let's roll.
82
-					while ( $featured->have_posts() ) : $featured->the_post();
82
+					while ($featured->have_posts()) : $featured->the_post();
83 83
 
84 84
 					// Increase the counter.
85 85
 					$counter_slider++;
@@ -90,45 +90,45 @@  discard block
 block discarded – undo
90 90
 					 */
91 91
 					$feature_class = 'feature-text';
92 92
 
93
-					if ( has_post_thumbnail() ) {
93
+					if (has_post_thumbnail()) {
94 94
 						// ... but if it has a featured image let's add some class
95 95
 						$feature_class = 'feature-image small';
96 96
 
97 97
 						// Hang on. Let's check this here image out.
98
-						$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), array( $header_image_width, $header_image_width ) );
98
+						$image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), array($header_image_width, $header_image_width));
99 99
 
100 100
 						// Is it bigger than or equal to our header?
101
-						if ( $image[1] >= $header_image_width ) {
101
+						if ($image[1] >= $header_image_width) {
102 102
 							// If bigger, let's add a BIGGER class. It's EXTRA classy now.
103 103
 							$feature_class = 'feature-image large';
104 104
 						}
105 105
 					}
106 106
 					?>
107 107
 
108
-					<section class="featured-post <?php echo esc_attr( $feature_class ); ?>" id="featured-post-<?php echo esc_attr( $counter_slider ); ?>">
108
+					<section class="featured-post <?php echo esc_attr($feature_class); ?>" id="featured-post-<?php echo esc_attr($counter_slider); ?>">
109 109
 
110 110
 						<?php
111 111
 							/*
112 112
 							 * If the thumbnail is as big as the header image
113 113
 							 * make it a large featured post, otherwise render it small
114 114
 							 */
115
-							if ( has_post_thumbnail() ) {
116
-								if ( $image[1] >= $header_image_width )
115
+							if (has_post_thumbnail()) {
116
+								if ($image[1] >= $header_image_width)
117 117
 									$thumbnail_size = 'large-feature';
118 118
 								else
119 119
 									$thumbnail_size = 'small-feature';
120 120
 								?>
121
-								<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_post_thumbnail( $thumbnail_size ); ?></a>
121
+								<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr(sprintf(__('Permalink to %s', 'twentyeleven'), the_title_attribute('echo=0'))); ?>" rel="bookmark"><?php the_post_thumbnail($thumbnail_size); ?></a>
122 122
 								<?php
123 123
 							}
124 124
 						?>
125
-						<?php get_template_part( 'content', 'featured' ); ?>
125
+						<?php get_template_part('content', 'featured'); ?>
126 126
 					</section>
127
-				<?php endwhile;	?>
127
+				<?php endwhile; ?>
128 128
 
129 129
 				<?php
130 130
 					// Show slider only if we have more than one featured post.
131
-					if ( $featured->post_count > 1 ) :
131
+					if ($featured->post_count > 1) :
132 132
 				?>
133 133
 				<nav class="feature-slider">
134 134
 					<ul>
@@ -141,15 +141,15 @@  discard block
 block discarded – undo
141 141
 						rewind_posts();
142 142
 
143 143
 						// Let's roll again.
144
-						while ( $featured->have_posts() ) : $featured->the_post();
144
+						while ($featured->have_posts()) : $featured->the_post();
145 145
 							$counter_slider++;
146
-							if ( 1 == $counter_slider )
146
+							if (1 == $counter_slider)
147 147
 								$class = ' class="active"';
148 148
 							else
149 149
 								$class = '';
150 150
 						?>
151
-						<li><a href="#featured-post-<?php echo esc_attr( $counter_slider ); ?>" title="<?php echo esc_attr( sprintf( __( 'Featuring: %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ); ?>"<?php echo $class; ?>></a></li>
152
-					<?php endwhile;	?>
151
+						<li><a href="#featured-post-<?php echo esc_attr($counter_slider); ?>" title="<?php echo esc_attr(sprintf(__('Featuring: %s', 'twentyeleven'), the_title_attribute('echo=0'))); ?>"<?php echo $class; ?>></a></li>
152
+					<?php endwhile; ?>
153 153
 					</ul>
154 154
 				</nav>
155 155
 				<?php endif; // End check for more than one sticky post. ?>
@@ -158,18 +158,18 @@  discard block
 block discarded – undo
158 158
 				<?php endif; // End check for sticky posts. ?>
159 159
 
160 160
 				<section class="recent-posts">
161
-					<h1 class="showcase-heading"><?php _e( 'Recent Posts', 'twentyeleven' ); ?></h1>
161
+					<h1 class="showcase-heading"><?php _e('Recent Posts', 'twentyeleven'); ?></h1>
162 162
 
163 163
 					<?php
164 164
 
165 165
 					// Display our recent posts, showing full content for the very latest, ignoring Aside posts.
166 166
 					$recent_args = array(
167 167
 						'order' => 'DESC',
168
-						'post__not_in' => get_option( 'sticky_posts' ),
168
+						'post__not_in' => get_option('sticky_posts'),
169 169
 						'tax_query' => array(
170 170
 							array(
171 171
 								'taxonomy' => 'post_format',
172
-								'terms' => array( 'post-format-aside', 'post-format-link', 'post-format-quote', 'post-format-status' ),
172
+								'terms' => array('post-format-aside', 'post-format-link', 'post-format-quote', 'post-format-status'),
173 173
 								'field' => 'slug',
174 174
 								'operator' => 'NOT IN',
175 175
 							),
@@ -178,28 +178,28 @@  discard block
 block discarded – undo
178 178
 					);
179 179
 
180 180
 					// Our new query for the Recent Posts section.
181
-					$recent = new WP_Query( $recent_args );
181
+					$recent = new WP_Query($recent_args);
182 182
 
183 183
 					// The first Recent post is displayed normally
184
-					if ( $recent->have_posts() ) : $recent->the_post();
184
+					if ($recent->have_posts()) : $recent->the_post();
185 185
 
186 186
 						// Set $more to 0 in order to only get the first part of the post.
187 187
 						global $more;
188 188
 						$more = 0;
189 189
 
190
-						get_template_part( 'content', get_post_format() );
190
+						get_template_part('content', get_post_format());
191 191
 
192 192
 						echo '<ol class="other-recent-posts">';
193 193
 
194 194
 					endif;
195 195
 
196 196
 					// For all other recent posts, just display the title and comment status.
197
-					while ( $recent->have_posts() ) : $recent->the_post(); ?>
197
+					while ($recent->have_posts()) : $recent->the_post(); ?>
198 198
 
199 199
 						<li class="entry-title">
200 200
 							<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
201 201
 							<span class="comments-link">
202
-								<?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?>
202
+								<?php comments_popup_link('<span class="leave-reply">'.__('Leave a reply', 'twentyeleven').'</span>', __('<b>1</b> Reply', 'twentyeleven'), __('<b>%</b> Replies', 'twentyeleven')); ?>
203 203
 							</span>
204 204
 						</li>
205 205
 
@@ -207,16 +207,16 @@  discard block
 block discarded – undo
207 207
 					endwhile;
208 208
 
209 209
 					// If we had some posts, close the <ol>
210
-					if ( $recent->post_count > 0 )
210
+					if ($recent->post_count > 0)
211 211
 						echo '</ol>';
212 212
 					?>
213 213
 				</section><!-- .recent-posts -->
214 214
 
215 215
 				<div class="widget-area" role="complementary">
216
-					<?php if ( ! dynamic_sidebar( 'sidebar-2' ) ) : ?>
216
+					<?php if ( ! dynamic_sidebar('sidebar-2')) : ?>
217 217
 
218 218
 						<?php
219
-						the_widget( 'Twenty_Eleven_Ephemera_Widget', '', array( 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>' ) );
219
+						the_widget('Twenty_Eleven_Ephemera_Widget', '', array('before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>'));
220 220
 						?>
221 221
 
222 222
 					<?php endif; // end sidebar widget area ?>
Please login to merge, or discard this patch.
Braces   +21 added lines, -16 removed lines patch added patch discarded remove patch
@@ -30,8 +30,9 @@  discard block
 block discarded – undo
30 30
 					 * We are using a heading by rendering the_content
31 31
 					 * If we have content for this page, let's display it.
32 32
 					 */
33
-					if ( '' != get_the_content() )
34
-						get_template_part( 'content', 'intro' );
33
+					if ( '' != get_the_content() ) {
34
+											get_template_part( 'content', 'intro' );
35
+					}
35 36
 				?>
36 37
 
37 38
 				<?php endwhile; ?>
@@ -68,10 +69,11 @@  discard block
 block discarded – undo
68 69
 					$counter_slider = 0;
69 70
 
70 71
 					// Compatibility with versions of WordPress prior to 3.4.
71
-					if ( function_exists( 'get_custom_header' ) )
72
-						$header_image_width = get_theme_support( 'custom-header', 'width' );
73
-					else
74
-						$header_image_width = HEADER_IMAGE_WIDTH;
72
+					if ( function_exists( 'get_custom_header' ) ) {
73
+											$header_image_width = get_theme_support( 'custom-header', 'width' );
74
+					} else {
75
+											$header_image_width = HEADER_IMAGE_WIDTH;
76
+					}
75 77
 				?>
76 78
 
77 79
 				<div class="featured-posts">
@@ -113,10 +115,11 @@  discard block
 block discarded – undo
113 115
 							 * make it a large featured post, otherwise render it small
114 116
 							 */
115 117
 							if ( has_post_thumbnail() ) {
116
-								if ( $image[1] >= $header_image_width )
117
-									$thumbnail_size = 'large-feature';
118
-								else
119
-									$thumbnail_size = 'small-feature';
118
+								if ( $image[1] >= $header_image_width ) {
119
+																	$thumbnail_size = 'large-feature';
120
+								} else {
121
+																	$thumbnail_size = 'small-feature';
122
+								}
120 123
 								?>
121 124
 								<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_post_thumbnail( $thumbnail_size ); ?></a>
122 125
 								<?php
@@ -143,10 +146,11 @@  discard block
 block discarded – undo
143 146
 						// Let's roll again.
144 147
 						while ( $featured->have_posts() ) : $featured->the_post();
145 148
 							$counter_slider++;
146
-							if ( 1 == $counter_slider )
147
-								$class = ' class="active"';
148
-							else
149
-								$class = '';
149
+							if ( 1 == $counter_slider ) {
150
+															$class = ' class="active"';
151
+							} else {
152
+															$class = '';
153
+							}
150 154
 						?>
151 155
 						<li><a href="#featured-post-<?php echo esc_attr( $counter_slider ); ?>" title="<?php echo esc_attr( sprintf( __( 'Featuring: %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ); ?>"<?php echo $class; ?>></a></li>
152 156
 					<?php endwhile;	?>
@@ -207,8 +211,9 @@  discard block
 block discarded – undo
207 211
 					endwhile;
208 212
 
209 213
 					// If we had some posts, close the <ol>
210
-					if ( $recent->post_count > 0 )
211
-						echo '</ol>';
214
+					if ( $recent->post_count > 0 ) {
215
+											echo '</ol>';
216
+					}
212 217
 					?>
213 218
 				</section><!-- .recent-posts -->
214 219
 
Please login to merge, or discard this patch.
src/wp-content/themes/twentyeleven/image.php 3 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Template for displaying image attachments
4
- *
5
- * @package WordPress
6
- * @subpackage Twenty_Eleven
7
- * @since Twenty Eleven 1.0
8
- */
3
+						 * Template for displaying image attachments
4
+						 *
5
+						 * @package WordPress
6
+						 * @subpackage Twenty_Eleven
7
+						 * @since Twenty Eleven 1.0
8
+						 */
9 9
 
10 10
 get_header(); ?>
11 11
 
Please login to merge, or discard this patch.
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -12,12 +12,12 @@  discard block
 block discarded – undo
12 12
 		<div id="primary" class="image-attachment">
13 13
 			<div id="content" role="main">
14 14
 
15
-			<?php while ( have_posts() ) : the_post(); ?>
15
+			<?php while (have_posts()) : the_post(); ?>
16 16
 
17 17
 				<nav id="nav-single">
18
-					<h3 class="assistive-text"><?php _e( 'Image navigation', 'twentyeleven' ); ?></h3>
19
-					<span class="nav-previous"><?php previous_image_link( false, __( '&larr; Previous' , 'twentyeleven' ) ); ?></span>
20
-					<span class="nav-next"><?php next_image_link( false, __( 'Next &rarr;' , 'twentyeleven' ) ); ?></span>
18
+					<h3 class="assistive-text"><?php _e('Image navigation', 'twentyeleven'); ?></h3>
19
+					<span class="nav-previous"><?php previous_image_link(false, __('&larr; Previous', 'twentyeleven')); ?></span>
20
+					<span class="nav-next"><?php next_image_link(false, __('Next &rarr;', 'twentyeleven')); ?></span>
21 21
 				</nav><!-- #nav-single -->
22 22
 
23 23
 					<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
@@ -27,18 +27,18 @@  discard block
 block discarded – undo
27 27
 							<div class="entry-meta">
28 28
 								<?php
29 29
 									$metadata = wp_get_attachment_metadata();
30
-									printf( __( '<span class="meta-prep meta-prep-entry-date">Published </span> <span class="entry-date"><abbr class="published" title="%1$s">%2$s</abbr></span> at <a href="%3$s" title="Link to full-size image">%4$s &times; %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%8$s</a>', 'twentyeleven' ),
31
-										esc_attr( get_the_time() ),
30
+									printf(__('<span class="meta-prep meta-prep-entry-date">Published </span> <span class="entry-date"><abbr class="published" title="%1$s">%2$s</abbr></span> at <a href="%3$s" title="Link to full-size image">%4$s &times; %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%8$s</a>', 'twentyeleven'),
31
+										esc_attr(get_the_time()),
32 32
 										get_the_date(),
33
-										esc_url( wp_get_attachment_url() ),
33
+										esc_url(wp_get_attachment_url()),
34 34
 										$metadata['width'],
35 35
 										$metadata['height'],
36
-										esc_url( get_permalink( $post->post_parent ) ),
37
-										esc_attr( strip_tags( get_the_title( $post->post_parent ) ) ),
38
-										get_the_title( $post->post_parent )
36
+										esc_url(get_permalink($post->post_parent)),
37
+										esc_attr(strip_tags(get_the_title($post->post_parent))),
38
+										get_the_title($post->post_parent)
39 39
 									);
40 40
 								?>
41
-								<?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
41
+								<?php edit_post_link(__('Edit', 'twentyeleven'), '<span class="edit-link">', '</span>'); ?>
42 42
 							</div><!-- .entry-meta -->
43 43
 
44 44
 						</header><!-- .entry-header -->
@@ -52,27 +52,27 @@  discard block
 block discarded – undo
52 52
 	 * Grab the IDs of all the image attachments in a gallery so we can get the URL of the next adjacent image in a gallery,
53 53
 	 * or the first image (if we're looking at the last image in a gallery), or, in a gallery of one, just the link to that image file
54 54
 	 */
55
-	$attachments = array_values( get_children( array( 'post_parent' => $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ) ) );
56
-	foreach ( $attachments as $k => $attachment ) {
57
-		if ( $attachment->ID == $post->ID )
55
+	$attachments = array_values(get_children(array('post_parent' => $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID')));
56
+	foreach ($attachments as $k => $attachment) {
57
+		if ($attachment->ID == $post->ID)
58 58
 			break;
59 59
 	}
60 60
 
61 61
 	// If there is more than 1 attachment in a gallery
62
-	if ( count( $attachments ) > 1 ) {
62
+	if (count($attachments) > 1) {
63 63
 		$k++;
64
-		if ( isset( $attachments[ $k ] ) )
64
+		if (isset($attachments[$k]))
65 65
 			// get the URL of the next image attachment
66
-			$next_attachment_url = get_attachment_link( $attachments[ $k ]->ID );
66
+			$next_attachment_url = get_attachment_link($attachments[$k]->ID);
67 67
 		else
68 68
 			// or get the URL of the first image attachment
69
-			$next_attachment_url = get_attachment_link( $attachments[0]->ID );
69
+			$next_attachment_url = get_attachment_link($attachments[0]->ID);
70 70
 	} else {
71 71
 		// or, if there's only 1 image, get the URL of the image
72 72
 		$next_attachment_url = wp_get_attachment_url();
73 73
 	}
74 74
 ?>
75
-									<a href="<?php echo esc_url( $next_attachment_url ); ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php
75
+									<a href="<?php echo esc_url($next_attachment_url); ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php
76 76
 									/**
77 77
 									 * Filter the Twenty Eleven default attachment size.
78 78
 									 *
@@ -80,11 +80,11 @@  discard block
 block discarded – undo
80 80
 									 *
81 81
 									 * @param int The height and width attachment size dimensions in pixels. Default 848.
82 82
 									 */
83
-									$attachment_size = apply_filters( 'twentyeleven_attachment_size', 848 );
84
-									echo wp_get_attachment_image( $post->ID, array( $attachment_size, 1024 ) ); // filterable image width with 1024px limit for image height.
83
+									$attachment_size = apply_filters('twentyeleven_attachment_size', 848);
84
+									echo wp_get_attachment_image($post->ID, array($attachment_size, 1024)); // filterable image width with 1024px limit for image height.
85 85
 									?></a>
86 86
 
87
-									<?php if ( ! empty( $post->post_excerpt ) ) : ?>
87
+									<?php if ( ! empty($post->post_excerpt)) : ?>
88 88
 									<div class="entry-caption">
89 89
 										<?php the_excerpt(); ?>
90 90
 									</div>
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 
96 96
 							<div class="entry-description">
97 97
 								<?php the_content(); ?>
98
-								<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
98
+								<?php wp_link_pages(array('before' => '<div class="page-link"><span>'.__('Pages:', 'twentyeleven').'</span>', 'after' => '</div>')); ?>
99 99
 							</div><!-- .entry-description -->
100 100
 
101 101
 						</div><!-- .entry-content -->
Please login to merge, or discard this patch.
Braces   +8 added lines, -6 removed lines patch added patch discarded remove patch
@@ -54,19 +54,21 @@
 block discarded – undo
54 54
 	 */
55 55
 	$attachments = array_values( get_children( array( 'post_parent' => $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ) ) );
56 56
 	foreach ( $attachments as $k => $attachment ) {
57
-		if ( $attachment->ID == $post->ID )
58
-			break;
57
+		if ( $attachment->ID == $post->ID ) {
58
+					break;
59
+		}
59 60
 	}
60 61
 
61 62
 	// If there is more than 1 attachment in a gallery
62 63
 	if ( count( $attachments ) > 1 ) {
63 64
 		$k++;
64
-		if ( isset( $attachments[ $k ] ) )
65
-			// get the URL of the next image attachment
65
+		if ( isset( $attachments[ $k ] ) ) {
66
+					// get the URL of the next image attachment
66 67
 			$next_attachment_url = get_attachment_link( $attachments[ $k ]->ID );
67
-		else
68
-			// or get the URL of the first image attachment
68
+		} else {
69
+					// or get the URL of the first image attachment
69 70
 			$next_attachment_url = get_attachment_link( $attachments[0]->ID );
71
+		}
70 72
 	} else {
71 73
 		// or, if there's only 1 image, get the URL of the image
72 74
 		$next_attachment_url = wp_get_attachment_url();
Please login to merge, or discard this patch.