Completed
Push — master ( d99bf9...491baf )
by Stephen
13:47
created
src/wp-content/themes/twentyeleven/showcase.php 2 patches
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 2 patches
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.
src/wp-content/themes/twentyeleven/content-gallery.php 2 patches
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 	<header class="entry-header">
17 17
 		<hgroup>
18 18
 			<h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
19
-			<h3 class="entry-format"><?php _e( 'Gallery', 'twentyeleven' ); ?></h3>
19
+			<h3 class="entry-format"><?php _e('Gallery', 'twentyeleven'); ?></h3>
20 20
 		</hgroup>
21 21
 
22 22
 		<div class="entry-meta">
@@ -24,32 +24,32 @@  discard block
 block discarded – undo
24 24
 		</div><!-- .entry-meta -->
25 25
 	</header><!-- .entry-header -->
26 26
 
27
-	<?php if ( is_search() ) : // Only display Excerpts for search pages ?>
27
+	<?php if (is_search()) : // Only display Excerpts for search pages ?>
28 28
 		<div class="entry-summary">
29 29
 			<?php the_excerpt(); ?>
30 30
 		</div><!-- .entry-summary -->
31 31
 		<?php else : ?>
32 32
 		<div class="entry-content">
33
-			<?php if ( post_password_required() ) : ?>
34
-				<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) ); ?>
33
+			<?php if (post_password_required()) : ?>
34
+				<?php the_content(__('Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven')); ?>
35 35
 			<?php else :
36 36
 				$images = twentyeleven_get_gallery_images();
37
-				if ( $images ) :
38
-					$total_images = count( $images );
39
-					$image = reset( $images );
37
+				if ($images) :
38
+					$total_images = count($images);
39
+					$image = reset($images);
40 40
 			?>
41 41
 				<figure class="gallery-thumb">
42
-					<a href="<?php the_permalink(); ?>"><?php echo wp_get_attachment_image( $image, 'thumbnail' ); ?></a>
42
+					<a href="<?php the_permalink(); ?>"><?php echo wp_get_attachment_image($image, 'thumbnail'); ?></a>
43 43
 				</figure><!-- .gallery-thumb -->
44 44
 
45
-				<p><em><?php printf( _n( 'This gallery contains <a %1$s>%2$s photo</a>.', 'This gallery contains <a %1$s>%2$s photos</a>.', $total_images, 'twentyeleven' ),
46
-						'href="' . esc_url( get_permalink() ) . '" title="' . esc_attr( sprintf( __( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ) . '" rel="bookmark"',
47
-						number_format_i18n( $total_images )
45
+				<p><em><?php printf(_n('This gallery contains <a %1$s>%2$s photo</a>.', 'This gallery contains <a %1$s>%2$s photos</a>.', $total_images, 'twentyeleven'),
46
+						'href="'.esc_url(get_permalink()).'" title="'.esc_attr(sprintf(__('Permalink to %s', 'twentyeleven'), the_title_attribute('echo=0'))).'" rel="bookmark"',
47
+						number_format_i18n($total_images)
48 48
 					); ?></em></p>
49 49
 			<?php endif; // end twentyeleven_get_gallery_images() check ?>
50 50
 			<?php the_excerpt(); ?>
51 51
 		<?php endif; ?>
52
-		<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
52
+		<?php wp_link_pages(array('before' => '<div class="page-link"><span>'.__('Pages:', 'twentyeleven').'</span>', 'after' => '</div>')); ?>
53 53
 	</div><!-- .entry-content -->
54 54
 	<?php endif; ?>
55 55
 
@@ -57,34 +57,34 @@  discard block
 block discarded – undo
57 57
 		<?php $show_sep = false; ?>
58 58
 		<?php
59 59
 			/* translators: used between list items, there is a space after the comma */
60
-			$categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
61
-			if ( $categories_list ):
60
+			$categories_list = get_the_category_list(__(', ', 'twentyeleven'));
61
+			if ($categories_list):
62 62
 		?>
63 63
 		<span class="cat-links">
64
-			<?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list );
64
+			<?php printf(__('<span class="%1$s">Posted in</span> %2$s', 'twentyeleven'), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list);
65 65
 			$show_sep = true; ?>
66 66
 		</span>
67 67
 		<?php endif; // End if categories ?>
68 68
 		<?php
69 69
 			/* translators: used between list items, there is a space after the comma */
70
-			$tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
71
-			if ( $tags_list ):
72
-			if ( $show_sep ) : ?>
70
+			$tags_list = get_the_tag_list('', __(', ', 'twentyeleven'));
71
+			if ($tags_list):
72
+			if ($show_sep) : ?>
73 73
 		<span class="sep"> | </span>
74 74
 			<?php endif; // End if $show_sep ?>
75 75
 		<span class="tag-links">
76
-			<?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list );
76
+			<?php printf(__('<span class="%1$s">Tagged</span> %2$s', 'twentyeleven'), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list);
77 77
 			$show_sep = true; ?>
78 78
 		</span>
79 79
 		<?php endif; // End if $tags_list ?>
80 80
 
81
-		<?php if ( comments_open() ) : ?>
82
-		<?php if ( $show_sep ) : ?>
81
+		<?php if (comments_open()) : ?>
82
+		<?php if ($show_sep) : ?>
83 83
 		<span class="sep"> | </span>
84 84
 		<?php endif; // End if $show_sep ?>
85
-		<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>
85
+		<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>
86 86
 		<?php endif; // End if comments_open() ?>
87 87
 
88
-		<?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
88
+		<?php edit_post_link(__('Edit', 'twentyeleven'), '<span class="edit-link">', '</span>'); ?>
89 89
 	</footer><!-- .entry-meta -->
90 90
 </article><!-- #post-<?php the_ID(); ?> -->
Please login to merge, or discard this patch.
Braces   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,12 +28,17 @@
 block discarded – undo
28 28
 		<div class="entry-summary">
29 29
 			<?php the_excerpt(); ?>
30 30
 		</div><!-- .entry-summary -->
31
-		<?php else : ?>
31
+		<?php else {
32
+	: ?>
32 33
 		<div class="entry-content">
33 34
 			<?php if ( post_password_required() ) : ?>
34
-				<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) ); ?>
35
-			<?php else :
35
+				<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) );
36
+}
37
+?>
38
+			<?php else {
39
+	:
36 40
 				$images = twentyeleven_get_gallery_images();
41
+}
37 42
 				if ( $images ) :
38 43
 					$total_images = count( $images );
39 44
 					$image = reset( $images );
Please login to merge, or discard this patch.
src/wp-content/themes/twentyeleven/header.php 2 patches
Spacing   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -22,30 +22,30 @@  discard block
 block discarded – undo
22 22
 <html <?php language_attributes(); ?>>
23 23
 <!--<![endif]-->
24 24
 <head>
25
-<meta charset="<?php bloginfo( 'charset' ); ?>" />
25
+<meta charset="<?php bloginfo('charset'); ?>" />
26 26
 <meta name="viewport" content="width=device-width" />
27 27
 <title><?php
28 28
 	// Print the <title> tag based on what is being viewed.
29 29
 	global $page, $paged;
30 30
 
31
-	wp_title( '|', true, 'right' );
31
+	wp_title('|', true, 'right');
32 32
 
33 33
 	// Add the blog name.
34
-	bloginfo( 'name' );
34
+	bloginfo('name');
35 35
 
36 36
 	// Add the blog description for the home/front page.
37
-	$site_description = get_bloginfo( 'description', 'display' );
38
-	if ( $site_description && ( is_home() || is_front_page() ) )
37
+	$site_description = get_bloginfo('description', 'display');
38
+	if ($site_description && (is_home() || is_front_page()))
39 39
 		echo " | $site_description";
40 40
 
41 41
 	// Add a page number if necessary:
42
-	if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() )
43
-		echo esc_html( ' | ' . sprintf( __( 'Page %s', 'twentyeleven' ), max( $paged, $page ) ) );
42
+	if (($paged >= 2 || $page >= 2) && ! is_404())
43
+		echo esc_html(' | '.sprintf(__('Page %s', 'twentyeleven'), max($paged, $page)));
44 44
 
45 45
 	?></title>
46 46
 <link rel="profile" href="http://gmpg.org/xfn/11" />
47
-<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
48
-<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
47
+<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_url'); ?>" />
48
+<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
49 49
 <!--[if lt IE 9]>
50 50
 <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
51 51
 <![endif]-->
@@ -54,8 +54,8 @@  discard block
 block discarded – undo
54 54
 	 * We add some JavaScript to pages with the comment form
55 55
 	 * to support sites with threaded comments (when in use).
56 56
 	 */
57
-	if ( is_singular() && get_option( 'thread_comments' ) )
58
-		wp_enqueue_script( 'comment-reply' );
57
+	if (is_singular() && get_option('thread_comments'))
58
+		wp_enqueue_script('comment-reply');
59 59
 
60 60
 	/*
61 61
 	 * Always have wp_head() just before the closing </head>
@@ -71,39 +71,39 @@  discard block
 block discarded – undo
71 71
 <div id="page" class="hfeed">
72 72
 	<header id="branding" role="banner">
73 73
 			<hgroup>
74
-				<h1 id="site-title"><span><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span></h1>
75
-				<h2 id="site-description"><?php bloginfo( 'description' ); ?></h2>
74
+				<h1 id="site-title"><span><a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php bloginfo('name'); ?></a></span></h1>
75
+				<h2 id="site-description"><?php bloginfo('description'); ?></h2>
76 76
 			</hgroup>
77 77
 
78 78
 			<?php
79 79
 				// Check to see if the header image has been removed
80 80
 				$header_image = get_header_image();
81
-				if ( $header_image ) :
81
+				if ($header_image) :
82 82
 					// Compatibility with versions of WordPress prior to 3.4.
83
-					if ( function_exists( 'get_custom_header' ) ) {
83
+					if (function_exists('get_custom_header')) {
84 84
 						/*
85 85
 						 * We need to figure out what the minimum width should be for our featured image.
86 86
 						 * This result would be the suggested width if the theme were to implement flexible widths.
87 87
 						 */
88
-						$header_image_width = get_theme_support( 'custom-header', 'width' );
88
+						$header_image_width = get_theme_support('custom-header', 'width');
89 89
 					} else {
90 90
 						$header_image_width = HEADER_IMAGE_WIDTH;
91 91
 					}
92 92
 					?>
93
-			<a href="<?php echo esc_url( home_url( '/' ) ); ?>">
93
+			<a href="<?php echo esc_url(home_url('/')); ?>">
94 94
 				<?php
95 95
 					/*
96 96
 					 * The header image.
97 97
 					 * Check if this is a post or page, if it has a thumbnail, and if it's a big one
98 98
 					 */
99
-					if ( is_singular() && has_post_thumbnail( $post->ID ) &&
100
-							( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), array( $header_image_width, $header_image_width ) ) ) &&
101
-							$image[1] >= $header_image_width ) :
99
+					if (is_singular() && has_post_thumbnail($post->ID) &&
100
+							( /* $src, $width, $height */ $image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), array($header_image_width, $header_image_width)) ) &&
101
+							$image[1] >= $header_image_width) :
102 102
 						// Houston, we have a new header image!
103
-						echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' );
103
+						echo get_the_post_thumbnail($post->ID, 'post-thumbnail');
104 104
 					else :
105 105
 						// Compatibility with versions of WordPress prior to 3.4.
106
-						if ( function_exists( 'get_custom_header' ) ) {
106
+						if (function_exists('get_custom_header')) {
107 107
 							$header_image_width  = get_custom_header()->width;
108 108
 							$header_image_height = get_custom_header()->height;
109 109
 						} else {
@@ -111,16 +111,16 @@  discard block
 block discarded – undo
111 111
 							$header_image_height = HEADER_IMAGE_HEIGHT;
112 112
 						}
113 113
 						?>
114
-					<img src="<?php header_image(); ?>" width="<?php echo esc_attr( $header_image_width ); ?>" height="<?php echo esc_attr( $header_image_height ); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" />
114
+					<img src="<?php header_image(); ?>" width="<?php echo esc_attr($header_image_width); ?>" height="<?php echo esc_attr($header_image_height); ?>" alt="<?php echo esc_attr(get_bloginfo('name', 'display')); ?>" />
115 115
 				<?php endif; // end check for featured image or standard header ?>
116 116
 			</a>
117 117
 			<?php endif; // end check for removed header image ?>
118 118
 
119 119
 			<?php
120 120
 				// Has the text been hidden?
121
-				if ( 'blank' == get_header_textcolor() ) :
121
+				if ('blank' == get_header_textcolor()) :
122 122
 			?>
123
-				<div class="only-search<?php if ( $header_image ) : ?> with-image<?php endif; ?>">
123
+				<div class="only-search<?php if ($header_image) : ?> with-image<?php endif; ?>">
124 124
 				<?php get_search_form(); ?>
125 125
 				</div>
126 126
 			<?php
@@ -130,14 +130,14 @@  discard block
 block discarded – undo
130 130
 			<?php endif; ?>
131 131
 
132 132
 			<nav id="access" role="navigation">
133
-				<h3 class="assistive-text"><?php _e( 'Main menu', 'twentyeleven' ); ?></h3>
133
+				<h3 class="assistive-text"><?php _e('Main menu', 'twentyeleven'); ?></h3>
134 134
 				<?php /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff. */ ?>
135
-				<div class="skip-link"><a class="assistive-text" href="#content"><?php _e( 'Skip to primary content', 'twentyeleven' ); ?></a></div>
136
-				<?php if ( ! is_singular() ) : ?>
137
-					<div class="skip-link"><a class="assistive-text" href="#secondary"><?php _e( 'Skip to secondary content', 'twentyeleven' ); ?></a></div>
135
+				<div class="skip-link"><a class="assistive-text" href="#content"><?php _e('Skip to primary content', 'twentyeleven'); ?></a></div>
136
+				<?php if ( ! is_singular()) : ?>
137
+					<div class="skip-link"><a class="assistive-text" href="#secondary"><?php _e('Skip to secondary content', 'twentyeleven'); ?></a></div>
138 138
 				<?php endif; ?>
139 139
 				<?php /* Our navigation menu. If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assigned to the primary location is the one used. If one isn't assigned, the menu with the lowest ID is used. */ ?>
140
-				<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
140
+				<?php wp_nav_menu(array('theme_location' => 'primary')); ?>
141 141
 			</nav><!-- #access -->
142 142
 	</header><!-- #branding -->
143 143
 
Please login to merge, or discard this patch.
Braces   +17 added lines, -9 removed lines patch added patch discarded remove patch
@@ -35,12 +35,14 @@  discard block
 block discarded – undo
35 35
 
36 36
 	// Add the blog description for the home/front page.
37 37
 	$site_description = get_bloginfo( 'description', 'display' );
38
-	if ( $site_description && ( is_home() || is_front_page() ) )
39
-		echo " | $site_description";
38
+	if ( $site_description && ( is_home() || is_front_page() ) ) {
39
+			echo " | $site_description";
40
+	}
40 41
 
41 42
 	// Add a page number if necessary:
42
-	if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() )
43
-		echo esc_html( ' | ' . sprintf( __( 'Page %s', 'twentyeleven' ), max( $paged, $page ) ) );
43
+	if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) {
44
+			echo esc_html( ' | ' . sprintf( __( 'Page %s', 'twentyeleven' ), max( $paged, $page ) ) );
45
+	}
44 46
 
45 47
 	?></title>
46 48
 <link rel="profile" href="http://gmpg.org/xfn/11" />
@@ -54,8 +56,9 @@  discard block
 block discarded – undo
54 56
 	 * We add some JavaScript to pages with the comment form
55 57
 	 * to support sites with threaded comments (when in use).
56 58
 	 */
57
-	if ( is_singular() && get_option( 'thread_comments' ) )
58
-		wp_enqueue_script( 'comment-reply' );
59
+	if ( is_singular() && get_option( 'thread_comments' ) ) {
60
+			wp_enqueue_script( 'comment-reply' );
61
+	}
59 62
 
60 63
 	/*
61 64
 	 * Always have wp_head() just before the closing </head>
@@ -101,10 +104,12 @@  discard block
 block discarded – undo
101 104
 							$image[1] >= $header_image_width ) :
102 105
 						// Houston, we have a new header image!
103 106
 						echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' );
104
-					else :
107
+					else {
108
+						:
105 109
 						// Compatibility with versions of WordPress prior to 3.4.
106 110
 						if ( function_exists( 'get_custom_header' ) ) {
107 111
 							$header_image_width  = get_custom_header()->width;
112
+					}
108 113
 							$header_image_height = get_custom_header()->height;
109 114
 						} else {
110 115
 							$header_image_width  = HEADER_IMAGE_WIDTH;
@@ -124,9 +129,12 @@  discard block
 block discarded – undo
124 129
 				<?php get_search_form(); ?>
125 130
 				</div>
126 131
 			<?php
127
-				else :
132
+				else {
133
+					:
128 134
 			?>
129
-				<?php get_search_form(); ?>
135
+				<?php get_search_form();
136
+				}
137
+				?>
130 138
 			<?php endif; ?>
131 139
 
132 140
 			<nav id="access" role="navigation">
Please login to merge, or discard this patch.
src/wp-content/themes/twentyeleven/content-featured.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 
10 10
 global $feature_class;
11 11
 ?>
12
-<article id="post-<?php the_ID(); ?>" <?php post_class( $feature_class ); ?>>
12
+<article id="post-<?php the_ID(); ?>" <?php post_class($feature_class); ?>>
13 13
 	<header class="entry-header">
14 14
 		<h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
15 15
 
@@ -20,28 +20,28 @@  discard block
 block discarded – undo
20 20
 
21 21
 	<div class="entry-summary">
22 22
 		<?php the_excerpt(); ?>
23
-		<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
23
+		<?php wp_link_pages(array('before' => '<div class="page-link"><span>'.__('Pages:', 'twentyeleven').'</span>', 'after' => '</div>')); ?>
24 24
 	</div><!-- .entry-content -->
25 25
 
26 26
 	<footer class="entry-meta">
27 27
 		<?php
28 28
 			/* translators: used between list items, there is a space after the comma */
29
-			$tag_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
30
-			if ( '' != $tag_list ) {
31
-				$utility_text = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
29
+			$tag_list = get_the_tag_list('', __(', ', 'twentyeleven'));
30
+			if ('' != $tag_list) {
31
+				$utility_text = __('This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven');
32 32
 			} else {
33
-				$utility_text = __( 'This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
33
+				$utility_text = __('This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven');
34 34
 			}
35 35
 			printf(
36 36
 				$utility_text,
37 37
 				/* translators: used between list items, there is a space after the comma */
38
-				get_the_category_list( __( ', ', 'twentyeleven' ) ),
38
+				get_the_category_list(__(', ', 'twentyeleven')),
39 39
 				$tag_list,
40
-				esc_url( get_permalink() ),
41
-				the_title_attribute( 'echo=0' )
40
+				esc_url(get_permalink()),
41
+				the_title_attribute('echo=0')
42 42
 			);
43 43
 		?>
44 44
 
45
-		<?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
45
+		<?php edit_post_link(__('Edit', 'twentyeleven'), '<span class="edit-link">', '</span>'); ?>
46 46
 	</footer><!-- .entry-meta -->
47 47
 </article><!-- #post-<?php the_ID(); ?> -->
Please login to merge, or discard this patch.
src/wp-content/themes/twentyeleven/sidebar.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -10,20 +10,20 @@
 block discarded – undo
10 10
 $options = twentyeleven_get_theme_options();
11 11
 $current_layout = $options['theme_layout'];
12 12
 
13
-if ( 'content' != $current_layout ) :
13
+if ('content' != $current_layout) :
14 14
 ?>
15 15
 		<div id="secondary" class="widget-area" role="complementary">
16
-			<?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?>
16
+			<?php if ( ! dynamic_sidebar('sidebar-1')) : ?>
17 17
 
18 18
 				<aside id="archives" class="widget">
19
-					<h3 class="widget-title"><?php _e( 'Archives', 'twentyeleven' ); ?></h3>
19
+					<h3 class="widget-title"><?php _e('Archives', 'twentyeleven'); ?></h3>
20 20
 					<ul>
21
-						<?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
21
+						<?php wp_get_archives(array('type' => 'monthly')); ?>
22 22
 					</ul>
23 23
 				</aside>
24 24
 
25 25
 				<aside id="meta" class="widget">
26
-					<h3 class="widget-title"><?php _e( 'Meta', 'twentyeleven' ); ?></h3>
26
+					<h3 class="widget-title"><?php _e('Meta', 'twentyeleven'); ?></h3>
27 27
 					<ul>
28 28
 						<?php wp_register(); ?>
29 29
 						<li><?php wp_loginout(); ?></li>
Please login to merge, or discard this patch.
src/wp-content/themes/twentyeleven/index.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -17,28 +17,28 @@
 block discarded – undo
17 17
 		<div id="primary">
18 18
 			<div id="content" role="main">
19 19
 
20
-			<?php if ( have_posts() ) : ?>
20
+			<?php if (have_posts()) : ?>
21 21
 
22
-				<?php twentyeleven_content_nav( 'nav-above' ); ?>
22
+				<?php twentyeleven_content_nav('nav-above'); ?>
23 23
 
24 24
 				<?php /* Start the Loop */ ?>
25
-				<?php while ( have_posts() ) : the_post(); ?>
25
+				<?php while (have_posts()) : the_post(); ?>
26 26
 
27
-					<?php get_template_part( 'content', get_post_format() ); ?>
27
+					<?php get_template_part('content', get_post_format()); ?>
28 28
 
29 29
 				<?php endwhile; ?>
30 30
 
31
-				<?php twentyeleven_content_nav( 'nav-below' ); ?>
31
+				<?php twentyeleven_content_nav('nav-below'); ?>
32 32
 
33 33
 			<?php else : ?>
34 34
 
35 35
 				<article id="post-0" class="post no-results not-found">
36 36
 					<header class="entry-header">
37
-						<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
37
+						<h1 class="entry-title"><?php _e('Nothing Found', 'twentyeleven'); ?></h1>
38 38
 					</header><!-- .entry-header -->
39 39
 
40 40
 					<div class="entry-content">
41
-						<p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p>
41
+						<p><?php _e('Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven'); ?></p>
42 42
 						<?php get_search_form(); ?>
43 43
 					</div><!-- .entry-content -->
44 44
 				</article><!-- #post-0 -->
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,11 +30,14 @@
 block discarded – undo
30 30
 
31 31
 				<?php twentyeleven_content_nav( 'nav-below' ); ?>
32 32
 
33
-			<?php else : ?>
33
+			<?php else {
34
+	: ?>
34 35
 
35 36
 				<article id="post-0" class="post no-results not-found">
36 37
 					<header class="entry-header">
37
-						<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
38
+						<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' );
39
+}
40
+?></h1>
38 41
 					</header><!-- .entry-header -->
39 42
 
40 43
 					<div class="entry-content">
Please login to merge, or discard this patch.
src/wp-content/themes/twentyeleven/content-aside.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -16,33 +16,33 @@
 block discarded – undo
16 16
 		<header class="entry-header">
17 17
 			<hgroup>
18 18
 				<h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
19
-				<h3 class="entry-format"><?php _e( 'Aside', 'twentyeleven' ); ?></h3>
19
+				<h3 class="entry-format"><?php _e('Aside', 'twentyeleven'); ?></h3>
20 20
 			</hgroup>
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
 
40 40
 		<footer class="entry-meta">
41 41
 			<?php twentyeleven_posted_on(); ?>
42
-			<?php if ( comments_open() ) : ?>
42
+			<?php if (comments_open()) : ?>
43 43
 			<span class="sep"> | </span>
44
-			<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>
44
+			<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>
45 45
 			<?php endif; ?>
46
-			<?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
46
+			<?php edit_post_link(__('Edit', 'twentyeleven'), '<span class="edit-link">', '</span>'); ?>
47 47
 		</footer><!-- .entry-meta -->
48 48
 	</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/category.php 2 patches
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -12,16 +12,16 @@  discard block
 block discarded – undo
12 12
 		<section id="primary">
13 13
 			<div id="content" role="main">
14 14
 
15
-			<?php if ( have_posts() ) : ?>
15
+			<?php if (have_posts()) : ?>
16 16
 
17 17
 				<header class="page-header">
18 18
 					<h1 class="page-title"><?php
19
-						printf( __( 'Category Archives: %s', 'twentyeleven' ), '<span>' . single_cat_title( '', false ) . '</span>' );
19
+						printf(__('Category Archives: %s', 'twentyeleven'), '<span>'.single_cat_title('', false).'</span>');
20 20
 					?></h1>
21 21
 
22 22
 					<?php
23 23
 						$category_description = category_description();
24
-						if ( ! empty( $category_description ) ) {
24
+						if ( ! empty($category_description)) {
25 25
 							/**
26 26
 							 * Filter the default Twenty Eleven category description.
27 27
 							 *
@@ -29,15 +29,15 @@  discard block
 block discarded – undo
29 29
 							 *
30 30
 							 * @param string The default category description HTML.
31 31
 							 */
32
-							echo apply_filters( 'category_archive_meta', '<div class="category-archive-meta">' . $category_description . '</div>' );
32
+							echo apply_filters('category_archive_meta', '<div class="category-archive-meta">'.$category_description.'</div>');
33 33
 						}
34 34
 					?>
35 35
 				</header>
36 36
 
37
-				<?php twentyeleven_content_nav( 'nav-above' ); ?>
37
+				<?php twentyeleven_content_nav('nav-above'); ?>
38 38
 
39 39
 				<?php /* Start the Loop */ ?>
40
-				<?php while ( have_posts() ) : the_post(); ?>
40
+				<?php while (have_posts()) : the_post(); ?>
41 41
 
42 42
 					<?php
43 43
 						/*
@@ -45,22 +45,22 @@  discard block
 block discarded – undo
45 45
 						 * If you want to overload this in a child theme then include a file
46 46
 						 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
47 47
 						 */
48
-						get_template_part( 'content', get_post_format() );
48
+						get_template_part('content', get_post_format());
49 49
 					?>
50 50
 
51 51
 				<?php endwhile; ?>
52 52
 
53
-				<?php twentyeleven_content_nav( 'nav-below' ); ?>
53
+				<?php twentyeleven_content_nav('nav-below'); ?>
54 54
 
55 55
 			<?php else : ?>
56 56
 
57 57
 				<article id="post-0" class="post no-results not-found">
58 58
 					<header class="entry-header">
59
-						<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
59
+						<h1 class="entry-title"><?php _e('Nothing Found', 'twentyeleven'); ?></h1>
60 60
 					</header><!-- .entry-header -->
61 61
 
62 62
 					<div class="entry-content">
63
-						<p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p>
63
+						<p><?php _e('Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven'); ?></p>
64 64
 						<?php get_search_form(); ?>
65 65
 					</div><!-- .entry-content -->
66 66
 				</article><!-- #post-0 -->
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,11 +30,14 @@
 block discarded – undo
30 30
 
31 31
 				<?php twentyeleven_content_nav( 'nav-below' ); ?>
32 32
 
33
-			<?php else : ?>
33
+			<?php else {
34
+	: ?>
34 35
 
35 36
 				<article id="post-0" class="post no-results not-found">
36 37
 					<header class="entry-header">
37
-						<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
38
+						<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' );
39
+}
40
+?></h1>
38 41
 					</header><!-- .entry-header -->
39 42
 
40 43
 					<div class="entry-content">
Please login to merge, or discard this patch.